Results 1 to 4 of 4

Thread: glfw-3 build questions

  1. #1
    Join Date
    Oct 2011
    Beans
    1

    glfw-3 build questions

    hello,

    I'm currently using glfw-2.7.8 successfully on many different versions of Linux. Very easy to built glfw-2 using, "make x11".

    Glfw-3 uses Cmake to construct the make files. I cannot get it to work, as it is requiring many libraries during the process.

    There is no documentation on building glfw-3, that I can find.

    Please help me to get glfw-3 installed.

    Ubuntu 12.04 64-bit is my current OS when writing this.

    Thanks.

  2. #2
    Join Date
    Apr 2012
    Beans
    7,256

    Re: glfw-3 build questions

    Where are you getting stuck exactly? I appear to have built it on my 32-bit 12.04 laptop (can't remember when or why!) so if you post back with specific questions I will try to point you in the right direction - it should be as simple as installing the prerequisite -dev packages, then creating a 'Build' subdirectory (not essential - just keeps the source tree tidy) then cd'ing into it and running 'cmake ../' and then make

  3. #3
    Join Date
    Aug 2009
    Beans
    4

    Re: glfw-3 build questions

    I simply do
    $ cmake .
    $ make

  4. #4
    Join Date
    Jul 2012
    Beans
    688
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: glfw-3 build questions

    Thanks now I get:
    /usr/bin/ld: /usr/local/lib//libglfw3.a(context.c.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
    /usr/local/lib//libglfw3.a: could not read symbols: Bad value

    Hmm how to compile 3.02 with -fPIC?
    Thanks
    Last edited by MikeCyber; September 24th, 2013 at 07:45 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •