LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 0
can't find usr/X11R6/lib/libGLU.so.1.3


Hi,

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/libGLU.so.1.3 -lqt-mt -lGLU -lGL -lXmu -lXext -lX11 -lm -lpthread
g++: /usr/X11R6/lib/libGLU.so.1.3: No such file or directory
make: *** [mainwindow] Error 1

My .pro file is the following:
INCLUDEPATH += .
CONFIG += release \
warn_on \
opengl
TEMPLATE = app
HEADERS += mainwindow.h
SOURCES += main.cpp \
mainwindow.cpp
LIBS += /usr/X11R6/lib/libGLU.so.1.3

ldd mainwindow returns the following:
linux-gate.so.1 => (0xffffe000)
libGLU.so.1 => /usr/lib/libGLU.so.1 (0xb7eec000)
libqt-mt.so.3 => /usr/lib/libqt-mt.so.3 (0xb76dc000)
libXext.so.6 => /usr/lib/libXext.so.6 (0xb76cd000)
libX11.so.6 => /usr/lib/libX11.so.6 (0xb75dc000)
libstdc++.so.5 => not found
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb75b7000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb75ac000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7462000)
libGL.so.1 => /usr/lib/libGL.so.1 (0xb7400000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb730d000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb72e2000)
libaudio.so.2 => /usr/lib/libaudio.so.2 (0xb72cc000)
libXt.so.6 => /usr/lib/libXt.so.6 (0xb727b000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb725b000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb7237000)
libz.so.1 => /usr/lib/libz.so.1 (0xb7222000)
libXi.so.6 => /usr/lib/libXi.so.6 (0xb721a000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb7212000)
libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb720c000)
libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb7203000)
libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb71ff000)
libXft.so.2 => /usr/lib/libXft.so.2 (0xb71ed000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb717d000)
libSM.so.6 => /usr/lib/libSM.so.6 (0xb7175000)
libICE.so.6 => /usr/lib/libICE.so.6 (0xb715d000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7159000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7140000)
libXau.so.6 => /usr/lib/libXau.so.6 (0xb713d000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (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 libGLU.so.1.3 -> /usr/lib/libGLU.so.1.3.07001
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
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

Does the fact that I am linking libGLU.so.1.3 to libGLU.so.1.3.07001 effect it somehow and is there a difference between a libGLU.so.1.3 and a libGLU.so.1.3.07001? Furthermore, when I ldd mainwindow it shows a libGLU.so.1, but not a libGLU.so.1.3. 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.

Thanks,
Natalie
 
Old 07-21-2008, 04:57 PM   #2
FranDango
Member
 
Registered: Jun 2008
Posts: 101

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

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

Linux Archive

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


Reply


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 `libGLU.so.1.3' to `/usr/lib/libGLU.so.1': Permission deni nmrabinovich Ubuntu 1 06-25-2008 04:57 PM
where is FC6's /usr/X11R6/lib ? i cann't find it ! HELP NEEDED IN URGENCE close2me Fedora 3 04-15-2007 09:25 PM
oops, I stripped /usr/lib and /usr/X11R6/lib ! H_TeXMeX_H Slackware 2 02-08-2007 09:27 PM
Couldn't open RGB_DB ' /usr/X11R6/lib/X11/rgb lilohatea Debian 2 01-30-2006 07:57 PM
ld not finding libraries in /usr/X11R6/lib gustavderdrache Linux - Software 2 01-16-2006 04:34 PM


All times are GMT -5. The time now is 10:02 PM.

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