Problems with KDevelop when using Qt QGLWidget

Jacek Wojdel wojdel at kbs.twi.tudelft.nl
Tue Aug 24 15:22:45 BST 1999


-----BEGIN PGP SIGNED MESSAGE-----

On Tue, 24 Aug 1999, you wrote:
> Hi,
>
> I need to implement an application for my job and I have found quite pretty to
> use KDevelop in that goal. Further more, I need to use OpenGL libraries for
> rendering. Whereas everithing was alright up to now, the compiler fails since
> I use QGLWidget.
> (...)
> gmake: Entering directory `/home/peyre/these/dev/learning/sample3/sample3'
> g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/qt/include  -I/usr/X11R6/include    -O0 -g3 -Wall    -c mainview.cpp
> /usr/bin/moc ./mainview.h -o mainview.moc.cpp
> g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/qt/include  -I/usr/X11R6/include    -O0 -g3 -Wall    -c mainview.moc.cpp
> /bin/sh ../libtool --silent --mode=link g++  -O0 -g3 -Wall     -o sample3 -L/usr/X11R6/lib  mainview.o sample3view.o sample3doc.o sample3.o  mainview.moc.o sample3.moc.o sample3doc.moc.o sample3view.moc.o main.o -lqgl -lMesaGL -lkab -lkspell -lkfile -lkfm -lkhtmlw -lkimgio -ljpeg -ltiff -lpng -lm -ljscript -lkdeui -lkdecore -lqt -lXext -lX11
> /usr/local/qt/lib/libqgl.a(qgl.o): In function `choose_cmap(_XDisplay *, XVisualInfo *)':
> qgl.o(.text+0x66d): undefined reference to `XmuLookupStandardColormap'
> collect2: ld returned 1 exit status
> gmake: *** [sample3] Error 1
> gmake: Leaving directory `/home/peyre/these/dev/learning/sample3/sample3'
> *** échoué ***
>
> Maybe Qt is not installed correctly. If this is the case, could somebody help me
> to install it in the good way.
>
> I don't know what to do anymore and I'm feeling desperate, so PLEASE HELP !
> --
> Hubert Peyré
> Pole API - Bd Sébastien Brant - 67400 Illkirch
> Tel : +33 (0) 388 65 55 41
> E-mail : peyre at dpt-info.u-strasbg.fr

	Hi
Try adding -lXmu to your linking options (seems that libqgl relies on it).
Moreover you might need to link also libGLU (libMesaGLU) - all of the example
qgl programs link it.
  	Jacek
--
+-------------------------------------+
|from: J.C.Wojdel                     |
|      J.C.Wojdel at cs.tudelft.nl       |
+-------------------------------------+

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
MessageID: 1BpvbSoaFMvVWYcRZ/9SiAk8XSdKZMAY

iQCVAwUBN8KsaoWy7tU6a5rbAQHJ9QP9H/GBV4sYU9p7j0t3XhdpXexlEVbwsv/1
NvLNRJEy4M9GlaiXxoDlXVvTb3rHuTml4rR/0CQ8GDjkcTUOqaJXaQm+9UCG0qfS
PvIkHC1PdC1AvUWqWE1WERIwtM8zrGmkqhQolARZUJiZ7wjWvEIyk2T6wzSkWpMV
PHTWRbtbeDI=
=tKbs
-----END PGP SIGNATURE-----



More information about the KDevelop mailing list