atduskgreg / opencv-processing

OpenCV for Processing. A creative coding computer vision library based on the official OpenCV Java API
Other
1.32k stars 464 forks source link

Issue to built the lib for Raspberry PI (arm and x86) #105

Open f41ardu opened 6 years ago

f41ardu commented 6 years ago

It is realy weired.

Using ldd show that the dynamic libraries are not resolved. As soon as I copy a library (i,e, /libopencv_java245.so) into my /tmp ldd shows the correct linked libs?

Strange, isn't it. No idea where does that come from.

While bullding the opencv-processing library I run in some minor issues. Building the library on Windows 8.1 it works fine on Window 8.1up to the latest Processing release. Moving the library to Raspberry PI (x86 and ARM) I get follwing error:

UnsatisfiedLinkError: /home/pi/sketchbook/libraries/opencv_processing/library/linux32/libopencv_java245.so: /home/pi/sketchbook/libraries/opencv_processing/library/linux32/libopencv_core.so.2.4: file too short A library relies on native code that's not available. Or only works properly when the sketch is run as a 64-bit application.

But both files are there.

This appreas either on Raspberry x86 and arm.
While using the library downloaded from github it is working for platforms.

I built it on all platforms with the same result. Works fine on Windows but not on Raspberry.

f41ardu commented 6 years ago

Looks like an issue with the shared libs distributed while getting the package as ZIP file. I recoverd all shared libs from the path where my Processing Libs are located int the Eclipse workspace and my own built lib is working now.

f41ardu commented 6 years ago

That mean I have a workaround now. But the issue isn't fixed yet. Any plans to move to a later release of opencv like 3.0 or higher?