Results 1 to 3 of 3

Thread: Linker error : cannot find lXmu (whereas it's installed)

  1. #1
    Join Date
    Sep 2010
    Location
    France
    Beans
    14
    Distro
    Ubuntu Development Release

    Linker error : cannot find lXmu (whereas it's installed)

    Hello,

    I'm trying to compile a file with the following line :
    Code:
    gcc lesson2.c -o lesson2 -I /usr/X11R6/include/ -L /usr/lib/ -L/usr/X11R6/lib/ -L /usr/X11R6/lib64/ -lglut -lGL -lGLU -lX11 -lXmu -lm
    But i got the error : /usr/bin/ld: cannot find -lXmu

    I'm using this to compile a simple OpenGL file, and if I remove lxmu (and lxi, wiche gives me the same error), it got the all clear, but when I tun my program, I got an "Segmentation fault" error (I think because of the missing librairies)...

    When I did a locate libXmu :
    Code:
    /usr/lib/libXmu.so.6
    /usr/lib/libXmu.so.6.2.0
    /usr/lib/libXmuu.so.1
    /usr/lib/libXmuu.so.1.0.0
    I tried including the library's path but, always the same error...
    Do I have to search for the header files ? What can I do to link my lXmu to the one requested ?

    Thank you for helping
    Last edited by FluidBlow; February 16th, 2011 at 04:54 PM.

  2. #2
    Join Date
    Feb 2010
    Location
    Silicon Valley
    Beans
    1,898
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Linker error : cannot find lXmu (whereas it's installed)

    Install the libxmu-dev package to link with "-lXmu".

    However, the "missing libraries" is not why you got a segmentation fault.

  3. #3
    Join Date
    Sep 2010
    Location
    France
    Beans
    14
    Distro
    Ubuntu Development Release

    Re: Linker error : cannot find lXmu (whereas it's installed)

    Thanks for replying.

    I've already seen that, but I'm on an public computer, so I can't install new packages..

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
  •