Re: [Kmatplot-general] Debian package ?
Brought to you by:
kamil
From: Kamil <kam...@po...> - 2001-10-11 23:21:56
|
> Here is the error that I catch when I try a simple compilation of the > kmatplot sources. I have tried several version of glut (from 3.7-5 to > 3.7-11, it is perhaps a debianised version number) but it is always the > same result. === > ... > g++ -O0 -fexceptions -fno-check-new -Wall -pedantic -W -Wpointer-arith > -Wmissing-prototypes -Wwrite-strings -Wno-long-long -Wnon-virtual-dtor > -fno-builtin -o demo2d demo2d.o -L/usr/X11R6/lib > ../widgets/.libs/libplot.a -L/usr/lib/gcc-lib/i386-linux/2.95.4 -lstdc++ > -lc -lgcc -lqt -lpng -lz -lm -ljpeg -lXext -lX11 -lSM -lICE -lGL -lGLU > -lX11 > ../widgets/.libs/libplot.a(qgl_x11.o): In function `choose_cmap(_XDisplay > *, XVisualInfo *)': > qgl_x11.o(.text+0x3ee): undefined reference to `XmuLookupStandardColormap' > collect2: ld returned 1 exit status > make[3]: *** [demo2d] Error 1 > make[3]: Leaving directory `/home/laurent/kmatplot-0.2.2/kmatplot/demos' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory `/home/laurent/kmatplot-0.2.2/kmatplot' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/laurent/kmatplot-0.2.2' > make: *** [all-recursive-am] Error 2 > === I didn't notice -lXmu in the linker command line. I'm not an expert in those Makefiles - they work in different way on each system. You can force linking to Xmu by modifing following lines in Makefiles, this should solve the problem. kmatplot/demos/Makefile.am: demo2d_LDADD = ../widgets/libplot.la $(LIB_QT) -lXmu $(GLLIB) demo3d_LDADD = ../widgets/libplot.la ../opengl/libqgl.la $(LIB_QT) -lXmu $(GLLIB) kmatplot/Makefile.am: kmatplot_LDADD = ./part/libkmatplot.la -lXmu > > I obtain also plenty of warning like this one: > > === > qsdata.h: In method `class QSData * QSData::child(int) const': > qsdata.h:97: warning: unused parameter `int index' > /usr/bin/moc ./qsplotview.h -o qsplotview.moc.cpp > /bin/sh ../../libtool --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. > -I../.. -I/usr/include/kde -I/usr/include/qt -I/usr/X11R6/include -O0 > -fexceptions -fno-check-new -Wall -pedantic -W -Wpointer-arith > -Wmissing-prototypes -Wwrite-strings -Wno-long-long -Wnon-virtual-dtor > -fno-builtin -c qsplotview.moc.cpp > g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/kde -I/usr/include/qt > -I/usr/X11R6/include -O0 -fexceptions -fno-check-new -Wall -pedantic -W > -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long > -Wnon-virtual-dtor -fno-builtin -c qsplotview.moc.cpp -fPIC -DPIC -o > .libs/qsplotview.moc.o > In file included from qsdata.h:28, > from qsbase.h:28, > from qsaxes.h:33, > from qsplotview.h:23, > from qsplotview.moc.cpp:16: > === > > Any idea ? > I don't know why you are obtaining plenty of warnings ( some pedantic gcc version ? ) but probably you can safely ignore them all. Kamil |