From: Thomas M. H. <tho...@gm...> - 2008-12-09 16:21:59
|
Hi. I would love to get SGeMS compiling on Ubuntu Linux 8.10, but I run into a compile problem I download Coin, SimVoleon and SoQt from SVN >> svn co https://svn.coin3d.org/repos/Coin/trunk Coin >> svn co https://svn.coin3d.org/repos/Coin/trunk SimVoleon >> svn co https://svn.coin3d.org/repos/Coin/trunk SoQt and do ./configure ; make ; sudo make install I observe no errors here. Then I download GsTL and GsTLAppli-qt4 from CVS : >> cvs -d:pserver:ano...@gs...:/cvsroot/gstl login >> cvs -z3 -d:pserver:ano...@gs...:/cvsroot/gstl co -P GsTLc >> cvs -d:pserver:ano...@sg...:/cvsroot/sgems login >> cvs -z3 -d:pserver:ano...@sg...:/cvsroot/sgems co -P GsTLAppli-qt4 this created the folders : /home/tmh/COMPILING/GsTLAppli-qt4 /home/tmh/COMPILING/GsTL In /home/tmh/COMPILING/GsTLAppli-qt4 I edit .qmake.cache to look like this : -- GSTLHOME = /home/tmh/COMPILING/GsTL GSTLAPPLI_HOME = /home/tmh/COMPILING/GsTLAppli-qt4 INVENTOR_LIB = /usr/local/lib INVENTOR_INCLUDE = /usr/local/include/Inventor PYTHON_LIB = /usr/lib PYTHON_INCLUDE = /usr/include/python2.5 PYTHON_SO = python2.5 -- Then i type >> qmake and >> make The compile porcess starts, but fails rather quickly in the folder /home/tmh/COMPILING/GsTLAppli-qt4/GsTLAppli/utils The following compile command fails : " g++ -Wl,--no-undefined -shared -Wl,-soname,libGsTLAppli_utils.so.1 -o libGsTLAppli_utils.so.1.0.0 ../../lib/linux/obj/utils/clock.o ../../lib/linux/obj/utils/error_messages_handler.o ../../lib/linux/obj/utils/gstl_messages_private.o ../../lib/linux/obj/utils/manager.o ../../lib/linux/obj/utils/progress_notifier.o ../../lib/linux/obj/utils/simpleps.o ../../lib/linux/obj/utils/string_manipulation.o -L/usr/lib -L/home/tmh/COMPILING/GsTLAppli-qt4/lib/linux -lpthread -lQtGui -lQtCore " with the folllowing error " ../../lib/linux/obj/utils/simpleps.o: In function `SimplePs::drawAxis(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool)': simpleps.cpp:(.text+0x147f): undefined reference to `QwtPlot::axisScaleDiv(int)' simpleps.cpp:(.text+0x14a3): undefined reference to `QwtPlot::axisScaleDiv(int)' simpleps.cpp:(.text+0x14c8): undefined reference to `QwtPlot::axisScaleDiv(int)' simpleps.cpp:(.text+0x14ec): undefined reference to `QwtPlot::axisScaleDiv(int)' ../../lib/linux/obj/utils/simpleps.o: In function `SimplePs::drawYRightAxis(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)': simpleps.cpp:(.text+0x1d96): undefined reference to `QwtPlot::axisScaleDiv(int)' ../../lib/linux/obj/utils/simpleps.o:simpleps.cpp:(.text+0x1db4): more undefined references to `QwtPlot::axisScaleDiv(int)' follow ../../lib/linux/obj/utils/simpleps.o: In function `SimplePs::drawCurve(QwtData&, int, bool)': simpleps.cpp:(.text+0x247a): undefined reference to `QwtScaleMap::transformation() const' simpleps.cpp:(.text+0x25ca): undefined reference to `QwtScaleMap::transformation() const' simpleps.cpp:(.text+0x29ac): undefined reference to `QwtScaleMap::~QwtScaleMap()' simpleps.cpp:(.text+0x29c0): undefined reference to `QwtScaleMap::~QwtScaleMap()' simpleps.cpp:(.text+0x2a14): undefined reference to `QwtPlot::axisScaleDiv(int)' simpleps.cpp:(.text+0x2a35): undefined reference to `QwtPlot::axisScaleDiv(int)' simpleps.cpp:(.text+0x3043): undefined reference to `QwtScaleMap::~QwtScaleMap()' simpleps.cpp:(.text+0x3051): undefined reference to `QwtScaleMap::~QwtScaleMap()' collect2: ld returned 1 exit status make: *** [../../lib/linux/libGsTLAppli_utils.so.1.0.0] Error 1 " I notice that I can manually go to /home/tmh/COMPILING/GsTLAppli-qt4/GsTLAppli/extra/qwt Issuing a 'make' commmand here generates the shared objects libqwt.so, libqwt.so.1, libqwt.so.1.0, libqwt.so.1.0.0, in 'home/tmh/COMPILING/GsTLAppli-qt4/lib/linux/' However I still get the undefined reference errors (to Qwt*) I hope anyone has an idea to get me through the compilation on Ubuntu 8.10. have a nice day - Thomas --make[2]: Entering directory `/home/tmh/RESEARCH/SGEMS/GsTLAppli-qt4/GsTLAppli/utils' rm -f libGsTLAppli_utils.so.1.0.0 libGsTLAppli_utils.so libGsTLAppli_utils.so.1 libGsTLAppli_utils.so.1.0 g++ -Wl,--no-undefined -shared -Wl,-soname,libGsTLAppli_utils.so.1 -o libGsTLAppli_utils.so.1.0.0 ../../lib/linux/obj/utils/clock.o ../../lib/linux/obj/utils/error_messages_handler.o ../../lib/linux/obj/utils/gstl_messages_private.o ../../lib/linux/obj/utils/manager.o ../../lib/linux/obj/utils/progress_notifier.o ../../lib/linux/obj/utils/simpleps.o ../../lib/linux/obj/utils/string_manipulation.o -L/usr/lib -L/home/tmh/RESEARCH/SGEMS/GsTLAppli-qt4/lib/linux -lpthread -lQtGui -lQtCore ../../lib/linux/obj/utils/simpleps.o: In function `SimplePs::drawAxis(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool)': simpleps.cpp:(.text+0x147f): undefined reference to `QwtPlot::axisScaleDiv(int)' simpleps.cpp:(.text+0x14a3): undefined reference to `QwtPlot::axisScaleDiv(int)' simpleps.cpp:(.text+0x14c8): undefined reference to `QwtPlot::axisScaleDiv(int)' simpleps.cpp:(.text+0x14ec): undefined reference to `QwtPlot::axisScaleDiv(int)' ../../lib/linux/obj/utils/simpleps.o: In function `SimplePs::drawYRightAxis(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)': simpleps.cpp:(.text+0x1d96): undefined reference to `QwtPlot::axisScaleDiv(int)' ../../lib/linux/obj/utils/simpleps.o:simpleps.cpp:(.text+0x1db4): more undefined references to `QwtPlot::axisScaleDiv(int)' follow ../../lib/linux/obj/utils/simpleps.o: In function `SimplePs::drawCurve(QwtData&, int, bool)': simpleps.cpp:(.text+0x247a): undefined reference to `QwtScaleMap::transformation() const' simpleps.cpp:(.text+0x25ca): undefined reference to `QwtScaleMap::transformation() const' simpleps.cpp:(.text+0x29ac): undefined reference to `QwtScaleMap::~QwtScaleMap()' simpleps.cpp:(.text+0x29c0): undefined reference to `QwtScaleMap::~QwtScaleMap()' simpleps.cpp:(.text+0x2a14): undefined reference to `QwtPlot::axisScaleDiv(int)' simpleps.cpp:(.text+0x2a35): undefined reference to `QwtPlot::axisScaleDiv(int)' simpleps.cpp:(.text+0x3043): undefined reference to `QwtScaleMap::~QwtScaleMap()' simpleps.cpp:(.text+0x3051): undefined reference to `QwtScaleMap::~QwtScaleMap()' collect2: ld returned 1 exit status make[2]: *** [../../lib/linux/libGsTLAppli_utils.so.1.0.0] Error 1 make[2]: Leaving directory `/home/tmh/RESEARCH/SGEMS/GsTLAppli-qt4/GsTLAppli/utils' make[1]: *** [sub-utils-make_default] Error 2 make[1]: Leaving directory `/home/tmh/RESEARCH/SGEMS/GsTLAppli-qt4/GsTLAppli' make: *** [sub-GsTLAppli-make_default] Error 2 -- -- skype : cultpenguin messenger: tm...@gf... cell : +45 41427380 |