Thread: [Kmatplot-general] compile errors
Brought to you by:
kamil
From: Sam H. <sa...@ne...> - 2002-05-24 15:14:12
|
hi again, i have tried compiling kmatplot 0.4 again with qt-3.0.4 no-threads, but i still get the parse errors... on closer inspection, the parse errors seem to be coming from constants being redefined... i fixed this by removing the files #include "qsaxes3d.cpp" #include "qsplot.cpp" #include "qscurve.cpp" #include "qscontour.cpp" #include "qsimage.cpp" #include "qsfigure.cpp" #include "qssurface.cpp" #include "qsctool.cpp" from the dynamically made file kmatplot/widgets/libplot_a.all_cpp.cpp and also the same sort of thing with function redeclarations in kmatplot/dialogs/libdialogs_a.all_cpp.cpp i gave up tryign to fix it there as obviously any version i compile will be missing many features if it even loads at all.... is it maybe that my version of qt is too recent for kmatplot? also i seem to be gettign a lot of warings like; /usr/lib/qt3/bin/uic -i ksgraphwizardinterf.h ./ksgraphwizardinterf.ui > ksgraphwizardinterf.cpp || rm -f ksgraphwizardinterf.cpp Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed cheers, Sam -- Osborn's Law: Variables won't; constants aren't. |
From: Sam H. <sa...@ne...> - 2002-05-25 19:36:30
|
> What happens if you do: > ./configure --prefix=/usr/X11R6 > then make on a clean tree? no joy, i still get; c++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/lib/qt3/include -I/usr/X11R6/include -O0 -O2 -march=i686 -mcpu=i686 -fno-exceptions -fno-check-new -c libplot_a.all_cpp.cpp In file included from libplot_a.all_cpp.cpp:13: qsaxes3d.cpp:87: warning: `FILLS_NUM' redefined qsaxes2d.cpp:37: warning: this is the location of the previous definition qsaxes3d.cpp:88: warning: `LINES_NUM' redefined qsaxes2d.cpp:38: warning: this is the location of the previous definition In file included from libplot_a.all_cpp.cpp:14: qsplot.cpp:343: warning: `FILLS_NUM' redefined qsaxes3d.cpp:87: warning: this is the location of the previous definition qsplot.cpp:344: warning: `LINES_NUM' redefined qsaxes3d.cpp:88: warning: this is the location of the previous definition qsplot.cpp:345: warning: `POINTS_NUM' redefined qsaxes3d.cpp:89: warning: this is the location of the previous definition In file included from libplot_a.all_cpp.cpp:21: qsdrvopengl.cpp:585: warning: `EPS' redefined qsaxes3d.cpp:609: warning: this is the location of the previous definition In file included from libplot_a.all_cpp.cpp:23: qscurve.cpp:74: warning: `CHANNELS_NUM' redefined qsaxes3d.cpp:85: warning: this is the location of the previous definition qscurve.cpp:75: warning: `FILLS_NUM' redefined qsplot.cpp:343: warning: this is the location of the previous definition qscurve.cpp:77: warning: `LINES_NUM' redefined qsplot.cpp:344: warning: this is the location of the previous definition qscurve.cpp:590: warning: `BOX_SPACE' redefined qsplot.cpp:393: warning: this is the location of the previous definition In file included from libplot_a.all_cpp.cpp:24: qscontour.cpp:43: warning: `MAX_BUFF_SIZE' redefined qsplot.cpp:282: warning: this is the location of the previous definition qscontour.cpp:137: warning: `FILLS_NUM' redefined qscurve.cpp:75: warning: this is the location of the previous definition qscontour.cpp:139: warning: `LINES_NUM' redefined qscurve.cpp:77: warning: this is the location of the previous definition qscontour.cpp:871: warning: `BOX_SPACE' redefined qscurve.cpp:590: warning: this is the location of the previous definition In file included from libplot_a.all_cpp.cpp:25: qsimage.cpp:49: warning: `CHANNELS_NUM' redefined qscurve.cpp:74: warning: this is the location of the previous definition In file included from libplot_a.all_cpp.cpp:26: qsfigure.cpp:227: warning: `CHANNELS_NUM' redefined qsimage.cpp:49: warning: this is the location of the previous definition In file included from libplot_a.all_cpp.cpp:27: qssurface.cpp:158: warning: `CHANNELS_NUM' redefined qsfigure.cpp:227: warning: this is the location of the previous definition In file included from libplot_a.all_cpp.cpp:24: qscontour.cpp: In method `QSGriddedContour::QSGriddedContour(QSAxes *, const char * = 0)': qscontour.cpp:1010: parse error before `11' qscontour.cpp: In method `QSNonGriddedContour::QSNonGriddedContour(QSAxes *, const char * = 0)': qscontour.cpp:1558: parse error before `11' In file included from libplot_a.all_cpp.cpp:31: qsctool.cpp: In method `bool QSTool::canvasEvent(QEvent *)': qsctool.cpp:64: parse error before `2' qsctool.cpp:65: parse error before `3' make[3]: *** [libplot_a.all_cpp.o] Error 1 make[3]: Leaving directory `/usr/src/kmatplot-0.4/kmatplot/widgets' Sam -- Cops never say good-bye. They're always hoping to see you again in the line-up. -- Raymond Chandler |
From: Sam H. <sa...@ne...> - 2002-05-25 19:57:19
|
i think i found what the problem is with the compile errors!! yipee! its the --enable-final flag, when i last posted i only removed --disable-debug, but now i tried with only what you said, and by adding a new flag on and trying, i pinpointed the error.... so everybody be warned the --enable-final flag produces bad code!! i think it adds all the code into one big file (well, includes cpp files in a big file), and then tries to compile that, but the preprocessor replaces occurrences of constants with their value, and this produces a parse error when it tries to compile something like; 5 = 3; due to the lack of kde dependence now, will the name be changed? matplot seems logical but exists already. cheers i am sooo glad i got this to work, kmatplot is instrumental to my work, and i was considering putting entire kde2 in just for an older version!!! thanks again! i'm away to finish the compile and see what it is like! Sam BTW is kmatplot still being maintained, kamil used to respond to any bug reports i sent in the early days, but now i don't hear anything? anyone concerned about him? |
From: Hugo v. d. M. <s13...@ba...> - 2002-05-25 23:14:05
|
> BTW is kmatplot still being maintained, kamil used to respond to any bug > reports i sent in the early days, but now i don't hear anything? anyone > concerned about him? Kamil indicated to me about a week or two back that he has lost his internet connection, in the email in which he apologized for taking so long to reply to mine. So I think it's probably just that. Hugo |
From: Laurent J. <lja...@fy...> - 2002-05-24 16:06:47
|
Hello, what is exactly your linux system ? Redhat, Debian, LFS, Suse ? Under debian you have to use libqt3 (3.0.4, runtime version) and the associated development package libqt3-dev. Under Redhat 7.3, http://rpmfind.net//linux/RPM/redhat/7.3/i386/qt-3.0.3-11.i386.html is ok with http://rpmfind.net//linux/RPM/redhat/7.3/i386/qt-devel-3.0.3-11.i386.html Then, complete the .configure's options according to the qt libraries and headers locations. Laurent. |
From: Sam H. <sa...@ne...> - 2002-05-24 21:39:12
|
> what is exactly your linux system ? > Redhat, Debian, LFS, Suse ? i am runngin Linux From Scratch, a variant on verison 3.0... i have compield everythign on my system myself, so i'm pretty sure i have everythign that is required, i never had any problems compiling earlier versions of kmatplot on qt2, and i have used qt3 to compile kde3 (which i promptly removed becuase it is VERY bloated) and i deleted the qt3 tree and recompiled the non-threaded version jsut so kmatplot could use it, when compiling qt3 i use; ../configure -shared -xinerama -xrender -xkb -sm -no-thread -qt-gif -system-libpng -system-libmng -system-zlib -system-libjpeg -xft -no-g++-exceptions -release and for kmatplot i use; ../configure --prefix=/usr/X11R6 --disable-debug --with-qt-dir=/usr/lib/qt3 -with-pythondir=/usr/lib/python2.2 --with-numpy=/usr/lib/python2.2 --with-scilab-lib-dir=/usr/X11R6 --enable-final the kmatplot code seems to redeclare a whoel lot of values, i get parse errrors when constants are changed. i use gcc-2.95.3 with glibc 2.2.5, linux 2.4.18. cheers, Sam -- Misfortune, n.: The kind of fortune that never misses. -- Ambrose Bierce, "The Devil's Dictionary" |