Open Entropy4711 opened 7 years ago
The plugin should find all native libs in project dependency jars.
Can you add a link to the bullet project so I can have something to test.
Thanks for your response! I can give you the gradle/maven dependency:
compile 'org.jmonkeyengine:jme3-bullet-native:3.1.0-stable'
EDIT: You'll need this repository url to be able to fetch it:
maven {
url 'http://updates.jmonkeyengine.org/maven'
}
The jar that you get from that contains the structure from the screenshot. If you need anything else just let me know.
Thanks. I will try to take a look at it this week.
Were you able to find anything? Or could I somehow configure the plugin differently?
That repo location returns a 404 - according to the JME3 docs, their artifacts are in JCenter. Using the jcenter()
repo, the listNatives
task returns:
:listNatives
Native libraries found for configurations (compile, runtime)...
- jme3-bullet-native-3.1.0-stable.jar:
[WINDOWS] native/windows/x86/bulletjme.dll
[WINDOWS] native/windows/x86_64/bulletjme.dll
[LINUX] native/linux/x86/libbulletjme.so
[LINUX] native/linux/x86_64/libbulletjme.so
[MAC] native/osx/x86_64/libbulletjme.dylib
[MAC] native/osx/x86/libbulletjme.dylib
So it appears to be finding them all. If you are still having issues I would need a standalone example or a failing test to look at.
You can test it with my project here on github: https://github.com/Entropy4711/infinite-wars Just clone it and run ./gradlew client:includeNatives The file client/build.gradle has the plugin configured. You'll find all dependencies on the file dependencies.gradle Feel free to ask me anything :)
I have a lot going on right now, so I am not sure when I will get back to this.
Hello,
I started using this plugin to create a game using JME 3.1l, which uses some native libraries (like LWJGL, OpenAL, and Bullet Physics). The plugin almost works perfectly - but it isn't able to extract the native libary files from the Bullet jar. I have the impression that it has something to do with the different structure of the bullet jar. The other jars have a flat directory structure, but the bullet jar has many nested directories for each platform and even for 32-bit and 64-bit. Here is a screenshot of this structure:
Here a log of ./gradlew clean build includeNatives:
The
<mypath>
texts were added by me. Is this an issue with the plugin, or could I somehow configure this?