LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-05-2003, 02:48 AM   #1
Teddy_Horse
Member
 
Registered: Aug 2003
Posts: 30

Rep: Reputation: 15
Question Problems Compiling KDE


I am trying to compile Kde 3.1.4 using Konstruct. I get the following error:
/bin/sh ../../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -I/root/kde3.1.4/include -I/usr/X11R6/include -L/root/kde3.1.4/lib -L/usr/X11R6/lib -O2 -pipe -I/root/kde3.1.4/include -I/usr/X11R6/include -L/root/kde3.1.4/lib -L/usr/X11R6/lib -O2 -pipe -fno-exceptions -fno-check-new -L/usr/X11R6/lib -L/root/kde3.1.4/lib -R /root/kde3.1.4/lib -R /usr/X11R6/lib -o kbanner.kss banner.o -lkdeui -lkscreensaver -lm -lMesaGLU -lMesaGL -lX11
libtool: link: cannot find the library `/usr/lib/libGL.la'
make[5]: *** [kbanner.kss] Error 1
make[5]: Leaving directory `/home/all/Downloads/kde/konstruct/kde/kdeartwork/work/kdeartwork-3.1.4/kscreensaver/kdesavers'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/all/Downloads/kde/konstruct/kde/kdeartwork/work/kdeartwork-3.1.4/kscreensaver'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/all/Downloads/kde/konstruct/kde/kdeartwork/work/kdeartwork-3.1.4'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/all/Downloads/kde/konstruct/kde/kdeartwork/work/kdeartwork-3.1.4'
make[1]: *** [build-work/kdeartwork-3.1.4/Makefile] Error 2
make[1]: Leaving directory `/home/all/Downloads/kde/konstruct/kde/kdeartwork'
make: *** [dep-../../kde/kdeartwork] Error 2

Seems libGL.la does not exits. But then it comes:
ip-167-199:/usr/lib # dir | grep libGL
lrwxrwxrwx 1 root root 10 Sep 28 15:02 libGL.so -> libGL.so.1
lrwxrwxrwx 1 root root 17 Sep 28 15:02 libGL.so.1 -> libGL.so.1.0.4496
-rwxr-xr-x 1 root root 423476 Sep 28 15:02 libGL.so.1.0.4496
-rw-r--r-- 1 root root 4529014 Mar 17 2003 libGLU.a
-rwxr-xr-x 1 root root 774 Mar 17 2003 libGLU.la
lrwxrwxrwx 1 root root 13 Sep 28 14:32 libGLU.so -> libGLU.so.1.3
lrwxrwxrwx 1 root root 13 Sep 28 14:17 libGLU.so.1 -> libGLU.so.1.3
-rwxr-xr-x 1 root root 702207 Mar 17 2003 libGLU.so.1.3
lrwxrwxrwx 1 root root 21 Sep 28 15:02 libGLcore.so.1 -> libGLcore.so.1.0.4496
-rwxr-xr-x 1 root root 5060036 Sep 28 15:02 libGLcore.so.1.0.4496
lrwxrwxrwx 1 root root 7 Sep 28 14:30 libMesaGL.a -> libGL.a
lrwxrwxrwx 1 root root 8 Sep 28 14:30 libMesaGL.la -> libGL.la
lrwxrwxrwx 1 root root 8 Sep 28 14:30 libMesaGL.so -> libGL.so
lrwxrwxrwx 1 root root 10 Sep 28 16:26 libMesaGL.so.3 -> libGL.so.1
lrwxrwxrwx 1 root root 9 Sep 28 14:32 libMesaGLU.la -> libGLU.la
lrwxrwxrwx 1 root root 9 Sep 28 14:32 libMesaGLU.so -> libGLU.so
lrwxrwxrwx 1 root root 11 Sep 28 14:17 libMesaGLU.so.3 -> libGLU.so.1

Looks I have a link to that file! But it is not listed here. Where can I get this libGL.la file?
Thx,
Teddy
 
Old 10-06-2003, 04:02 AM   #2
guygriffiths
Member
 
Registered: Jun 2003
Location: Reading, UK
Distribution: Debian 3.0, LFS
Posts: 524

Rep: Reputation: 35
From what I've just read using Google, you don't actually need the libGL.la file. Here's a copy of what I found:

Quote:
> when I try to compile, the file libGL.la is still missing.
>
> I have only the following files in my /usr/X11R6/lib/ folder:
> ls /usr/X11R6/lib/libGL*
> /usr/X11R6/lib/libGL.so.1@ /usr/X11R6/lib/libGLU.so.1.3.403*
> /usr/X11R6/lib/libGLU.la* /usr/X11R6/lib/libGLw.a
> /usr/X11R6/lib/libGLU.so@ /usr/X11R6/lib/libGLwrapper.so.0.1.6*
> /usr/X11R6/lib/libGLU.so.1@
>
> Is libGLw.a the same? Can I make a sym. link to libGL.la?
> Is it possible to disable OpenGL Widgets (I can't found a option for
> configure)?
>
> Thanks for help.

This is a problem caused by the packagers of your distribution. The .la
files come from libtool. They sometimes cause link problems, and are
not strictly necessary on Linux, so some distributors remove them. The
problem is that if a library is built in the presence of a .la file for
a second library it depends on, you get a reference to that .la file in
the first library's .la file. If you then remove the second library's
.la file, you will get the above link error.

Judging by the error, it probably means that the libGLU.la or
libgtkglarea.la files are referencing libGL.la, which is causing the
problem. To fix this, remove the offending .la file.


So try moving your old .la files somewhere safe (in case you do need them and try compiling again.
Guy
 
Old 10-06-2003, 06:37 AM   #3
Teddy_Horse
Member
 
Registered: Aug 2003
Posts: 30

Original Poster
Rep: Reputation: 15
I did not remove those files. I have SuSe 8.2 distro and it did not install them at all. I checked via yast: those libs does not exist in the package.
 
Old 10-06-2003, 06:48 AM   #4
guygriffiths
Member
 
Registered: Jun 2003
Location: Reading, UK
Distribution: Debian 3.0, LFS
Posts: 524

Rep: Reputation: 35
OK, but try removing the other GL related .la files. They are not necessarily needed, but it may be them looking for libGL.la. So if you remove them, then it may not need libGL.la
 
  


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
qt problems compiling kde themes on ubuntu hoary hedgehog c-- Linux - Software 2 05-31-2005 09:14 AM
compiling kde. tiger7007 Linux - General 3 03-29-2004 03:20 AM
Problems compiling KDE 3.1.3 hernanbadino Linux - Software 0 09-02-2003 03:22 AM
Compiling KDE 3.1 cmckay Linux - General 0 02-18-2003 01:54 AM
Problems compiling kdelibs with kde 3.1 rc5 Null Linux - Software 11 12-10-2002 02:34 PM


All times are GMT -5. The time now is 07:02 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration