IntelliJ IDEA, import OpenCV Library

Answered

Hi,

Microsoft Windows 10.0 Build 10240

IntelliJ IDEA Community Edition 2016.3.5(64)

OpenCV 3.2.0 for Android

How to import OpenCV into IntelliJ IDEA?

Is static linking possible?

Thanks.

1
9 comments

What do you mean by static linking? The library contains of 2 parts, jars and native code. You just add it to the module dependencies: http://www.jetbrains.com/idea/webhelp/configuring-module-dependencies-and-libraries.html.

Ensure the native libraries are in PATH, added into dependencies or their path is specified via -Djava.library.path=... when running.

0
Avatar
Permanently deleted user
0

The warning message clearly states what's the problem. You can't have non-Gradle Java module and Android-Gradle module in the same project.

If your project is Gradle based, dependency should be added via Gradle (via jar dependency, not via Java module dependency).

0
Avatar
Permanently deleted user

>> What do you mean by static linking?

Without the support of OpenCV Manager (App).

Importing from Eclipse (Default OpenCV Project).

0
Avatar
Permanently deleted user

Thank you! How to be with static linking?

0

No idea, ask on OpenCV forums. As far as I can see this approach doesn't require the manager app.

0

Please sign in to leave a comment.