LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Problems Compiling KDE (http://www.linuxquestions.org/questions/linux-software-2/problems-compiling-kde-100388/)

Teddy_Horse 10-05-2003 02:48 AM

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

guygriffiths 10-06-2003 04:02 AM

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

Teddy_Horse 10-06-2003 06:37 AM

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.

guygriffiths 10-06-2003 06:48 AM

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


All times are GMT -5. The time now is 12:44 PM.