Results 1 to 3 of 3

Thread: ld Can't Find OpenGL Libraries

  1. #1
    Join Date
    Aug 2007

    Angry ld Can't Find OpenGL Libraries

    I'm a bit confused here, but suddenly I can't link my own project because it needs to link with* and ld reports that it can't find it!
    sean@harpuia:~/Projects/mocha/trunk/guarana$ make
    g++ -nostdlibs -shared -rdynamic -Wl,-soname, gl_sdl_graphics_impl.o gl_texture.o guarana.o il_image.o sdl_event_queue_impl.o sdl_input_impl.o sdl_timer_impl.o -L../ -lGL -lIL -lILU -lILUT -lSDL -lSDLmain -lmocha -lgcc
    /usr/bin/ld: cannot find -lGL
    collect2: ld returned 1 exit status
    make: *** [guarana] Error 1
    This has never happened before, and ldconfig --print-cache shows an entry for! So what's going on here? This was working a few days ago without any problems.

    I'm running Ubuntu Hardy x86. Any incite is appreciated. Thanks!

  2. #2
    Join Date
    Aug 2007

    Cool Re: ld Can't Find OpenGL Libraries

    It seems that adding a symbolic link called pointing to did the trick ( is actually a symbolic link to the fully versioned library anyway).

    I hope this is safe. I wonder what broke it in the first place?

  3. #3
    Join Date
    Mar 2007

    Re: ld Can't Find OpenGL Libraries

    To do this:

    sudo su
    cd /usr/lib
    ls -ltr *GL*
    [if ~0 bytes]
    rm [<- edit, unnecessary]
    ln -s

    (replace 1.2 with yours)
    Last edited by jalirious; January 22nd, 2009 at 12:42 PM.


Posting Permissions

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