Include platform dependencies with Maven

907 views
Skip to first unread message

Dennis Kriechel

unread,
Aug 24, 2014, 1:02:12 PM8/24/14
to jav...@googlegroups.com
I checked out the information on the github page (https://github.com/bytedeco/javacv#downloads) on how to include javacv with Maven.
Doing this worked fine, all libraries are included. But those are not the platform libraries which I need, thats why I get "java.lang.UnsatisfiedLinkError: no jnivideoInputLib in java.library.path". 
The github page mentioned to set the system property "platform.dependency".But how do I set this? I already tried to set a normal properties in my pom file, but off course this
will not affect anything until I use the property somewhere. I tried this as well:
<dependency>
    <groupId>org.bytedeco</groupId>
    <artifactId>javacv</artifactId>
    <version>0.9</version>
    <classifier>windows-x86</classifier>
</dependency>
I doesnt work, now Maven cant find the jar at all, which is correct because the repo only contains a general javacv.jar. 
I hope someone can tell me what the github page means and how to implement this.

Thanks in advance.

Saba Ahang

unread,
Nov 26, 2014, 5:11:13 AM11/26/14
to jav...@googlegroups.com
I'm having the exact same problem, I get:
java.lang.UnsatisfiedLinkError: no jniopencv_core in java.library.path

Haven't figured out what to do, any help will be appreciated.

I have JDK installed, I'm running my code with -Dplatform.dependencies=true switch and have added the Maven dependency! What is missing?

Samuel Audet

unread,
Dec 6, 2014, 4:36:56 AM12/6/14
to jav...@googlegroups.com
On 11/26/2014 07:11 PM, Saba Ahang wrote:
> I'm having the exact same problem, I get:
> java.lang.UnsatisfiedLinkError: no jniopencv_core in java.library.path
>
> Haven't figured out what to do, any help will be appreciated.
>
> I have JDK installed, I'm running my code with
> -Dplatform.dependencies=true switch and have added the Maven dependency!
> What is missing?

It should work. What platform are you running on?

BTW, does this sample here work or not?
https://github.com/bytedeco/javacpp-presets/tree/master/opencv

Samuel

Kotik

unread,
Dec 13, 2014, 8:32:52 PM12/13/14
to jav...@googlegroups.com
I have this problem too. I had to extract dll's and manually move them to current directory to make it work

суббота, 6 декабря 2014 г., 3:36:56 UTC-6 пользователь Samuel Audet написал:

Samuel Audet

unread,
Dec 14, 2014, 7:35:14 AM12/14/14
to jav...@googlegroups.com
On 12/14/2014 10:32 AM, Kotik wrote:
> I have this problem too. I had to extract dll's and manually move them to current directory to make it work

Does the sample here work when using the given pom.xml file?
https://github.com/bytedeco/javacpp-presets/tree/master/opencv

Samuel

Kotik

unread,
Dec 15, 2014, 1:57:12 AM12/15/14
to jav...@googlegroups.com
I got it working with the latest snapshot libraries  copy&pasted to library.path

воскресенье, 14 декабря 2014 г., 6:35:14 UTC-6 пользователь Samuel Audet написал:

Kotik

unread,
Dec 15, 2014, 1:57:56 AM12/15/14
to jav...@googlegroups.com
It'd be awesome to get the latest snapshot released for all platforms 

воскресенье, 14 декабря 2014 г., 6:35:14 UTC-6 пользователь Samuel Audet написал:

Waldemar Neto

unread,
Dec 15, 2014, 11:20:59 AM12/15/14
to jav...@googlegroups.com
Have a solution? i have the same problem

Waldemar Neto

unread,
Dec 16, 2014, 9:41:20 PM12/16/14
to jav...@googlegroups.com
Import the javacv lib separated, it work's for me the when i use javacv0.9 from maven i get this error..


Em domingo, 24 de agosto de 2014 14h02min12s UTC-3, Dennis Kriechel escreveu:

Samuel Audet

unread,
Dec 19, 2014, 8:56:30 PM12/19/14
to jav...@googlegroups.com
On 12/15/2014 03:57 PM, Kotik wrote:
> It'd be awesome to get the latest snapshot released for all platforms

Yes, but the process is not automated enough at the moment, and I'm not
sure how to go about it either. If you'd like to work on that
(continuous integration), let me know, and I'll help you with what I
know. It'd be great to have a fully automated multiplatform build
system! thanks

Samuel

Samuel Audet

unread,
Dec 19, 2014, 8:57:53 PM12/19/14
to jav...@googlegroups.com
On 12/16/2014 01:20 AM, Waldemar Neto wrote:
> Have a solution? i have the same problem

What happens when you append `-Dplatform.dependencies` to the `mvn` command?

Samuel

Reply all
Reply to author
Forward
0 new messages