Ask Your Question

jaqueline.schweigert's profile - activity

2020-12-02 05:32:15 -0600 marked best answer OpenCV 4.5.0 Compile errors

I was able to successfully build the new OpenCV Version using cmake with the following commands: cmake -D BUILD_SHARED_LIBS=OFF -D BUILD_PERF_TESTS=OFF -D BUILD_TESTS=OFF -D WITH_PNG=OFF . make -j

I added the opencv-450.jar file to the dependencies and copies all files from opencv/build/lib to /usr/lib. However, when compiling my project with this library, I get the following errors:

Error:(14, 26) java: cannot access org.opencv.imgproc.Imgproc bad class file: /.../opencv/opencv-450.jar!/org/opencv/imgproc/Imgproc.class class file has wrong version 58.0, should be 55.0 Please remove or make sure it appears in the correct subdirectory of the classpath.

I use unix and java 11. Before upgrading I used OpenCV4.2.0. Any help is appreciated!

2020-12-02 05:17:12 -0600 commented question OpenCV 4.5.0 Compile errors

Thanks, that's the solution. Yes, I have multiple java jdks installed. I build openCV with java 14. But used java 11 to

2020-12-02 05:15:36 -0600 commented question OpenCV 4.5.0 Compile errors

Thanks. Yes, I have multiple java jdks installed.

2020-11-30 03:49:34 -0600 asked a question OpenCV 4.5.0 Compile errors

OpenCV 4.5.0 Compile errors I was able to successfully build the new OpenCV Version using cmake with the following comma