Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build with gradle #432

Closed
Maleandr opened this issue Jun 9, 2016 · 3 comments
Closed

Cannot build with gradle #432

Maleandr opened this issue Jun 9, 2016 · 3 comments

Comments

@Maleandr
Copy link

Maleandr commented Jun 9, 2016

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?

@saudet
Copy link
Member

saudet commented Jun 10, 2016

That's a known issue with Gradle trying to include dependencies it shouldn't: #395 (comment)

@saudet saudet closed this as completed Jun 10, 2016
@saudet
Copy link
Member

saudet commented Jun 10, 2016

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

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

@Maleandr
Copy link
Author

Thank you for info. Sorry for duplicate reports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants