Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Update*: I have partially found my answer here: https://github.com/opencv/opencv/issues/10080

The problem seams to be due to building without the flag : -DWITH_FFMPEG=OFF

Apparently, there caused a problem and prevented the System.LoadLibrary() to fail when using it in my java class.

Set this flag again in Cmake, compiled everything and now it works fine.

There is however another workaround that i didn't understood, and maybe some of you guys could help me and it goes like this:

building ffmpeg from src with "--disable-libopenmpt"

What did he want to say by that ? how can i build ffmpeg from src ?

Sorry for the noob question

I'm also going to put cmake command line that i used to compile on Raspberry Pi 3:

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_EXAMPLES=OFF -D BUILD_DOCS=OFF -D BUILD_SHARED_LIBS=OFF -D OPENCV_EXTRA_MODULES_PATH="$HOME/opencv_contrib/modules" /home/pi/opencv/build/ ..

Anyway, hope this helps future guys that might run into this problem in the future. Regards