From: COMUNIAN A. <ale...@un...> - 2008-09-23 19:23:14
Attachments:
MakeOUT.txt
|
Hi! I'm triying to compile SGeMS 2.0 on Linux Suse10.3, but I get some errors running "make": [...] manager.cpp:96: error: no matching function for call to ‘QString::startsWith(const char*, bool)’ /usr/include/QtCore/qstring.h:213: note: candidates are: bool QString::startsWith(const QString&, Qt::CaseSensitivity) const /usr/include/QtCore/qstring.h:214: note: bool QString::startsWith(const QLatin1String&, Qt::CaseSensitivity) const /usr/include/QtCore/qstring.h:215: note: bool QString::startsWith(const QChar&, Qt::CaseSensitivity) const [...] and [...] manager.cpp: In static member function ‘static std::string Manager::init_plugin_path()’: manager.cpp:170: error: ‘class QDir’ has no member named ‘absPath’ manager.cpp:178: error: ‘class QDir’ has no member named ‘absPath’ manager.cpp: In member function ‘bool Manager::load_library(const std::string&)’: manager.cpp:227: error: ‘class QLibrary’ has no member named ‘setAutoUnload’ [...] Do you have some suggestions please? Thank you in advance! Bests, Alessandro |
From: Alessandro C. <ale...@un...> - 2009-02-13 15:07:30
|
Dear all, encouraged by Bobby's post I tried to compile SGeMS on my Linux machine again. - A first problem apparently related to the python2.5 distributed with OpenSUSE was solved installing from the sources python 2.4.5. - A second problem, probably related to the fact that I have both qt3 and qt4 on my pc and by default "qmake" is the one from qt4, was solved using "/usr/lib/qt3/bin/qmake" and setting in ".qmake.cache" "QMAKESPEC = /usr/lib/qt3/mkspecs/linux-g++-64" Doing this "make" progresses for some minute, until this error: ------------------------------------------------------------------------------------------------------------------------------ [...] /usr/lib/qt3/bin/moc -I/usr/lib/qt3/mkspecs/linux-g++-64 -I. -I/usr/lib/qt3/include -I. -I/opt/GsTL-1.3 -I/home/UNINE.CH/comuniana/temp/SGeMS-2.0 -I. -I. -I/usr/include qwt_legend.h -o moc_qwt_legend.cpp Qt meta object compiler moc: Invalid argument Usage: moc [options] <header-file> -o file Write output to file rather than stdout -f[file] Force #include, optional file name -p path Path prefix for included file -i Do not generate an #include statement -k Do not stop on errors -nw Do not display warnings -v Display version of moc make[2]: *** [moc_qwt_legend.cpp] Error 1 make[2]: Leaving directory `/home/UNINE.CH/comuniana/temp/SGeMS-2.0/GsTLAppli/extra/qwt' make[1]: *** [sub-extra-qwt-make_default] Error 2 make[1]: Leaving directory `/home/UNINE.CH/comuniana/temp/SGeMS-2.0/GsTLAppli' ------------------------------------------------------------------------------------------------------------------------------ Do you have any idea about how to fix this? Thank you in advance, Alessandro p.s. I also tried with the cvs version of GsTLAppli and GsTLAppli-qt4 (using the default qmake) but I have no improvements. |
From: Ting L. <lti...@gm...> - 2008-09-23 19:51:45
|
Hi. It looks like you are using Qt 4.x. SGeMS 2.0 works with Qt 3.3.x. On Tue, Sep 23, 2008 at 7:51 AM, COMUNIAN Alessandro <ale...@un...> wrote: > Hi! > I'm triying to compile SGeMS 2.0 on Linux Suse10.3, but I get some errors > running "make": > > [...] > manager.cpp:96: error: no matching function for call > to 'QString::startsWith(const char*, bool)' > /usr/include/QtCore/qstring.h:213: note: candidates are: bool > QString::startsWith(const QString&, Qt::CaseSensitivity) const > /usr/include/QtCore/qstring.h:214: note: bool > QString::startsWith(const QLatin1String&, Qt::CaseSensitivity) const > /usr/include/QtCore/qstring.h:215: note: bool > QString::startsWith(const QChar&, Qt::CaseSensitivity) const > [...] > > and > > [...] > manager.cpp: In static member function 'static std::string > Manager::init_plugin_path()': > manager.cpp:170: error: 'class QDir' has no member named 'absPath' > manager.cpp:178: error: 'class QDir' has no member named 'absPath' > manager.cpp: In member function 'bool Manager::load_library(const > std::string&)': > manager.cpp:227: error: 'class QLibrary' has no member named > 'setAutoUnload' > [...] > > Do you have some suggestions please? > Thank you in advance! > Bests, > > Alessandro > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Sgems-devel mailing list > Sge...@li... > https://lists.sourceforge.net/lists/listinfo/sgems-devel > > -- Ting Li lti...@gm... |
From: COMUNIAN A. <ale...@un...> - 2008-09-24 09:18:00
|
Thank you Ting for the suggestion! I modified the QMAKESPEC variable (= /usr/lib/qt3/mkspecs/linux-g++-64) in order to use qt3 instead of qt4, but now the problem has moved to something related to my Python installation (python2.5). So I am trying with python2.4.5: the "make" process proceeds better than with python 2.5 but at the end there is another error (cannot find -lpython2.4): [...] g++ -shared -Wl,-soname,libGsTLAppli_actions.so.1 -o libGsTLAppli_actions.so.1.0.0 ../../lib/linux/obj/actions/algorithms_actions.o ../../lib/linux/obj/actions/library_actions_init.o ../../lib/linux/obj/actions/misc_actions.o ../../lib/linux/obj/actions/obj_manag_actions.o ../../lib/linux/obj/actions/python_commands.o ../../lib/linux/obj/actions/python_wrapper.o -L/usr/lib64/ -L/usr/lib/qt3/lib64/ -L/home/UNINE.CH/comuniana/software/SGeMS-2.0/lib/linux -L/home/UNINE.CH/comuniana/software/Python-2.4.5/lib -lpython2.4 -lpthread /usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld: cannot find -lpython2.4 collect2: ld returned 1 exit status make[2]: *** [../../lib/linux/libGsTLAppli_actions.so.1.0.0] Error 1 make[2]: Leaving directory `/home/UNINE.CH/comuniana/software/SGeMS-2.0/GsTLAppli/actions' make[1]: *** [sub-actions-make_default] Error 2 make[1]: Leaving directory `/home/UNINE.CH/comuniana/software/SGeMS-2.0/GsTLAppli' make: *** [sub-GsTLAppli-make_default] Error 2 The variables in the ".qmake.cache" file are: PYTHON_LIB = /home/UNINE.CH/comuniana/software/Python-2.4.5/lib PYTHON_INCLUDE= /home/UNINE.CH/comuniana/software/Python-2.4.5/include/python2.4 PYTHON_SO = python2.4 (I also tested different values of PYTHON_SO like "python" an so on...) The files resulting from a "find -name "*python*" in my python directory are: ./lib/python2.4/config/python.o ./lib/python2.4/config/libpython2.4.a (There are *.so files but only in "./lib/python2.4/lib-dynload") I think that the problem is related to the value of PYTHON_SO, but I don't know to which value set this variable. Do you have some idea? Thank you! Alessandro On Tuesday 23 September 2008 21:51:37 you wrote: > Hi. > It looks like you are using Qt 4.x. SGeMS 2.0 works with Qt 3.3.x. > > On Tue, Sep 23, 2008 at 7:51 AM, COMUNIAN Alessandro > <ale...@un...> wrote: Hi! > I'm triying to compile SGeMS 2.0 on Linux Suse10.3, but I get some errors > running "make": > > [...] > manager.cpp:96: error: no matching function for call > to 'QString::startsWith(const char*, bool)' > /usr/include/QtCore/qstring.h:213: note: candidates are: bool > QString::startsWith(const QString&, Qt::CaseSensitivity) const > /usr/include/QtCore/qstring.h:214: note: bool > QString::startsWith(const QLatin1String&, Qt::CaseSensitivity) const > /usr/include/QtCore/qstring.h:215: note: bool > QString::startsWith(const QChar&, Qt::CaseSensitivity) const > [...] > > and > > [...] > manager.cpp: In static member function 'static std::string > Manager::init_plugin_path()': > manager.cpp:170: error: 'class QDir' has no member named 'absPath' > manager.cpp:178: error: 'class QDir' has no member named 'absPath' > manager.cpp: In member function 'bool Manager::load_library(const > std::string&)': > manager.cpp:227: error: 'class QLibrary' has no member named > 'setAutoUnload' [...] > > Do you have some suggestions please? > Thank you in advance! > Bests, > > Alessandro > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge Build the coolest Linux based applications with Moblin SDK & win > great prizes Grand prize is a trip for two to an Open Source event anywhere > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Sgems-devel mailing list > Sge...@li...<mailto:Sge...@li...> > https://lists.sourceforge.net/lists/listinfo/sgems-devel > > > > > -- > Ting Li > lti...@gm...<mailto:lti...@gm...> |
From: nico r. <nic...@gm...> - 2008-09-30 17:25:25
|
The linker is trying to link with python2.4 and can't seem to find it. It is looking for /home/UNINE.CH/comuniana/software/Python-2.4.5/lib/libpython2.4.so If that file doesn't exist, modify variable PYTHON_LIB to change the path, or PYTHON_SO to change the name of the library (omitting the "lib" and the ".so"). >From the output of your "find" command you don't seem to have the dynamic library installed (the python2.4.a is a static library, you need the .so file - DLL in Windows speak). Or you're not looking in the right directory: mine is installed in /usr/lib for example. Hope this helps, Nicolas On Wed, Sep 24, 2008 at 2:17 AM, COMUNIAN Alessandro <ale...@un...> wrote: > Thank you Ting for the suggestion! > I modified the QMAKESPEC variable (= /usr/lib/qt3/mkspecs/linux-g++-64) in > order to use qt3 instead of qt4, but now the problem has moved to something > related to my Python installation (python2.5). So I am trying with > python2.4.5: the "make" process proceeds better than with python 2.5 but at > the end there is another error (cannot find -lpython2.4): > > [...] > g++ -shared -Wl,-soname,libGsTLAppli_actions.so.1 -o > libGsTLAppli_actions.so.1.0.0 ../../lib/linux/obj/actions/algorithms_actions.o ../../lib/linux/obj/actions/library_actions_init.o ../../lib/linux/obj/actions/misc_actions.o ../../lib/linux/obj/actions/obj_manag_actions.o ../../lib/linux/obj/actions/python_commands.o ../../lib/linux/obj/actions/python_wrapper.o -L/usr/lib64/ -L/usr/lib/qt3/lib64/ -L/home/UNINE.CH/comuniana/software/SGeMS-2.0/lib/linux -L/home/UNINE.CH/comuniana/software/Python-2.4.5/lib -lpython2.4 -lpthread > /usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld: > cannot find -lpython2.4 > collect2: ld returned 1 exit status > make[2]: *** [../../lib/linux/libGsTLAppli_actions.so.1.0.0] Error 1 > make[2]: Leaving directory > `/home/UNINE.CH/comuniana/software/SGeMS-2.0/GsTLAppli/actions' > make[1]: *** [sub-actions-make_default] Error 2 > make[1]: Leaving directory > `/home/UNINE.CH/comuniana/software/SGeMS-2.0/GsTLAppli' > make: *** [sub-GsTLAppli-make_default] Error 2 > > The variables in the ".qmake.cache" file are: > > PYTHON_LIB = /home/UNINE.CH/comuniana/software/Python-2.4.5/lib > PYTHON_INCLUDE= /home/UNINE.CH/comuniana/software/Python-2.4.5/include/python2.4 > PYTHON_SO = python2.4 > > (I also tested different values of PYTHON_SO like "python" an so on...) > > The files resulting from a "find -name "*python*" in my python directory are: > > ./lib/python2.4/config/python.o > ./lib/python2.4/config/libpython2.4.a > > (There are *.so files but only in "./lib/python2.4/lib-dynload") > > I think that the problem is related to the value of PYTHON_SO, but I don't > know to which value set this variable. Do you have some idea? > Thank you! > > Alessandro > > On Tuesday 23 September 2008 21:51:37 you wrote: >> Hi. >> It looks like you are using Qt 4.x. SGeMS 2.0 works with Qt 3.3.x. >> >> On Tue, Sep 23, 2008 at 7:51 AM, COMUNIAN Alessandro >> <ale...@un...> wrote: Hi! >> I'm triying to compile SGeMS 2.0 on Linux Suse10.3, but I get some errors >> running "make": >> >> [...] >> manager.cpp:96: error: no matching function for call >> to 'QString::startsWith(const char*, bool)' >> /usr/include/QtCore/qstring.h:213: note: candidates are: bool >> QString::startsWith(const QString&, Qt::CaseSensitivity) const >> /usr/include/QtCore/qstring.h:214: note: bool >> QString::startsWith(const QLatin1String&, Qt::CaseSensitivity) const >> /usr/include/QtCore/qstring.h:215: note: bool >> QString::startsWith(const QChar&, Qt::CaseSensitivity) const >> [...] >> >> and >> >> [...] >> manager.cpp: In static member function 'static std::string >> Manager::init_plugin_path()': >> manager.cpp:170: error: 'class QDir' has no member named 'absPath' >> manager.cpp:178: error: 'class QDir' has no member named 'absPath' >> manager.cpp: In member function 'bool Manager::load_library(const >> std::string&)': >> manager.cpp:227: error: 'class QLibrary' has no member named >> 'setAutoUnload' [...] >> >> Do you have some suggestions please? >> Thank you in advance! >> Bests, >> >> Alessandro >> >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge Build the coolest Linux based applications with Moblin SDK & win >> great prizes Grand prize is a trip for two to an Open Source event anywhere >> in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Sgems-devel mailing list >> Sge...@li...<mailto:Sge...@li...> >> https://lists.sourceforge.net/lists/listinfo/sgems-devel >> >> >> >> >> -- >> Ting Li >> lti...@gm...<mailto:lti...@gm...> > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Sgems-devel mailing list > Sge...@li... > https://lists.sourceforge.net/lists/listinfo/sgems-devel > |