By the way, casiotone: I just found out you didn't have to compile Allegro from source after all. 5.1.12 was available on homebrew after all, the command is:brew install --devel allegro@NEO: You might want to take note of the above as well.
airlux:magento lux$ brew install --devel allegroError: You must `brew link libogg libvorbis cmake freetype flac' before allegro can be installed
airlux:magento lux$ brew link libogg libvorbis cmake freetype flacLinking /usr/local/Cellar/libogg/1.3.2... Error: Could not symlink lib/libogg.0.dylibTarget /usr/local/lib/libogg.0.dylibalready exists. You may want to remove it: rm '/usr/local/lib/libogg.0.dylib'To force the link and overwrite all conflicting files: brew link --overwrite liboggTo list all files that would be deleted: brew link --overwrite --dry-run libogg
You're the second person to request that, I'll see what I can do. For now you can probably disable it by:* Remove 'animation.c' from msphere_sources in the SConscript* Remove 'mng' from msphere_libs in the SConscript* Comment out the call to init_animation_api() in api.cThere's been talk of Allegro adding optional MNG support to the library; if that happens I can do away with my own libmng dependency. Oh, that reminds me, watch out with Allegro's audio support; if you didn't set WANT_ACODEC_DYNAMIC_LOAD=0 when using Allegro's CMake, then it attempts to dynamically load libvorbis, etc. at runtime and fails silently if it can't, so if minisphere fails to load any sound files--it's most likely not my fault!
const char *Init(JSContext *ctx); // Returns the plugin name.int GetNumFunctions(JSContext *ctx);const char *GetFunctionName(JSContext *ctx, int i);JSNative GetFunction(JSContext *ctx, int i);int GetNumVariables(JSContext *ctx);const char *GetVariableName(JSContext *ctx, int i);void GetVariable(JSContext *ctx, int i, JSMutableHandle out); // It's much better to use an out-parameter for handles with SpiderMonkey.void Close(); // Closes the plugin.
I've read that Dr Dobb's article, and I'm not really a fan of how they do it.