[SOLVED] LWJGL3 Linux Eclipse "symbol lookup error"

Started by Lugen, July 03, 2015, 23:41:26

Previous topic - Next topic

Lugen

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.

spasi


Lugen

Quote from: spasi on July 04, 2015, 13:22:38
Hey Lugen,

Could you try this build 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.

spasi

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.