PDA

View Full Version : how is nvidia driver compiled


bgalakazam
10-04-2011, 05:41 AM
Is the NVIDIA driver compiled with Linux option on? I can't run Minecraft under Linux emulation, the screen turns black after login. The actual lib that is "missing" is the in ~/.minecraft/bin/natives/ directory. I even renamed "liblwjgl64.so" to "liblwjgl.so" to make sure it loads the correct library, and it won't work.

% /usr/local/linux-sun-jre1.6.0/bin/java -jar minecraft.jar
17 achievements
161 recipes
Setting user: bgalakazam, ****************
Exception in thread "Minecraft main thread" java.lang.UnsatisfiedLinkError: Can't load library: /home/alakazam/.minecraft/bin/natives/liblwjgl.so
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at org.lwjgl.Sys$1.run(Sys.java:69)
at java.security.AccessController.doPrivileged(Native Method)
at org.lwjgl.Sys.doLoadLibrary(Sys.java:65)
at org.lwjgl.Sys.loadLibrary(Sys.java:81)
at org.lwjgl.Sys.<clinit>(Sys.java:98)
at org.lwjgl.opengl.Display.<clinit>(Display.java:132)
at net.minecraft.client.Minecraft.a(SourceFile:183)
at net.minecraft.client.Minecraft.run(SourceFile:629)
at java.lang.Thread.run(Unknown Source)


With FreeBSD OpenJDK6 and OpenJDK7 it doesn't go past the login page.

kmoore134
10-05-2011, 01:35 PM
It is compiled with the linux option enabled. If you do a ls -al
/compat/linux/usr/lib/libGL* do you see it?

bgalakazam
10-05-2011, 09:17 PM
% ls -al /compat/linux/usr/lib/libGL*
lrwxr-xr-x 1 root wheel 15 28 Сеп 22:21 /compat/linux/usr/lib/libGL.so.1 -> libGL.so.280.13
-r--r--r-- 1 root wheel 794628 28 Сеп 22:21 /compat/linux/usr/lib/libGL.so.280.13
lrwxrwxrwx 1 root wheel 20 27 Сеп 23:27 /compat/linux/usr/lib/libGLU.so.1 -> libGLU.so.1.3.070300
-rwxr-xr-x 1 root wheel 437896 27 Сеп 23:27 /compat/linux/usr/lib/libGLU.so.1.3.070300
lrwxrwxrwx 1 root wheel 15 27 Сеп 22:41 /compat/linux/usr/lib/libGLw.so.1 -> libGLw.so.1.0.0
-rwxr-xr-x 1 root wheel 17588 27 Сеп 22:41 /compat/linux/usr/lib/libGLw.so.1.0.0
Very strange why it doesn't work under Linux emulation, provided that the library is there (.minecraft/bin/natives). Also, it doesn't work at all on any FreeBSD javas.

Unfortunately, no one at Mojang seems to care, they are too busy becoming millionaires. A simple support for OpenJDK will fix the issue. Funny how the game runs on Solaris and OpenIndiana (due to native java), but not on FreeBSD.

kmoore134
10-06-2011, 06:36 AM
Part of the issue is that our "official" java packages are way out of
date, and they don't fully support openjdk yet.

But there is hope, one of the guys in our office got it working:

http://lists.pcbsd.org/pipermail/testing/2011-September/005888.html ('http://lists.pcbsd.org/pipermail/testing/2011-September/005888.html')

bgalakazam
10-06-2011, 06:43 AM
Oh, I was trying http://foo.poildetroll.net/minecraft/HOWTO_MINECRAFT_ON_FREEBSD.txt but stuck on compiling the ant stuff.

I guess I will just wait for a simpler solution. I am not dying to play games :D