[sdljava-users] Mac OS X
Status: Beta
Brought to you by:
ivan_ganza
From: Fredrik O. <pe...@at...> - 2005-03-20 14:59:01
|
Hi. I have tried to compile sdljava for Mac OS X, the Makefile does not work as -shared is not used on gcc for Darwin (-dynamic should be used to linker instead). To work around that I instead created a dummy XCode project and successfully compiled libsdljava.dylib (Default extension is .dylib not .so). Using ant I have compiled sdljava.jar as the INSTALL text file documents, and included it in my project in Eclipse. When starting the application it says that libsdljava can not be found in path. I have tried to rename .dylib to .so and put it in different paths (., /usr/lib and /usr/lib/java/). I have linked against the lib from another C application to confirm that it works so far. The jar still includes classes for image and gfx that I have not compiled native libraries for, I guess that could be the problem. If that is the problem how do I compile the jar with only selected classes? I am quite new to Java and very new to JNI so any help is appreciated. Pre-compiled binaries would be best :). But a crash course is also very welcome (Always good to know what it is you are doing). regards Fredrik Olsson |