I'm facing issues with installing OpenCV on raspberry:
- Latest Raspbian stretch
- OpenCV 3.3.1
- Java: tried multiple versions (openjdk-9, openjdk-8, Oracle jdk-8)
the code compiles fine but it crashes immediately when calling:
Code: Select all
$ cmake -DWITH_QT=OFF \ -DWITH_GTK=OFF \ -D CMAKE_BUILD_TYPE=RELEASE \ -D WITH_OPENCL=OFF \ -D BUILD_PERF_TESTS=OFF \ -D BUILD_SHARED_LIBS=OFF \ -DWITH_FFMPEG=ON \ -D CMAKE_INSTALL_PREFIX=/usr/local ..
after troubleshooting with OpenCV team, it turns out it will work if ffmpeg is disabled but i need ffmpeg to capture the video.
OoenCV people concludes that this is not related to OpenCV
i was thinking it might be related to missing library so i tried to install all libraries i can think of, but no luck. i tried to install ffmpeg from src as well, but the same result. the OpenCV native tests running just fine so the issue is certainly with the java wrapper.
in many cases java will not create crash report. I got the crash report only once and im attaching it here: the report seems to pinpoint the issue with libopenmpt.so.0, i tried to compile ffmpeg from src with --disable-libopenmpt but no luck also.
until now i couldn't manage to get the latest OpenCV works with java on stretch.
any support is appreciated