NativeLibs? (now at least 15 characters)

I try to run Sample Apps in netbeans after successful build of jme3.

I get the error

run-single:
Mär 25, 2015 12:22:40 PM com.jme3.system.JmeDesktopSystem initialize
INFORMATION: Running on jMonkeyEngine 3.0.10
Mär 25, 2015 12:22:40 PM com.jme3.system.Natives extractNativeLibs
INFORMATION: Extraction Directory: .../NetBeansProjects/jme3
Exception in thread "main" java.lang.UnsatisfiedLinkError: .../NetBeansProjects/jme3/libbulletjme64.so: /usr/local/lib/compat/libc.so.6: version GLIBC_2.2.5 required by .../NetBeansProjects/jme3/libbulletjme64.so not defined
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1937)
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1822)
	at java.lang.Runtime.load0(Runtime.java:809)

How do I get these libs?

In nbproject/build-bullet-natives.xml Linux is taken as a fallback, this is bad. There are other unices and so-called unices

bullet-native-build.txt talks of nbproject/bullet.properties and build.properties files which don’t exist.
The compilation wants to compile nativelib-linux-64 with a “linux” include dir despite I am on FreeBSD. Where is this set?
Or can I use the whole thing without native bullet?

You can use jbullet no problem, thats the default actually. It seems you indiscriminately import everything jME into one project somehow? Best read the docs about what each jar does.

As for your problem, jME supports Windows, OSX and Linux, not BSD or plain UNIX. You can disable building of natives in the gradle properties file.

There is no gradle in 3.0.
I just built it as described in here: http://wiki.jmonkeyengine.org/doku.php/jme3:build_jme3_sources_with_netbeans .
I try to run the bundled tests. Can I do this without native libs?
Now that I have compiled native bullet it misses liblwjgl.so, what is this?
There are 3 linux libs always copied to the root dir, these are useless because they are linux.
Can I use jme without native libs at all?

LWJGL is required to access hardware accelerated rendering via OpenGL, Java does not have this functionality by default.
There seems to be a FreeBSD port of LWJGL here:
http://portsmon.freebsd.org/portoverview.py?category=games&portname=lwjgl

That should be the only native dependency needed to get jME3 working.

Thanks, but I think I give up. The lwjgl port works with java 1.7 only.

I updated it to 2.9.3 and it works!

Isn’t giving up after it works called “being successful”?

1 Like

It worked AFTER I had given up :wink: