LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: Lugen on July 03, 2015, 23:41:26

Title: [SOLVED] LWJGL3 Linux Eclipse "symbol lookup error"
Post by: Lugen on July 03, 2015, 23:41:26
Greetings one and all!

Hope this is the right section of the forum to post about this issue I'm having.

So I'm trying to get started with LWJGL3. Never used any of the previous versions before.
I set up the project in Eclipse and everything seems to be in order. Running the code below works.

import org.lwjgl.Sys;

public class TestSetup {

    public static void main(String[] args) {
        System.out.println("LWJGL Version " + Sys.getVersion() + " is working.");
    }
}


However when I try to initialize GLFW, specifically by calling this function which seems to be vital in setting up a window judging from the examples I've seen,
if (glfwInit() == GL_FALSE)

When running the program nothing happens except termination and this message in the Console output.
/usr/lib/jvm/java-8-oracle/bin/java: symbol lookup error: /*path*/native/liblwjgl.so: undefined symbol: clock_gettime

Been searching here and about but can't seem to find any similar issues like this which is a bummer since I'm quite excited to start using LWJGL.

Additionally, in case it matters I'm on Ubuntu 12.04 64-bit.
Title: Re: LWJGL3 Linux Eclipse "symbol lookup error"
Post by: spasi on July 04, 2015, 13:22:38
Hey Lugen,

Could you try this build (http://build.lwjgl.org/nightly/linux/x64/liblwjgl.so) please?
Title: Re: LWJGL3 Linux Eclipse "symbol lookup error"
Post by: Lugen on July 04, 2015, 13:40:27
Quote from: spasi on July 04, 2015, 13:22:38
Hey Lugen,

Could you try this build (http://build.lwjgl.org/nightly/linux/x64/liblwjgl.so) please?

Holy stuff, it works! Tested with this code.
https://github.com/SilverTiger/lwjgl3-tutorial/blob/master/src/silvertiger/tutorial/lwjgl/Introduction.java

Thanks a bunch! So I guess there was something missing from the previous build? Maybe worth to mention that previously I tried all the three builds available on the download page, which gave the same error result.
Title: Re: LWJGL3 Linux Eclipse "symbol lookup error"
Post by: spasi on July 04, 2015, 13:54:21
Quote from: Lugen on July 04, 2015, 13:40:27Holy stuff, it works!

Cool, thanks for the confirmation.

Quote from: Lugen on July 04, 2015, 13:40:27Maybe worth to mention that previously I tried all the three builds available on the download page, which gave the same error result.

The nightly and stable builds have been updated now.