yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #05485
Re: pyqt4 interface
Le 27/07/2010 14:47, Václav Šmilauer a écrit :
If you are brave enough, then recompile with the 'qt4' feature (and
without qt3). You might need to specify QT4DIR (/usr/share/qt4 on
debian/ubuntu, which is the default) and install a few additional
packages: python-qt4, pyqt4-dev-tools and perhaps others.
I tried (with r2387, my scons.profile is attached), I had to install
python-xlib, then libqglviewer-qt4-2 and libqglviewer-qt4-dev so that
compilation launches normally. It crashed after a while :
C /home/3S-LAB/jduriez/build-qt4-qt4/gui/qt4/moc_OpenGLManager.cc
> /home/3S-LAB/jduriez/YADE/lib/yade-qt4-qt4/py/yade/qt/__init__.py
pyrcc4 -o /home/3S-LAB/jduriez/build-qt4-qt4/gui/qt4/img_rc.py
gui/qt4/img.qrc
sh: pyrcc4: not found
scons: *** [/home/3S-LAB/jduriez/build-qt4-qt4/gui/qt4/img_rc.py] Error 127
scons: building terminated because of errors.
Complete log is attached.
Jerome
PREFIX = '/home/3S-LAB/jduriez/YADE'
exclude = 'lattice,snow'
features = 'gts,log4cxx,opengl,openmp,qt4'
version = 'qt4'
CXXFLAGS = []
SHCCFLAGS = ['-fPIC']
jduriez@c1solimara-l:~/yade$ scons
scons: Reading SConscript files ...
@@@ Using profile qt4 (scons.profile-qt4) @@@
Yade version is `qt4' (bzr2387), installed files will be suffixed with `-qt4-qt4'.
All intermediary files will be in `/home/3S-LAB/jduriez/build-qt4-qt4'.
Checking whether c++ compiler "g++" works...yes
Finding libstdc++ library... (cached) /usr/lib/gcc/i486-linux-gnu/4.4.3/libstdc++.so
Checking for pthread_exit(NULL) in C library pthread... yes
Checking for Python development files... ok
Checking for C++ header file numpy/ndarrayobject.h... yes
Checking for required python modules... (cached) all ok
Checking boost libraries... all ok
Checking for C++ header file boost/foreach.hpp... yes
Checking for C++ header file Eigen/Core... yes
Checking for glutGetModifiers() in C++ library glut... yes
Checking for QGLViewer() in C++ library qglviewer-qt4... yes
Checking for gts_object_class() in C++ library gts... yes
Checking for log4cxx::Logger::getLogger("") in C++ library log4cxx... yes
scons: done reading SConscript files.
scons: Building targets ...
> /home/3S-LAB/jduriez/YADE/bin/yade-qt4-qt4
Chmod("/home/3S-LAB/jduriez/YADE/bin/yade-qt4-qt4", 0755)
> /home/3S-LAB/jduriez/YADE/bin/yade-qt4-qt4-multi
Chmod("/home/3S-LAB/jduriez/YADE/bin/yade-qt4-qt4-multi", 0755)
C gui/qt4/GLViewer.cpp
/usr/share/qt4/bin/moc -DQT_GUI_LIB -DQT_CORE_LIB -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_SHARED -DYADE_GTS -DYADE_LOG4CXX -DYADE_OPENGL -DYADE_OPENMP -DYADE_QT4 -DSUFFIX=\"-qt4-qt4\" -DPREFIX=\"/home/3S-LAB/jduriez/YADE\" -DYADE_OPENMP -DYADE_CAST=dynamic_cast -DYADE_PTR_CAST=dynamic_pointer_cast -I/usr/include/vtk-5.0 -I/usr/include/vtk-5.2 -I/usr/include/vtk-5.4 -I/usr/include/eigen2 -I/home/3S-LAB/jduriez/build-qt4-qt4/include/yade-qt4 -Iinclude/yade-qt4 -I/usr/include/python2.6 -I/usr/include/qt4 -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtOpenGL -o /home/3S-LAB/jduriez/build-qt4-qt4/gui/qt4/moc_GLViewer.cc gui/qt4/GLViewer.hpp
C /home/3S-LAB/jduriez/build-qt4-qt4/gui/qt4/moc_GLViewer.cc
> /home/3S-LAB/jduriez/build-qt4-qt4/lib/yade-support.cpp
C /home/3S-LAB/jduriez/build-qt4-qt4/lib/yade-support.cpp
In file included from /usr/include/boost/python/object/function_handle.hpp:10,
from /usr/include/boost/python/converter/arg_to_python.hpp:19,
from /usr/include/boost/python/call.hpp:15,
from /usr/include/boost/python/object_core.hpp:12,
from /usr/include/boost/python/args.hpp:25,
from /usr/include/boost/python.hpp:11,
from /home/3S-LAB/jduriez/yade/lib/serialization/Serializable.hpp:22,
from /home/3S-LAB/jduriez/yade/lib/serialization/Serializable.cpp:11,
from /home/3S-LAB/jduriez/build-qt4-qt4/lib/yade-support.cpp:5:
/home/3S-LAB/jduriez/yade/lib/serialization/Serializable.hpp: In member function 'PyObject* boost::python::objects::caller_py_function_impl<Caller>::operator()(PyObject*, PyObject*) [with Caller = boost::python::detail::caller<PyObject* (*)(Serializable&, const Serializable&), boost::python::default_call_policies, boost::mpl::vector3<PyObject*, Serializable&, const Serializable&> >]':
/home/3S-LAB/jduriez/yade/lib/serialization/Serializable.hpp:339: warning: dereferencing pointer 'p.2562' does break strict-aliasing rules
/usr/include/boost/python/detail/destroy.hpp:90: note: initialized from here
/home/3S-LAB/jduriez/build-qt4-qt4/include/yade-qt4/yade/lib-factory/Factorable.hpp:63: warning: dereferencing pointer 'this.702' does break strict-aliasing rules
/home/3S-LAB/jduriez/yade/lib/serialization/Serializable.hpp:339: note: initialized from here
/home/3S-LAB/jduriez/yade/lib/serialization/Serializable.hpp:339: warning: dereferencing pointer 'p.2562' does break strict-aliasing rules
/usr/include/boost/python/detail/destroy.hpp:90: note: initialized from here
/home/3S-LAB/jduriez/build-qt4-qt4/include/yade-qt4/yade/lib-factory/Factorable.hpp:63: warning: dereferencing pointer 'this.702' does break strict-aliasing rules
/home/3S-LAB/jduriez/yade/lib/serialization/Serializable.hpp:339: note: initialized from here
L libyade-support.so
> /home/3S-LAB/jduriez/YADE/lib/yade-qt4-qt4/lib/libyade-support.so
> /home/3S-LAB/jduriez/build-qt4-qt4/core/core.cpp
C /home/3S-LAB/jduriez/build-qt4-qt4/core/core.cpp
> /home/3S-LAB/jduriez/build-qt4-qt4/lib/yade-opengl.cpp
C /home/3S-LAB/jduriez/build-qt4-qt4/lib/yade-opengl.cpp
L libyade-opengl.so
> /home/3S-LAB/jduriez/YADE/lib/yade-qt4-qt4/lib/libyade-opengl.so
> /home/3S-LAB/jduriez/build-qt4-qt4/plugins0.cpp
C /home/3S-LAB/jduriez/build-qt4-qt4/plugins0.cpp
> /home/3S-LAB/jduriez/build-qt4-qt4/plugins2.cpp
C /home/3S-LAB/jduriez/build-qt4-qt4/plugins2.cpp
L libcore.so
> /home/3S-LAB/jduriez/YADE/lib/yade-qt4-qt4/lib/libcore.so
> /home/3S-LAB/jduriez/build-qt4-qt4/plugins1.cpp
C /home/3S-LAB/jduriez/build-qt4-qt4/plugins1.cpp
> /home/3S-LAB/jduriez/build-qt4-qt4/plugins3.cpp
C /home/3S-LAB/jduriez/build-qt4-qt4/plugins3.cpp
> /home/3S-LAB/jduriez/build-qt4-qt4/plugins4.cpp
C /home/3S-LAB/jduriez/build-qt4-qt4/plugins4.cpp
> /home/3S-LAB/jduriez/build-qt4-qt4/plugins5.cpp
C /home/3S-LAB/jduriez/build-qt4-qt4/plugins5.cpp
> /home/3S-LAB/jduriez/build-qt4-qt4/plugins6.cpp
C /home/3S-LAB/jduriez/build-qt4-qt4/plugins6.cpp
> /home/3S-LAB/jduriez/build-qt4-qt4/plugins8.cpp
C /home/3S-LAB/jduriez/build-qt4-qt4/plugins8.cpp
> /home/3S-LAB/jduriez/build-qt4-qt4/plugins7.cpp
C /home/3S-LAB/jduriez/build-qt4-qt4/plugins7.cpp
> /home/3S-LAB/jduriez/build-qt4-qt4/plugins9.cpp
C /home/3S-LAB/jduriez/build-qt4-qt4/plugins9.cpp
> /home/3S-LAB/jduriez/build-qt4-qt4/plugins10.cpp
C /home/3S-LAB/jduriez/build-qt4-qt4/plugins10.cpp
> /home/3S-LAB/jduriez/build-qt4-qt4/plugins11.cpp
C /home/3S-LAB/jduriez/build-qt4-qt4/plugins11.cpp
> /home/3S-LAB/jduriez/build-qt4-qt4/plugins12.cpp
C /home/3S-LAB/jduriez/build-qt4-qt4/plugins12.cpp
> /home/3S-LAB/jduriez/build-qt4-qt4/plugins13.cpp
C /home/3S-LAB/jduriez/build-qt4-qt4/plugins13.cpp
C py/3rd-party/pygts-0.3.1/cleanup.c
In file included from /usr/include/python2.6/Python.h:8,
from py/3rd-party/pygts-0.3.1/pygts.h:39,
from py/3rd-party/pygts-0.3.1/cleanup.c:36:
/usr/include/python2.6/pyconfig.h:1031:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/stdlib.h:25,
from py/3rd-party/pygts-0.3.1/pygts.h:35,
from py/3rd-party/pygts-0.3.1/cleanup.c:36:
/usr/include/features.h:210:1: warning: this is the location of the previous definition
C py/3rd-party/pygts-0.3.1/edge.c
In file included from /usr/include/python2.6/Python.h:8,
from py/3rd-party/pygts-0.3.1/pygts.h:39,
from py/3rd-party/pygts-0.3.1/edge.c:28:
/usr/include/python2.6/pyconfig.h:1031:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/stdlib.h:25,
from py/3rd-party/pygts-0.3.1/pygts.h:35,
from py/3rd-party/pygts-0.3.1/edge.c:28:
/usr/include/features.h:210:1: warning: this is the location of the previous definition
C py/3rd-party/pygts-0.3.1/object.c
In file included from /usr/include/python2.6/Python.h:8,
from py/3rd-party/pygts-0.3.1/pygts.h:39,
from py/3rd-party/pygts-0.3.1/object.c:28:
/usr/include/python2.6/pyconfig.h:1031:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/stdlib.h:25,
from py/3rd-party/pygts-0.3.1/pygts.h:35,
from py/3rd-party/pygts-0.3.1/object.c:28:
/usr/include/features.h:210:1: warning: this is the location of the previous definition
C py/3rd-party/pygts-0.3.1/face.c
In file included from /usr/include/python2.6/Python.h:8,
from py/3rd-party/pygts-0.3.1/pygts.h:39,
from py/3rd-party/pygts-0.3.1/face.c:28:
/usr/include/python2.6/pyconfig.h:1031:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/stdlib.h:25,
from py/3rd-party/pygts-0.3.1/pygts.h:35,
from py/3rd-party/pygts-0.3.1/face.c:28:
/usr/include/features.h:210:1: warning: this is the location of the previous definition
C py/3rd-party/pygts-0.3.1/point.c
In file included from /usr/include/python2.6/Python.h:8,
from py/3rd-party/pygts-0.3.1/pygts.h:39,
from py/3rd-party/pygts-0.3.1/point.c:28:
/usr/include/python2.6/pyconfig.h:1031:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/stdlib.h:25,
from py/3rd-party/pygts-0.3.1/pygts.h:35,
from py/3rd-party/pygts-0.3.1/point.c:28:
/usr/include/features.h:210:1: warning: this is the location of the previous definition
C py/3rd-party/pygts-0.3.1/segment.c
In file included from /usr/include/python2.6/Python.h:8,
from py/3rd-party/pygts-0.3.1/pygts.h:39,
from py/3rd-party/pygts-0.3.1/segment.c:28:
/usr/include/python2.6/pyconfig.h:1031:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/stdlib.h:25,
from py/3rd-party/pygts-0.3.1/pygts.h:35,
from py/3rd-party/pygts-0.3.1/segment.c:28:
/usr/include/features.h:210:1: warning: this is the location of the previous definition
C py/3rd-party/pygts-0.3.1/pygts.c
In file included from /usr/include/python2.6/Python.h:8,
from py/3rd-party/pygts-0.3.1/pygts.h:39,
from py/3rd-party/pygts-0.3.1/pygts.c:28:
/usr/include/python2.6/pyconfig.h:1031:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/stdlib.h:25,
from py/3rd-party/pygts-0.3.1/pygts.h:35,
from py/3rd-party/pygts-0.3.1/pygts.c:28:
/usr/include/features.h:210:1: warning: this is the location of the previous definition
C py/3rd-party/pygts-0.3.1/surface.c
In file included from /usr/include/python2.6/Python.h:8,
from py/3rd-party/pygts-0.3.1/pygts.h:39,
from py/3rd-party/pygts-0.3.1/surface.c:28:
/usr/include/python2.6/pyconfig.h:1031:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/stdlib.h:25,
from py/3rd-party/pygts-0.3.1/pygts.h:35,
from py/3rd-party/pygts-0.3.1/surface.c:28:
/usr/include/features.h:210:1: warning: this is the location of the previous definition
C py/3rd-party/pygts-0.3.1/vertex.c
In file included from /usr/include/python2.6/Python.h:8,
from py/3rd-party/pygts-0.3.1/pygts.h:39,
from py/3rd-party/pygts-0.3.1/vertex.c:28:
/usr/include/python2.6/pyconfig.h:1031:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/stdlib.h:25,
from py/3rd-party/pygts-0.3.1/pygts.h:35,
from py/3rd-party/pygts-0.3.1/vertex.c:28:
/usr/include/features.h:210:1: warning: this is the location of the previous definition
C py/3rd-party/pygts-0.3.1/triangle.c
In file included from /usr/include/python2.6/Python.h:8,
from py/3rd-party/pygts-0.3.1/pygts.h:39,
from py/3rd-party/pygts-0.3.1/triangle.c:28:
/usr/include/python2.6/pyconfig.h:1031:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/stdlib.h:25,
from py/3rd-party/pygts-0.3.1/pygts.h:35,
from py/3rd-party/pygts-0.3.1/triangle.c:28:
/usr/include/features.h:210:1: warning: this is the location of the previous definition
L _gts.so
> /home/3S-LAB/jduriez/YADE/lib/yade-qt4-qt4/py/gts/_gts.so
ln -s -f ../py/gts/_gts.so /home/3S-LAB/jduriez/YADE/lib/yade-qt4-qt4/lib/lib_gts__python-module.so
> /home/3S-LAB/jduriez/YADE/lib/yade-qt4-qt4/py/gts/__init__.py
> /home/3S-LAB/jduriez/YADE/lib/yade-qt4-qt4/py/gts/pygts.py
C py/mathWrap/miniEigen.cpp
L libplugins.so
L miniEigen.so
> /home/3S-LAB/jduriez/YADE/lib/yade-qt4-qt4/py/miniEigen.so
> /home/3S-LAB/jduriez/YADE/lib/yade-qt4-qt4/py/mtTkinter.py
C py/WeightedAverage2d.cpp
L WeightedAverage2d.so
> /home/3S-LAB/jduriez/YADE/lib/yade-qt4-qt4/py/yade/WeightedAverage2d.so
> /home/3S-LAB/jduriez/YADE/lib/yade-qt4-qt4/py/yade/__init__.py
C py/yadeWrapper/customConverters.cpp
C py/_eudoxos.cpp
> /home/3S-LAB/jduriez/YADE/lib/yade-qt4-qt4/py/yade/_extraDocs.py
C py/pack/_packObb.cpp
L _packObb.so
> /home/3S-LAB/jduriez/YADE/lib/yade-qt4-qt4/py/yade/_packObb.so
C py/pack/_packPredicates.cpp
L _packPredicates.so
> /home/3S-LAB/jduriez/YADE/lib/yade-qt4-qt4/py/yade/_packPredicates.so
> /home/3S-LAB/jduriez/build-qt4-qt4/py/packSpherePadder.cpp
C /home/3S-LAB/jduriez/build-qt4-qt4/py/packSpherePadder.cpp
C py/pack/_packSpheres.cpp
C py/_utils.cpp
C core/main/pyboot.cpp
L boot.so
> /home/3S-LAB/jduriez/YADE/lib/yade-qt4-qt4/py/yade/boot.so
> /home/3S-LAB/jduriez/YADE/lib/yade-qt4-qt4/py/yade/config.py
> /home/3S-LAB/jduriez/YADE/lib/yade-qt4-qt4/py/yade/eudoxos.py
> /home/3S-LAB/jduriez/YADE/lib/yade-qt4-qt4/py/yade/export.py
> /home/3S-LAB/jduriez/YADE/lib/yade-qt4-qt4/py/yade/linterpolation.py
C py/log.cpp
L log.so
> /home/3S-LAB/jduriez/YADE/lib/yade-qt4-qt4/py/yade/log.so
> /home/3S-LAB/jduriez/YADE/lib/yade-qt4-qt4/py/yade/manpage.py
> /home/3S-LAB/jduriez/YADE/lib/yade-qt4-qt4/py/yade/pack.py
> /home/3S-LAB/jduriez/YADE/lib/yade-qt4-qt4/py/yade/params.py
> /home/3S-LAB/jduriez/YADE/lib/yade-qt4-qt4/py/yade/plot.py
> /home/3S-LAB/jduriez/YADE/lib/yade-qt4-qt4/py/yade/post2d.py
> /home/3S-LAB/jduriez/YADE/lib/yade-qt4-qt4/py/yade/qt/Inspector.py
> /home/3S-LAB/jduriez/YADE/lib/yade-qt4-qt4/py/yade/qt/SerializableEditor.py
C gui/qt4/_GLViewer.cpp
> /home/3S-LAB/jduriez/YADE/lib/yade-qt4-qt4/plugins/libplugins.so
L _utils.so
> /home/3S-LAB/jduriez/YADE/lib/yade-qt4-qt4/py/yade/_utils.so
L _packSpherePadder.so
> /home/3S-LAB/jduriez/YADE/lib/yade-qt4-qt4/py/yade/_packSpherePadder.so
L _eudoxos.so
> /home/3S-LAB/jduriez/YADE/lib/yade-qt4-qt4/py/yade/_eudoxos.so
L libGLViewer.so
> /home/3S-LAB/jduriez/YADE/lib/yade-qt4-qt4/gui/libGLViewer.so
L _customConverters.so
> /home/3S-LAB/jduriez/YADE/lib/yade-qt4-qt4/py/yade/_customConverters.so
L _packSpheres.so
> /home/3S-LAB/jduriez/YADE/lib/yade-qt4-qt4/py/yade/_packSpheres.so
C gui/qt4/OpenGLManager.cpp
/usr/share/qt4/bin/moc -DQT_GUI_LIB -DQT_CORE_LIB -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_SHARED -DYADE_GTS -DYADE_LOG4CXX -DYADE_OPENGL -DYADE_OPENMP -DYADE_QT4 -DSUFFIX=\"-qt4-qt4\" -DPREFIX=\"/home/3S-LAB/jduriez/YADE\" -DYADE_OPENMP -DYADE_CAST=dynamic_cast -DYADE_PTR_CAST=dynamic_pointer_cast -I/usr/include/vtk-5.0 -I/usr/include/vtk-5.2 -I/usr/include/vtk-5.4 -I/usr/include/eigen2 -I/home/3S-LAB/jduriez/build-qt4-qt4/include/yade-qt4 -Iinclude/yade-qt4 -I/usr/include/python2.6 -I/usr/include/qt4 -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtOpenGL -o /home/3S-LAB/jduriez/build-qt4-qt4/gui/qt4/moc_OpenGLManager.cc gui/qt4/OpenGLManager.hpp
C /home/3S-LAB/jduriez/build-qt4-qt4/gui/qt4/moc_OpenGLManager.cc
> /home/3S-LAB/jduriez/YADE/lib/yade-qt4-qt4/py/yade/qt/__init__.py
pyrcc4 -o /home/3S-LAB/jduriez/build-qt4-qt4/gui/qt4/img_rc.py gui/qt4/img.qrc
sh: pyrcc4: not found
scons: *** [/home/3S-LAB/jduriez/build-qt4-qt4/gui/qt4/img_rc.py] Error 127
scons: building terminated because of errors.
jduriez@c1solimara-l:~/yade$
Follow ups
References