-
Notifications
You must be signed in to change notification settings - Fork 20
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
How can I change javacppPlatform at runtime? #24
Comments
Setting the extra property as shown in the README.md file doesn't work?? |
@saudet yes it work, I already used with |
It won't work if you set it after Gradle has resolved the dependencies. You need to make sure to set it before that happens. |
yes, I noticed that, so I want find a way to solve, have any suggestions? |
One way to do that kind thing would be to split your project into multiple subprojects. Then we can do anything we need in the parent project, and only call the subproject for that package task, where we can set javacppPlatform early before it resolves its dependencies. |
… samples. This does not really help resolving dependencies to incorrect platform- specific libs e.g. it tries to resolve rtmidi-javacpp-macos-x86_64 even on linux-x86_64 host. Looks like bytedeco/gradle-javacpp#24 is a relevant issue, but it seems unresolved forever.
I want use
macosx-x86_64
on run application, but uselinux-x86_64
when package.These way seems not working.
or
The text was updated successfully, but these errors were encountered: