Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-21-2008, 05:22 PM   #1
LQ Newbie
Registered: Jun 2008
Posts: 2

Rep: Reputation: 0
can't find usr/X11R6/lib/


I have been attempting to resolve the same problem for awhile now. I tried several methods that fellow users have recommended, but its not working. I don't know if this is the proper forum to post this in, but its worth a try.

I am working on kubuntu and using a kdevelop.

I am utilizing openGL in my project. When I execute my project, it returns the following:
g++ -o mainwindow main.o mainwindow.o moc_mainwindow.o -L/usr/share/qt3/lib -L/usr/X11R6/lib -L/usr/X11R6/lib /usr/X11R6/lib/ -lqt-mt -lGLU -lGL -lXmu -lXext -lX11 -lm -lpthread
g++: /usr/X11R6/lib/ No such file or directory
make: *** [mainwindow] Error 1

My .pro file is the following:
CONFIG += release \
warn_on \
HEADERS += mainwindow.h
SOURCES += main.cpp \
LIBS += /usr/X11R6/lib/

ldd mainwindow returns the following: => (0xffffe000) => /usr/lib/ (0xb7eec000) => /usr/lib/ (0xb76dc000) => /usr/lib/ (0xb76cd000) => /usr/lib/ (0xb75dc000) => not found => /lib/tls/i686/cmov/ (0xb75b7000) => /lib/ (0xb75ac000) => /lib/tls/i686/cmov/ (0xb7462000) => /usr/lib/ (0xb7400000) => /usr/lib/ (0xb730d000) => /usr/lib/ (0xb72e2000) => /usr/lib/ (0xb72cc000) => /usr/lib/ (0xb727b000) => /usr/lib/ (0xb725b000) => /usr/lib/ (0xb7237000) => /usr/lib/ (0xb7222000) => /usr/lib/ (0xb721a000) => /usr/lib/ (0xb7212000) => /usr/lib/ (0xb720c000) => /usr/lib/ (0xb7203000) => /usr/lib/ (0xb71ff000) => /usr/lib/ (0xb71ed000) => /usr/lib/ (0xb717d000) => /usr/lib/ (0xb7175000) => /usr/lib/ (0xb715d000) => /lib/tls/i686/cmov/ (0xb7159000) => /lib/tls/i686/cmov/ (0xb7140000) => /usr/lib/ (0xb713d000) => /usr/lib/ (0xb7138000)

in /usr/X11R6/lib, ls -la returns the following:
total 12
drwxr-xr-x 3 root root 4096 2008-06-26 11:49 .
drwxr-xr-x 3 root root 4096 2007-10-16 18:07 ..
lrwxrwxrwx 1 root root 28 2008-06-26 11:49 -> /usr/lib/
drwxr-xr-x 4 root root 4096 2007-10-16 18:09 X11

nmr@nmr:/usr/X11R6/lib$ echo $LD_LIBRARY_PATH

nmr@nmr:/usr/X11R6/lib$ echo $PATH

Does the fact that I am linking to effect it somehow and is there a difference between a and a Furthermore, when I ldd mainwindow it shows a, but not a Should it do that?

I don't know if I have a link in the wrong place or if I didn't configure something correctly, but If someone would help me resolve this error, I would greatly appreciate it.

Old 07-21-2008, 05:57 PM   #2
Registered: Jun 2008
Posts: 101

Rep: Reputation: 15
On my system and are both softlinks to the real library.

# ls -l /usr/lib/libGLU*
lrwxrwxrwx 1 root root     11 febr 14 13.41 /usr/lib/ ->
lrwxrwxrwx 1 root root     20 febr 14 13.39 /usr/lib/ ->
-rwxr-xr-x 1 root root 460620 jan 22 19.44 /usr/lib/
Having it this way one doesn't have to bother with version numbers. Maybe modify your entry in /usr/X11R6/lib (currently -> /usr/lib/ to point to , and also check if the file /usr/lib/ really exists.

Linux Archive

Last edited by FranDango; 09-20-2008 at 06:44 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ln: creating symbolic link `' to `/usr/lib/': Permission deni nmrabinovich Ubuntu 1 06-25-2008 05:57 PM
where is FC6's /usr/X11R6/lib ? i cann't find it ! HELP NEEDED IN URGENCE close2me Fedora 3 04-15-2007 10:25 PM
oops, I stripped /usr/lib and /usr/X11R6/lib ! H_TeXMeX_H Slackware 2 02-08-2007 10:27 PM
Couldn't open RGB_DB ' /usr/X11R6/lib/X11/rgb lilohatea Debian 2 01-30-2006 08:57 PM
ld not finding libraries in /usr/X11R6/lib gustavderdrache Linux - Software 2 01-16-2006 05:34 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:29 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration