[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop
Subject: Re: Little bug in OpenGL project
From: "W. Tasin" <tasin () e-technik ! fh-muenchen ! de>
Date: 2000-04-04 19:53:46
[Download RAW message or body]
Andreas Schlapbach wrote:
>
Hello Andreas,
> Hello
>
> Great work everybody. But here's a little bug. Trying to compile the
> OpenGl project leads to:
>
> /bin/sh ../libtool --silent --mode=link g++ -O0 -g3 -Wall -o opengl
> -L/opt/kde/lib -L/usr/X11R6/lib -rpath /opt/kde/lib -rpath
> /usr/X11R6/lib openglview.o opengldoc.o opengl.o main.o opengldoc.moc.o
> opengl.moc.o openglview.moc.o -lkfile -lkfm -lkdeui -lkdecore -lqt
> -lqgl -lMesaGL -lXmu -lXext -lX11
> /usr/i486-linux/bin/ld: cannot open -lqgl: No such file or directory
thanks for the hint... it was an problem with configure, if you can
develop QT apps without -L<qt-lib-path> (shared libs and static qgl-lib
*sigh*).
So this should be corrected now.
>
> Looking at the Makefile tells why:
>
> all_includes = -I/opt/kde/include -I/usr/lib/qt/include
> -I/usr/X11R6/include
> all_libraries = -L/opt/kde/lib -L/usr/X11R6/lib
> install_root =
> ..
> qt_includes = /usr/lib/qt/include
> qt_libraries =
> x_includes = /usr/X11R6/include
> x_libraries = /usr/X11R6/lib
>
> The directory with the qt-libraries is missing. Could somebody fix this?
done...
>
> Maybe a somewhat more extended example would be fine. If you're doing
> some bigger OpenGL project, the linking gets harder:
>
> LIBS = -lXt -lXi -lXmu -lXext -lX11 -lglut -lMesaGLU -lMesaGL
> -lm
>
> Maybe this libraries should also be linked against in the example
> project.
I donīt think this would be a good thing, this would mean everybody has
to have
these libraries installed to make it (even if they are not needed to
compile the template project).
So I prefer the minimalistic solution, which tries to link only those
libraries, which are really necessary for the template-project.
>
> And what about a comment in the source code that tells a new user that
> he first has to compile the qt-extensions?
I have done this, too. Now you will find a README.qgl in a newly created
NormalOGL project and configure will now stop if some of the following
GL libraries are missing:
-lqgl -lXmu -lMesaGL -lMesaGLU
or
-lqgl -lXmu -lGL -lGLU (on Solaris and others)
>
> Just wondering,
>
> Andreas
>
> --
> >> Linux - Where do you want to go tomorrow? <<
>
> Andreas Schlapbach
> mailto:schlpbch@iam.unibe.ch
> http://iamexwiwww.unibe.ch/studenten/schlpbch
Ciao
Walter
--
The KDevelop project: tasin@kdevelop.de [www.kdevelop.org]
--
oohhh sveglia.... il mondo e' ammalato, ma x colpa di chi.........
(Zucchero)
:-------W. Tasin, FB
04,FHM-------------------PGP-KeyID:0x7961A645----------:
<Key-Fingerprint: 1610 835F 0080 32F4 6140 6CF7 A7D0 44CD 7961A645>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic