Ask Your Question

Stefan Reich's profile - activity

2016-07-27 12:04:58 -0600 received badge  Editor (source)
2016-07-27 12:04:12 -0600 asked a question PLEASE provide static libraries for Linux 32 bit

Hi OpenCV experts,

I REALLY REALLY would like to urge someone within your ranks to provide:

= OpenCV as a simple tarball of portable .so files =

which, after unpacking on any 32 Bit Linux system, can be used from within Java. (e.g. http://tinybrain.de/1003793) Don't worry about the jar file, what I need are the native libraries.

I sadly do not have the expertise to complie those things properly myself. I'm just kinda out of touch with C stuff.

I think this approach should be feasible. The JDK itself does it like that (after unpacking, works on any 32 Bit Linux).

This will really really help OpenCV's distribution. (Right now, that's quite a nightmare if I may be honest.)

Many greetings, Stefan Reich

2016-07-27 10:41:35 -0600 commented question Moving OpenCV to another folder breaks it

Aren't there binary OpenCV distributions on sourceforge, or am I making this up? And isn't there a way to build Linux libraries portably?

Actually Java 8 itself is distributed this way (just untar it on any Linux and it works!) - and it's full of native libraries...

I'm still hoping for a solution here :-) A simple zip file with all the OpenCVs .so's built properly and portably?

2016-07-27 10:21:33 -0600 commented question Moving OpenCV to another folder breaks it

Thanks. Are there not statically built libraries available online? I am looking into redistributing OpenCV for end users as easily as possible (still an unsolved problem). The software I make is supposed to require nothing but Java and download anything needed from the web.

2016-07-27 09:56:19 -0600 asked a question Moving OpenCV to another folder breaks it

Here is a weird thing. I am calling OpenCV 2.4.9 from Java (on Peppermint Linux 3).

It works fine.

But, when I rename the OpenCV installation directory (and of course the reference to the directory in my Java source) - it breaks.

Here's the error message:

java.lang.UnsatisfiedLinkError: /home/stefan/dev/opencv-2.4.9_/lib/libopencv_java249.so: libopencv_features2d.so.2.4: cannot open shared object file: No such file or directory
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)

So it DID find the first library (libopencv_java249.so) - but not the second one (libopencv_features2d.so.2.4). Even though both are in the same folder.

Does OpenCV remember the folder it is installed in? Is this about an env variable? (Not aware of any variables set.)

Sources: http://tinybrain.de/1003793 (original dir) http://tinybrain.de/1003796 (moved dir)