Forum Replies Created
-
AuthorPosts
-
andresParticipant
BTW, I made some modifications to the OPENGL2 renderer so it is now easy to get the GL parameters from the textures encapsulated by a PImage, but this will work only on releases after 0195.
andresParticipantExcellent! I’ll make a new library package that incorporates the opengl integration once you push all the latest changes to the trunk.
andresParticipantThanks for the follow-up. I run again the test application with the latest revisions from the svn and still get the unsatisfied link error. I will keep an eye on the coming updates to JSyphon, and will let you know if in the meantime I find anything else relevant to this issue.
andresParticipantThe ServerJava example works as expected in my OSX 10.6.7 system, using the latest JSyphon code pulled from the trunk.
I followed the file structure that you indicate in the screenshots, namely, libJSyphon.dylib and Syphon.framework at the same level.
I made the Processing sketch that attempts to load Syphon into an Eclipse project:
http://interfaze.info/files/syphon/SyphonHello.zip
When running the project as Java application, you can see that the JSyphon object is created, and the library path contains the required information to load Syphon, but then the error java.lang.UnsatisfiedLinkError shows up.
andresParticipantHi, I’m working on the JSyphon-based library for Processing.
I just managed to get everything compiled, but having some trouble to load the native libraries.
Actually, I’m not that experienced with OSX development, so please bear with me for a while 🙂
As far as I understand from a first examination of the code, libJSyphon.dylib calls the underlying Syphon functions through JNI. Looking at how the dependencies are embedded into this dylib, the low-level Syphon library is just called Syphon and should be located in @loader_path/Syphon.framework/Versions/A/Syphon
This means that if libJSyphon.dylib is placed in /Users/andres/sketchbook/libraries/Syphon/library, then the Syphon library should be in /Users/andres/sketchbook/libraries/Syphon/library/Syphon.framework/Versions/A.
I tried this, but when the Processing library tries to call the initWithName() method, I get:
Exception in thread “Animation Thread” java.lang.UnsatisfiedLinkError: codeanticode.syphon.JSyphonServer.initWithName(Ljava/lang/String;)V
at codeanticode.syphon.JSyphonServer.initWithName(Native Method)Any comments?
-
AuthorPosts