jashkenas / ruby-processing

Code as Art, Art as Code. Processing and Ruby are meant for each other.
http://github.com/jashkenas/ruby-processing/wikis
Other
1.28k stars 94 forks source link

MovieMaker failing - Caused by: java.lang.UnsatisfiedLinkError #28

Closed jufemaiz closed 12 years ago

jufemaiz commented 13 years ago

OSX 10.6.6 64bit See https://gist.github.com/841459 for code + output.

I'm curious if this is related to 64bit? I cannot get 32bit to work at all.

monkstone commented 13 years ago

Line 102 of the error dump suggests it is a 64 bit issue. I don't really know OSX architecture at all, but that is where I would look (coming from a linux background). This thread http://processing.org/discourse/yabb2/YaBB.pl?num=1211318862 on the old processing discussion board might be useful suggests there may be other issues?

stringbot commented 13 years ago

Same error here :(

moumar commented 13 years ago

i fixed this in the latest version, which will be released soon. However, if you can't wait, go in Utilities > Java Preferences and drag the 32 bits line on top of the list. This should fix the problem.

moumar commented 13 years ago

grab the latest ruby-processing (gem install ruby-processing), and put the following lines in the YAML configuration file $HOME/.rp5rc

java_args: -D32

this will force the JVM in 32 bits mode.

clevinson commented 12 years ago

Came across the same issue when running OpenCV with ruby processing. Changing my Utilities >Java Preferences so that 32 bits line was ontop of the list fixed the problem. However, I've since upgraded to ruby-processing 1.0.10, and now I get a new error:

!!! required library not found : no OpenCV in java.library.path
Verify that the java.library.path property is correctly set and the opencv.framework exists in '/Library/Frameworks' folder

java.lang.UnsatisfiedLinkError: hypermedia.video.OpenCV.capture(III)V
    hypermedia/video/OpenCV.java:-2:in `capture'
    hypermedia/video/OpenCV.java:945:in `capture'
    ruby_try_open_cv.rb:35:in `setup'
    /Users/Cory/.rvm/gems/ruby-1.9.2-p290/gems/ruby-processing-1.0.10.1/lib/ruby-processing/app.rb:198:in `handleDraw'

This doesn't seem to get fixed by changing Java Preferences OR adding: java_args: -D32 to $HOME/.rp5rc

I'm running OS X 10.7.2, 64-bit

moumar commented 12 years ago

OK, i'm currently fixing the library loader

moumar commented 12 years ago

hello, did you try javacvpro http://codeanticode.wordpress.com/2011/11/21/opencv-2-in-processing/ instead ? i had lots of problem with the old opencv for processing

moumar commented 12 years ago

by the way, i made a mistake in my previous post, you have to put

java_args: -d32

and not

java_args: -D32

in $HOME/.rp5rc