Javacv: Cannot build with gradle

Created on 9 Jun 2016  路  3Comments  路  Source: bytedeco/javacv

I cannot build version 1.2 with gradle. When I try this:

compile group: 'org.bytedeco', name: 'javacv', version: '1.2'

or

compile 'org.bytedeco:javacv:1.2'

I get always this error:

Could not find javacpp-presets-Mac OS X-x86_64.jar (org.bytedeco:javacpp-presets:1.2). Searched in the following locations: https://repo1.maven.org/maven2/org/bytedeco/javacpp-presets/1.2/javacpp-presets-1.2-Mac OS X-x86_64.jar

I can build version 1.1 without problems. I checked documentation from javacpp-presets as suggested from readme, but nothing worked. I understand that in version 1.2 is used custom property "javacpp.platform", which cannot be added via gradle. I tried:
compile group: 'org.bytedeco', name: 'javacv', version: '1.2', classifier: 'macosx-x86_64'

and get:

Could not find javacv-macosx-x86_64.jar (org.bytedeco:javacv:1.2). Searched in the following locations: https://repo1.maven.org/maven2/org/bytedeco/javacv/1.2/javacv-1.2-macosx-x86_64.jar

I tested gradle build also on Linux, got same error with just different platform (Linux-amd64). So is gradle build broken, or i'm missing something?

bug duplicate

Most helpful comment

Basically, for now, include this in the build.gradle file:

configurations {
    all*.exclude group: 'org.bytedeco', module: 'javacpp-presets'
}

All 3 comments

That's a known issue with Gradle trying to include dependencies it shouldn't: https://github.com/bytedeco/javacv/issues/395#issuecomment-220213783

Basically, for now, include this in the build.gradle file:

configurations {
    all*.exclude group: 'org.bytedeco', module: 'javacpp-presets'
}

Thank you for info. Sorry for duplicate reports.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ahmedaomda picture ahmedaomda  路  4Comments

jakubondrus picture jakubondrus  路  4Comments

Bahramudin picture Bahramudin  路  3Comments

y4nnick picture y4nnick  路  3Comments

UpAndDownAgain picture UpAndDownAgain  路  3Comments