N
N
Nikolai Gerasimov2016-11-13 23:50:52
Java
Nikolai Gerasimov, 2016-11-13 23:50:52

How to add OpenCV libs to gradle?

In general, I use opencv in java through the java-wrapper opencv-310.jar I
created a javaFx application and manually added the necessary ones in such a way
d608c6e457d84a50aa7e9b521a07b8bf.png
There are 1 jar and 2 dlls, one for 32-bit systems, the other for 64-bit ones.
All opencv libs are local.
In the main function, I load them via System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
Everything works great.
I created a gradle project and I can’t figure out how to add the same thing that I indicated above in build.gradle
How to add dll-libs so that it works the same way as when I added them manually?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2016-11-14
@zolt85

Here's what StackOverflow thinks about it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question