From: Alessandro C. <ale...@un...> - 2009-01-20 15:18:54
|
Dear all, I'm trying again to compile SGeMS (GsTLAppli-qt4 from cvs ) on my OpenSUSE 10.3 64-bit machine. My ".qmake.cache" file looks like: --------------------------------------------------------------------- [...] GSTLHOME = /opt/GsTL-1.3 GSTLAPPLI_HOME = ${SGEMS}/GsTLAppli-qt4 INVENTOR_LIB = /opt/Coin-3.1.0a/lib INVENTOR_INCLUDE = /opt/Coin-3.1.0a/include PYTHON_LIB = /usr/lib/python2.5 PYTHON_INCLUDE = /usr/include/python2.5 PYTHON_SO = python2.5 [...] --------------------------------------------------------------------- but running "make" I have the following problems: --------------------------------------------------------------------------------------------------------------------- [...] g++ -c -m64 -pipe -O2 -D_REENTRANT -Wall -W -fPIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/default -I. -I/usr/include/QtCore -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtGui -I/usr/include -I. -I/opt/GsTL-1.3 -I${SGEMS}/GsTLAppli-qt4 -I/usr/include/python2.5 -I. -I. -o ../../lib/linux/obj/actions/library_actions_init.o library_actions_init.cpp In file included from ${SGEMS}/GsTLAppli-qt4/GsTLAppli/actions/python_commands.h:42, from library_actions_init.cpp:39: [...] ${SGEMS}/GsTLAppli-qt4/GsTLAppli/actions/python_commands.h:98: warning: unused parameter ‘self’ ${SGEMS}/GsTLAppli-qt4/GsTLAppli/actions/python_commands.h: In function ‘PyObject* sgems_set_property(PyObject*, PyObject*)’: ${SGEMS}/GsTLAppli-qt4/GsTLAppli/actions/python_commands.h:233: error: no matching function for call to ‘min(int&, Py_ssize_t)’ ${SGEMS}/GsTLAppli-qt4/GsTLAppli/actions/python_commands.h: At global scope: ${SGEMS}/GsTLAppli-qt4/GsTLAppli/actions/python_commands.h:192: warning: unused parameter ‘self’ ${SGEMS}/GsTLAppli-qt4/GsTLAppli/actions/python_commands.h:257: warning: unused parameter ‘self’ ${SGEMS}/GsTLAppli-qt4/GsTLAppli/actions/python_commands.h:302: warning: unused parameter ‘self’ ${SGEMS}/GsTLAppli-qt4/GsTLAppli/actions/python_commands.h:316: warning: unused parameter ‘self’ In file included from ${SGEMS}/GsTLAppli-qt4/GsTLAppli/actions/obj_manag_actions.h:34, from library_actions_init.cpp:41: ${SGEMS}/GsTLAppli-qt4/GsTLAppli/filters/filter.h:52: warning: unused parameter ‘filename’ make[2]: *** [../../lib/linux/obj/actions/library_actions_init.o] Error 1 make[2]: Leaving directory `${SGEMS}/GsTLAppli-qt4/GsTLAppli/actions' make[1]: *** [sub-actions-make_default] Error 2 make[1]: Leaving directory `${SGEMS}/GsTLAppli-qt4/GsTLAppli' make: *** [sub-GsTLAppli-make_default] Error 2 --------------------------------------------------------------------------------------------------------------------- I tried also with the previous version of python(2.4.5, compiled with "--enable-shared"...) but the errors remained. Maybe the error is due to some incompatibilities between 32 and 64 bit codes? So, I tried with a somehow "brutal" cast on "GsTLAppli-qt4/GsTLAppli/actions/python_commands.h", changing: int size = std::min( trueSize, PyList_Size( tuple ) ); into: int size = std::min( int(trueSize), int(PyList_Size( tuple ) )); and I noticed some improvement in the "make" process... but again an error: --------------------------------------------------------------------------------------------------------------------- g++ -c -m64 -pipe -O2 -D_REENTRANT -Wall -W -fPIC -DQT_NO_DEBUG -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/default -I. -I/usr/include/QtCore -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtGui -I/usr/include/QtOpenGL -I/usr/include/QtOpenGL -I/usr/include/QtXml -I/usr/include/QtXml -I/usr/include -I. -Ioinv_description -Iutils -Ivariogram2 -I/opt/GsTL-1.3 -I${SGEMS}/GsTLAppli-qt4 -I/opt/Coin-3.1.0a/include/Qt/viewers -I/opt/Coin-3.1.0a/include -I/opt/GsTL-1.3/GsTL/utils -I/usr/include/python2.5 -I/usr/X11R6/include -I.moc -I. -o ../../lib/linux/obj/gui/library_gui_init.o library_gui_init.cpp In file included from ${SGEMS}/GsTLAppli-qt4/GsTLAppli/gui/appli/oinv_project_view.h:40, from library_gui_init.cpp:30: ${SGEMS}/GsTLAppli-qt4/GsTLAppli/gui/appli/SoQtGsTLViewer.h:35:53: error: Inventor/Qt/viewers/SoQtExaminerViewer.h: No such file or directory In file included from /opt/GsTL-1.3/boost/config.hpp:35, from /opt/GsTL-1.3/boost/random/mersenne_twister.hpp:27, from /opt/GsTL-1.3/GsTL/math/random_number_generators.h:33, from ${SGEMS}/GsTLAppli-qt4/GsTLAppli/math/random_numbers.h:35, from ${SGEMS}/GsTLAppli-qt4/GsTLAppli/grid/grid_model/rgrid.h:41, from ${SGEMS}/GsTLAppli-qt4/GsTLAppli/grid/grid_model/cartesian_grid.h:34, from ${SGEMS}/GsTLAppli-qt4/GsTLAppli/gui/oinv_description/oinv_cgrid.h:35, from library_gui_init.cpp:32: /opt/GsTL-1.3/boost/config/compiler/gcc.hpp:66:7: warning: #warning "Unknown compiler version - please run the configure tests and report the results" In file included from ${SGEMS}/GsTLAppli-qt4/GsTLAppli/gui/appli/oinv_project_view.h:40, from library_gui_init.cpp:30: ${SGEMS}/GsTLAppli-qt4/GsTLAppli/gui/appli/SoQtGsTLViewer.h:44: error: expected class-name before ‘{’ token In file included from library_gui_init.cpp:30: ${SGEMS}/GsTLAppli-qt4/GsTLAppli/gui/appli/oinv_project_view.h:163: warning: unused parameter ‘col’ ${SGEMS}/GsTLAppli-qt4/GsTLAppli/gui/appli/oinv_project_view.h: In member function ‘void Project_view_gui::reRender()’: ${SGEMS}/GsTLAppli-qt4/GsTLAppli/gui/appli/oinv_project_view.h:233: error: ‘class SoQtGsTLViewer’ has no member named ‘render’ In file included from ${SGEMS}/GsTLAppli-qt4/GsTLAppli/utils/manager.h:34, from ${SGEMS}/GsTLAppli-qt4/GsTLAppli/appli/manager_repository.h:33, from library_gui_init.cpp:31: ${SGEMS}/GsTLAppli-qt4/GsTLAppli/utils/directory.h: At global scope: ${SGEMS}/GsTLAppli-qt4/GsTLAppli/utils/directory.h:45: warning: unused parameter ‘type_name’ ${SGEMS}/GsTLAppli-qt4/GsTLAppli/utils/directory.h:45: warning: unused parameter ‘name’ ${SGEMS}/GsTLAppli-qt4/GsTLAppli/utils/directory.h:45: warning: unused parameter ‘final_name’ ${SGEMS}/GsTLAppli-qt4/GsTLAppli/utils/directory.h:47: warning: unused parameter ‘name’ In file included from ${SGEMS}/GsTLAppli-qt4/GsTLAppli/grid/grid_model/rgrid_gval_accessor.h:35, from ${SGEMS}/GsTLAppli-qt4/GsTLAppli/grid/grid_model/rgrid.h:37, from ${SGEMS}/GsTLAppli-qt4/GsTLAppli/grid/grid_model/cartesian_grid.h:34, from ${SGEMS}/GsTLAppli-qt4/GsTLAppli/gui/oinv_description/oinv_cgrid.h:35, from library_gui_init.cpp:32: ${SGEMS}/GsTLAppli-qt4/GsTLAppli/grid/grid_model/grid_property.h:271: warning: unused parameter ‘flag_id’ ${SGEMS}/GsTLAppli-qt4/GsTLAppli/grid/grid_model/grid_property.h:273: warning: unused parameter ‘flag_id’ In file included from ${SGEMS}/GsTLAppli-qt4/GsTLAppli/grid/grid_model/cartesian_grid.h:34, from ${SGEMS}/GsTLAppli-qt4/GsTLAppli/gui/oinv_description/oinv_cgrid.h:35, from library_gui_init.cpp:32: ${SGEMS}/GsTLAppli-qt4/GsTLAppli/grid/grid_model/rgrid.h:103: warning: unused parameter ‘P’ In file included from ${SGEMS}/GsTLAppli-qt4/GsTLAppli/grid/grid_model/reduced_grid.h:37, from ${SGEMS}/GsTLAppli-qt4/GsTLAppli/gui/oinv_description/oinv_pointset.h:34, from library_gui_init.cpp:33: ${SGEMS}/GsTLAppli-qt4/GsTLAppli/grid/grid_model/neighborhood.h:182: warning: unused parameter ‘s’ ${SGEMS}/GsTLAppli-qt4/GsTLAppli/grid/grid_model/neighborhood.h:302: warning: unused parameter ‘on’ In file included from ${SGEMS}/GsTLAppli-qt4/GsTLAppli/grid/grid_model/reduced_grid.h:39, from ${SGEMS}/GsTLAppli-qt4/GsTLAppli/gui/oinv_description/oinv_pointset.h:34, from library_gui_init.cpp:33: ${SGEMS}/GsTLAppli-qt4/GsTLAppli/grid/grid_model/point_set.h:97: warning: unused parameter ‘region_name’ ${SGEMS}/GsTLAppli-qt4/GsTLAppli/grid/grid_model/point_set.h:100: warning: unused parameter ‘region_name’ ${SGEMS}/GsTLAppli-qt4/GsTLAppli/grid/grid_model/point_set.h:109: warning: unused parameter ‘region_name’ ${SGEMS}/GsTLAppli-qt4/GsTLAppli/grid/grid_model/point_set.h:154: warning: unused parameter ‘P’ In file included from ${SGEMS}/GsTLAppli-qt4/GsTLAppli/gui/oinv_description/oinv_pointset.h:34, from library_gui_init.cpp:33: ${SGEMS}/GsTLAppli-qt4/GsTLAppli/grid/grid_model/reduced_grid.h: In member function ‘void Reduced_grid::initMaskedGrid(bool)’: ${SGEMS}/GsTLAppli-qt4/GsTLAppli/grid/grid_model/reduced_grid.h:83: warning: comparison between signed and unsigned integer expressions In file included from ${SGEMS}/GsTLAppli-qt4/GsTLAppli/gui/QWidget_value_accessors/qcombobox_accessor.h:33, from library_gui_init.cpp:37: ${SGEMS}/GsTLAppli-qt4/GsTLAppli/gui/utils/qwidget_value_accessor.h: At global scope: ${SGEMS}/GsTLAppli-qt4/GsTLAppli/gui/utils/qwidget_value_accessor.h:53: warning: unused parameter ‘widget’ make[2]: *** [../../lib/linux/obj/gui/library_gui_init.o] Error 1 make[2]: Leaving directory `${SGEMS}/GsTLAppli-qt4/GsTLAppli/gui' make[1]: *** [sub-gui-make_default] Error 2 make[1]: Leaving directory `${SGEMS}/GsTLAppli-qt4/GsTLAppli' make: *** [sub-GsTLAppli-make_default] Error 2 --------------------------------------------------------------------------------------------------------------------- In my configuration the file "SoQtExaminerViewer.h" is in "/opt/SoQt-1.4.2a_qt4/include/Inventor/Qt/viewers" and not in the Coin directory. Do you have some suggestion about how to solve this, please? Thank you in advance, Bests, Alessandro |