Error while configuring xuggle on Mac

92 views
Skip to first unread message

Dino Bartosak

unread,
Jul 7, 2011, 7:00:09 PM7/7/11
to xuggle...@googlegroups.com
Hello, 

I followed install guide on your page, added xuggle jars to build path, added LD_LIBRARY_PATH environment variable in Eclipse project and still I can't compile my program.

Snow Leopard 10.6.8.

Can you help me with this error:

00:57:28.583 [main] WARN  com.xuggle.ferry.JNILibraryLoader - Failure: library load of library: xuggle-ferry; version: 4: absolute path: /usr/local/xuggler/lib/libxuggle-ferry.4.dylib; error: java.lang.UnsatisfiedLinkError: /usr/local/xuggler/lib/libxuggle-ferry.4.dylib:  no suitable image found.  Did find:  /usr/local/xuggler/lib/libxuggle-ferry.4.dylib: mach-o, but wrong architecture  /usr/local/xuggler/lib/libxuggle-ferry.4.dylib: mach-o, but wrong architecture

00:57:28.587 [main] WARN  com.xuggle.ferry.JNILibraryLoader - Failure: library load of library: xuggle-ferry; version: 4: absolute path: /usr/local/xuggler/lib/libxuggle-ferry.4.dylib; error: java.lang.UnsatisfiedLinkError: /usr/local/xuggler/lib/libxuggle-ferry.4.dylib:  no suitable image found.  Did find:  /usr/local/xuggler/lib/libxuggle-ferry.4.dylib: mach-o, but wrong architecture  /usr/local/xuggler/lib/libxuggle-ferry.4.dylib: mach-o, but wrong architecture

00:57:28.588 [main] WARN  com.xuggle.ferry.JNILibraryLoader - Failure: library load of library: xuggle-ferry; version: 4: absolute path: /usr/local/xuggler/lib/libxuggle-ferry.dylib; error: java.lang.UnsatisfiedLinkError: /usr/local/xuggler/lib/libxuggle-ferry.dylib:  no suitable image found.  Did find:  /usr/local/xuggler/lib/libxuggle-ferry.dylib: mach-o, but wrong architecture  /usr/local/xuggler/lib/libxuggle-ferry.dylib: mach-o, but wrong architecture

00:57:28.589 [main] WARN  com.xuggle.ferry.JNILibraryLoader - Failure: library load of library: xuggle-ferry; version: 4: absolute path: /usr/local/xuggler/lib/libxuggle-ferry.dylib; error: java.lang.UnsatisfiedLinkError: /usr/local/xuggler/lib/libxuggle-ferry.dylib:  no suitable image found.  Did find:  /usr/local/xuggler/lib/libxuggle-ferry.dylib: mach-o, but wrong architecture  /usr/local/xuggler/lib/libxuggle-ferry.dylib: mach-o, but wrong architecture

00:57:28.589 [main] ERROR com.xuggle.ferry.JNILibraryLoader - Could not load library: xuggle-ferry; version: 4; Visit http://www.xuggle.com/xuggler/faq/ to find common solutions to this problem

Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/local/xuggler/lib/libxuggle-ferry.dylib:  no suitable image found.  Did find:  /usr/local/xuggler/lib/libxuggle-ferry.dylib: mach-o, but wrong architecture  /usr/local/xuggler/lib/libxuggle-ferry.dylib: mach-o, but wrong architecture

at java.lang.ClassLoader$NativeLibrary.load(Native Method)

at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1823)

at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1746)

at java.lang.Runtime.loadLibrary0(Runtime.java:823)

at java.lang.System.loadLibrary(System.java:1045)

at com.xuggle.ferry.JNILibraryLoader.loadLibrary0(JNILibraryLoader.java:265)

at com.xuggle.ferry.JNILibraryLoader.loadLibrary(JNILibraryLoader.java:168)

at com.xuggle.ferry.FerryJNI.<clinit>(FerryJNI.java:14)

at com.xuggle.ferry.JNIMemoryManager.<clinit>(JNIMemoryManager.java:871)

at com.xuggle.mediatool.MediaWriter.<clinit>(MediaWriter.java:119)

at com.xuggle.mediatool.ToolFactory.makeWriter(ToolFactory.java:149)

at fer.lss.pyramida.recorder.DesktopEncoder.<init>(DesktopEncoder.java:34)

at fer.lss.pyramida.test.RecordingTest.main(RecordingTest.java:19)

Dino Bartosak

unread,
Jul 7, 2011, 7:22:34 PM7/7/11
to xuggle...@googlegroups.com
EDIT:

I added added these environment variables in run configuration of my eclipse project:

export XUGGLE_HOME=/usr/local/xuggler

export DYLD_LIBRARY_PATH=$XUGGLE_HOME/lib:$DYLD_LIBRARY_PATH

export PATH=$XUGGLE_HOME/bin:$PATH


and now the number of error reduced. This is my output now:


Exception in thread "main" 01:20:37.166 [main] ERROR com.xuggle.ferry.JNILibraryLoader - Could not load library: xuggle-ferry; version: 4; Visit http://www.xuggle.com/xuggler/faq/ to find common solutions to this problem

java.lang.UnsatisfiedLinkError: no xuggle-ferry in java.library.path

at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1754)

Jeff Stagg

unread,
Jul 7, 2011, 9:13:01 PM7/7/11
to xuggle...@googlegroups.com

Not sure if it will help any, however, I use this in my configuration:

export XUGGLE_HOME=/usr/local/xuggler

export LD_LIBRARY_PATH=$XUGGLE_HOME/lib:

export PATH=$PATH:$XUGGLE_HOME/bin:/usr/share/java/:


---Jeff

--
You received this message because you are subscribed to the Google Groups "xuggler-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/xuggler-users/-/3n8tWd1HyOMJ.
To post to this group, send email to xuggle...@googlegroups.com.
To unsubscribe from this group, send email to xuggler-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/xuggler-users?hl=en.

Dino Bartosak

unread,
Jul 8, 2011, 6:04:31 AM7/8/11
to xuggle...@googlegroups.com
Do you put this commands in terminal? I tried it and it doesn't help.

Why can't I just copy Xuggle jars in mine eclipse project and add them to build path? This is kinda of emergency because I developed some project on Windows 7 and managed to configure Xuggle on Windows 7. Now I migrated to MacOSX and have a problem configuring it.

I did all of the things needed (MacOSX/envirnoment.plist, those 3 variables in environemt variables in eclipse run configuration).

Any ideas please?

Dino Bartosak

unread,
Jul 8, 2011, 1:32:16 PM7/8/11
to xuggle...@googlegroups.com
SOLVED:

no need to tell eclipse for any environment variables.

After I added all of variables in ~/.MacOSX/environment.plist things started to work.

My suggestion is that you update install instructions on download page and write this: http://wiki.xuggle.com/Frequently_Asked_Questions#What.27s_up_with_java.lang.UnsatisfiedLinkError.3F


Art Clarke

unread,
Jul 17, 2011, 4:18:03 PM7/17/11
to xuggle...@googlegroups.com
It was already on the Wiki, just one FAQ question down for MacOS users :)

--
You received this message because you are subscribed to the Google Groups "xuggler-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/xuggler-users/-/ROwouCYnGXsJ.

To post to this group, send email to xuggle...@googlegroups.com.
To unsubscribe from this group, send email to xuggler-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/xuggler-users?hl=en.



--
http://www.xuggle.com/
xu‧ggle (zŭ' gl) v. To freely encode, decode, and experience audio and video.

Use Xuggle to get the power of FFmpeg in Java.
Reply all
Reply to author
Forward
0 new messages