LWJGL under Linux 64 bits ?

Started by adenthar, November 19, 2004, 10:33:22

Previous topic - Next topic

adenthar

Hello everybody,

I tried to install lwjgl on my Mandrake linux AMD 64bits 10.1 RC

However it doesn't work, if i use a Sun JDK 1.4 32 bits, i have this message :
Found 52 display modes
Moving to 100, 100
org.lwjgl.LWJGLException: Failed to load OpenGL library
        at org.lwjgl.opengl.GLContext.nLoadOpenGLLibrary(Native Method)
        at org.lwjgl.opengl.GLContext.loadOpenGLLibrary(Unknown Source)
        at org.lwjgl.opengl.Display.create(Unknown Source)
        at org.lwjgl.opengl.Display.create(Unknown Source)
        at org.lwjgl.test.WindowCreationTest.main(Unknown Source)


if i use Sun JDK 1.5 AMD 64 bits, i have this message (with the same command line i use from installation instruction, just the jdk change)

Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/adenthar/lwjgl/lwjgl-linux-0.93/liblwjgl.so: /home/adenthar/lwjgl/lwjgl-linux-0.93/liblwjgl.so: cannot open shared object file: No such file or directory
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
        at java.lang.Runtime.loadLibrary0(Runtime.java:822)
        at java.lang.System.loadLibrary(System.java:992)
        at org.lwjgl.Sys.initialize(Unknown Source)
        at org.lwjgl.Sys.<clinit>(Unknown Source)
        at org.lwjgl.opengl.Display.<clinit>(Unknown Source)
        at org.lwjgl.test.WindowCreationTest.main(Unknown Source)


but the file liblwjgl.so is in the good native directory.
i think openGL is Ok on my distrib because glxgears works perfectly.

is it because i am under 64 bits version ?
must i recompil the source ?
is it difficult ? (i'm not very used to compil c source)

thanks for help,

bye,

adenthar.

elias

Here's what I think:

The first build could be caused by the OGL lib being 64 bit, but the JVM and LWJGL lib is only 32 bit.

The second could indicates that the JVM itself is 64 bit an as such can't even load the LWJGL library, which is still 32 bit.

It will require a re-compile to create a 64 bit LWJGL library, but I'm sure you will run into trouble as LWJGL has never been compiled on a 64 bit arch.

- elias

adenthar

Thanks a lot for the answer.

I think i will install a 32 bits linux version, it will be more easy ;)

bye,

adenthar

cfmdobbie

I seem to recall some time ago I posed the question of what happens when 64-bit operating systems arrive.  The answer at the time was "we'll bother about that when it's time".

So, um.  It's time! :wink:
ellomynameis Charlie Dobbie.

princec

Er, so, there are widespread 64-bit gamer's systems suddenly everywhere??

Cas :)

cfmdobbie

Not everywhere, no.  But they're certainly appearing, and more are on their way.  The inevitable march of technology goes ever on and on, and all that. :wink:

What kind of market penetration do you think you need to see before a 64-bit capable LWJGL becomes viable?
ellomynameis Charlie Dobbie.

princec

At least 50% really. That won't be for another decade or so.

Cas :)