-
Notifications
You must be signed in to change notification settings - Fork 8
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
JavaCPP-based platform bindings (LibreMidiAccess, RtMidiAccess) fail to resolve jars to the native bindings #98
Comments
I've opened an issue with gradle-javacpp to see if anyone there can help diagnose/fix the issue: |
I think I'm following what |
I wrote a bit more about it at atsushieno/libremidi-javacpp@f50ebff |
There seems no single working example of gradle-javacpp based library that was successfully published to Maven Central and proved its usefulness yet. We might have to give up current build setup. At this state, there are some alternative options I can think of:
Although in the meantime, it is very likely that submoduling |
It seems that apps (at least Compose Desktop apps like
ktmidi-ci-tool
) that depend on the latest JavaCPP based bindings fail to resolve the Jars that contain native libraries (e.g.libremidi-javacpp-linux-x86_64.jar
) and thus fails at run time:There seems some issue around packaging and/or package resolution with gradle-javacpp. The Gradle plugin
org.bytedeco.gradle-javacpp-platform
, along withapi(libs.libremidi.javacpp.platform)
(versions inlibs.versions.toml
), should transform theapi()
reference to the native library bindings, but it is somehow not triggered.There are some findings:
publishToMavenLocal
), the Compose Desktop apps successfully contain the native bindings.input-sample
andplayer-sample
work on the IDE too, IFlibremidi-javacpp
is published locally.confirmed at: c24dc1a
The text was updated successfully, but these errors were encountered: