package org.opencv... does not exist

asked 2019-02-26 11:49:14 -0600

I'm using the version of Opencv 4.0.0, Maven and Java 8, Intellij on Mac OS. When I link this library in my IntelliJ IDEA, the modules like are recognised, as expected. However when trying to build the java project, I get this error: image description

However according several tutorial (and other resources), the build should include a build/java/x64 folder, containing a .dll file, however there is no build/java folder at all. I do find a libopencv_java341.dll in build/lib however, linking that file does not resolve the problem. image description

When I download the Windows package form OpenCV, there is a Java folder in the build folder, and that does include the .jar file and an /x64 folder, however, those do not include the contributed libs on Mac OS or Linux.

So the question is, what should I do to correctly setup the OpenCV library, including the contributed libs?

edit retag flag offensive close merge delete

Comments

there is no prebuilt anything for macos or linux, and apart from the win packs, opencv does not maintain any binary repositories.

we also can't help you with maven problems, that's way off-topic here.

berak gravatar imageberak ( 2019-02-26 11:52:26 -0600 )edit

what should I do to correctly setup the OpenCV library

build from src.

berak gravatar imageberak ( 2019-02-26 11:53:32 -0600 )edit

I think they did not understand my question, I will write again and if it is necessary to open another topic. I can not build the package, opencv 4.0.0 installed correctly, I'm using Intellij. How to solve the problem?

Andre Soares gravatar imageAndre Soares ( 2019-02-26 12:23:18 -0600 )edit

ok, sure, try again, please, (and sorry if i misplaced it)

you probably need to show us the steps taken, before you try to start a project, using your ide (we unfortunately can't help with intellij related problems here, this is the opencv site !)

also, the prebuilt (windows) libs only cover the base opencv libs, like imgcodecs, etc.

to do anything useful, you'll require the opencv_contrib modules, which means -- you'll have to build from src in any case, on any os, before you can start any project on your own.

berak gravatar imageberak ( 2019-02-26 12:27:12 -0600 )edit

In all the Opencv version tutorials on linux or mac, follow correctly and I can use the library. The problem occurs at the time of building the project package. I installed the opencv_contrib modules and built my project from / src in my project. I do not know what else to do to solve the problem :(

Andre Soares gravatar imageAndre Soares ( 2019-02-26 13:42:52 -0600 )edit

show us the cmake output, then, please. (edit your q., and append it there)

berak gravatar imageberak ( 2019-02-26 13:57:06 -0600 )edit