← Back to team overview

yade-users team mailing list archive

[Question #152794]: compiled YADE ?!

 

New question #152794 on Yade:
https://answers.launchpad.net/yade/+question/152794

Hi@all,


Since three days I tried to compile Yade with scons (bzr2811) on Mandriva 
2010.2. This is the result:

START-------------------------------------------------------------------------------------------------------------------

[me@localhost yade]$ scons
scons: Reading SConscript files ...
@@@ Using profile default (scons.profile-default) @@@
Eigen 2 math library will be used
Yade version is `bzr2811' (bzr2811), installed files will be suffixed with `-
bzr2811'.
All intermediary files will be in `/home/me/install-data-external-
packages/build-bzr2811'.
Checking whether c++ compiler "g++" works...(cached) yes
Finding libstdc++ library... (cached) /usr/lib64/libstdc++.so.6
Checking for pthread_exit(NULL) in C library pthread... (cached) yes
Checking for Python development files... (cached) ok
Checking for C++ header file /usr/lib64/python2.6/site-
packages/numpy/core/include/numpy/ndarrayobject.h... (cached) yes
Checking for required python modules... (cached) all ok
Checking boost libraries... (cached) all ok
Checking for C++ header file boost/foreach.hpp... (cached) yes
Checking for C++ header file Eigen/Core... (cached) yes
Checking for C++ header file loki/NullType.h... (cached) yes
Checking for glutGetModifiers() in C++ library glut... (cached) yes
Checking for QGLViewer() in C++ library qglviewer-qt4... (cached) no
Checking for QGLViewer() in C++ library libQGLViewer... (cached) yes
Checking for vtkInstantiator::New() in C++ library vtkCommon... (cached) yes
scons: done reading SConscript files.
scons: Building targets ...
C /home/me/install-data-external-packages/build-bzr2811/core/core.cpp
C /home/me/install-data-external-packages/build-bzr2811/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/me/install-data-external-
packages/yade/lib/serialization/Serializable.hpp:23,
                 from /home/me/install-data-external-
packages/yade/lib/serialization/Serializable.cpp:11,
                 from /home/me/install-data-external-packages/build-
bzr2811/lib/yade-support.cpp:5:
/home/me/install-data-external-
packages/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/me/install-data-external-
packages/yade/lib/serialization/Serializable.hpp:262: warning: dereferencing 
pointer 'p.2598' does break strict-aliasing rules
/usr/include/boost/python/detail/destroy.hpp:90: note: initialized from here
/home/me/install-data-external-packages/build-
bzr2811/include/yade/lib/factory/Factorable.hpp:63: warning: dereferencing 
pointer 'this.597' does break strict-aliasing rules
/home/me/install-data-external-
packages/yade/lib/serialization/Serializable.hpp:262: note: initialized from 
here
/home/me/install-data-external-
packages/yade/lib/serialization/Serializable.hpp:262: warning: dereferencing 
pointer 'p.2598' does break strict-aliasing rules
/usr/include/boost/python/detail/destroy.hpp:90: note: initialized from here
/home/me/install-data-external-packages/build-
bzr2811/include/yade/lib/factory/Factorable.hpp:63: warning: dereferencing 
pointer 'this.597' does break strict-aliasing rules
/home/me/install-data-external-
packages/yade/lib/serialization/Serializable.hpp:262: note: initialized from 
here
C /home/me/install-data-external-packages/build-bzr2811/plugins12.cpp
C /home/me/install-data-external-packages/build-bzr2811/plugins13.cpp
C /home/me/install-data-external-packages/build-bzr2811/plugins14.cpp
C /home/me/install-data-external-packages/build-bzr2811/plugins15.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/me/install-data-external-packages/build-
bzr2811/include/yade/lib/serialization/Serializable.hpp:23,
                 from /home/me/install-data-external-packages/build-
bzr2811/include/yade/lib/multimethods/FunctorWrapper.hpp:12,
                 from /home/me/install-data-external-packages/build-
bzr2811/include/yade/pkg/common/GLDrawFunctors.hpp:6,
                 from /home/me/install-data-external-packages/build-
bzr2811/include/yade/pkg/common/Gl1_Facet.hpp:11,
                 from /home/me/install-data-external-
packages/yade/pkg/common/Gl1_Facet.cpp:11,
                 from /home/me/install-data-external-packages/build-
bzr2811/plugins13.cpp:1:
/home/me/install-data-external-packages/build-
bzr2811/include/yade/lib/base/openmp-accu.hpp: In member function 'PyObject* 
boost::python::objects::caller_py_function_impl<Caller>::operator()(PyObject*, 
PyObject*) [with Caller = 
boost::python::detail::caller<boost::python::detail::member<OpenMPAccumulator<double>, 
Law2_ScGeom_MindlinPhys_Mindlin>, boost::python::default_call_policies, 
boost::mpl::vector3<void, Law2_ScGeom_MindlinPhys_Mindlin&, const 
OpenMPAccumulator<double>&> >]':
/home/me/install-data-external-packages/build-
bzr2811/include/yade/lib/base/openmp-accu.hpp:100: warning: dereferencing 
pointer 'p.21891' does break strict-aliasing rules
/usr/include/boost/python/detail/destroy.hpp:90: note: initialized from here
/home/me/install-data-external-packages/build-
bzr2811/include/yade/lib/base/openmp-accu.hpp:100: warning: dereferencing 
pointer 'p.21891' does break strict-aliasing rules
/usr/include/boost/python/detail/destroy.hpp:90: note: initialized from here
/home/me/install-data-external-packages/build-
bzr2811/include/yade/lib/base/openmp-accu.hpp: In member function 'PyObject* 
boost::python::objects::caller_py_function_impl<Caller>::operator()(PyObject*, 
PyObject*) [with Caller = 
boost::python::detail::caller<boost::python::detail::member<OpenMPAccumulator<double>, 
Law2_ScGeom_MindlinPhys_Mindlin>, 
boost::python::return_value_policy<boost::python::return_by_value, 
boost::python::default_call_policies>, boost::mpl::vector3<void, 
Law2_ScGeom_MindlinPhys_Mindlin&, const OpenMPAccumulator<double>&> >]':
/home/me/install-data-external-packages/build-
bzr2811/include/yade/lib/base/openmp-accu.hpp:100: warning: dereferencing 
pointer 'p.21891' does break strict-aliasing rules
/usr/include/boost/python/detail/destroy.hpp:90: note: initialized from here
/home/me/install-data-external-packages/build-
bzr2811/include/yade/lib/base/openmp-accu.hpp:100: warning: dereferencing 
pointer 'p.21891' does break strict-aliasing rules
/usr/include/boost/python/detail/destroy.hpp:90: note: initialized from here
/home/me/install-data-external-packages/build-
bzr2811/include/yade/lib/base/openmp-accu.hpp: In member function 'PyObject* 
boost::python::objects::caller_py_function_impl<Caller>::operator()(PyObject*, 
PyObject*) [with Caller = boost::python::detail::caller<void (*)
(Law2_ScGeom_MindlinPhys_Mindlin&, const OpenMPAccumulator<double>&), 
boost::python::default_call_policies, boost::mpl::vector3<void, 
Law2_ScGeom_MindlinPhys_Mindlin&, const OpenMPAccumulator<double>&> >]':
/home/me/install-data-external-packages/build-
bzr2811/include/yade/lib/base/openmp-accu.hpp:100: warning: dereferencing 
pointer 'p.21891' does break strict-aliasing rules
/usr/include/boost/python/detail/destroy.hpp:90: note: initialized from here
/home/me/install-data-external-packages/build-
bzr2811/include/yade/lib/base/openmp-accu.hpp:100: warning: dereferencing 
pointer 'p.21891' does break strict-aliasing rules
/usr/include/boost/python/detail/destroy.hpp:90: note: initialized from here
C /home/me/install-data-external-packages/build-bzr2811/plugins0.cpp
C /home/me/install-data-external-packages/build-bzr2811/plugins1.cpp
C /home/me/install-data-external-packages/build-bzr2811/plugins2.cpp
C /home/me/install-data-external-packages/build-bzr2811/plugins3.cpp
C /home/me/install-data-external-packages/build-bzr2811/plugins4.cpp
C /home/me/install-data-external-packages/build-bzr2811/plugins5.cpp
C /home/me/install-data-external-packages/build-bzr2811/plugins6.cpp
In file included from /usr/lib/gcc/x86_64-manbo-linux-
gnu/4.4.3/../../../../include/c++/4.4.3/backward/strstream:46,
                 from /usr/include/vtk/vtkIOStream.h:112,
                 from /usr/include/vtk/vtkSystemIncludes.h:40,
                 from /usr/include/vtk/vtkIndent.h:24,
                 from /usr/include/vtk/vtkObjectBase.h:43,
                 from /usr/include/vtk/vtkObject.h:41,
                 from /usr/include/vtk/vtkCellArray.h:35,
                 from /home/me/install-data-external-
packages/yade/pkg/dem/VTKRecorder.cpp:7,
                 from /home/me/install-data-external-packages/build-
bzr2811/plugins6.cpp:2:
/usr/lib/gcc/x86_64-manbo-linux-
gnu/4.4.3/../../../../include/c++/4.4.3/backward/backward_warning.h:28:2: 
warning: #warning This file includes at least one deprecated or antiquated 
header which may be removed without further notice at a future date. Please 
use a non-deprecated interface with equivalent functionality instead. For a 
listing of replacement headers and interfaces, consult the file 
backward_warning.h. To disable this warning use -Wno-deprecated.
C /home/me/install-data-external-packages/build-bzr2811/plugins7.cpp
C /home/me/install-data-external-packages/build-bzr2811/plugins8.cpp
C /home/me/install-data-external-packages/build-bzr2811/plugins9.cpp
In file included from /home/me/install-data-external-packages/build-
bzr2811/plugins9.cpp:7:
/home/me/install-data-external-packages/yade/pkg/dem/DomainLimiter.cpp: In 
member function 'virtual void LawTester::action()':
/home/me/install-data-external-packages/yade/pkg/dem/DomainLimiter.cpp:218: 
warning: comparison between signed and unsigned integer expressions
C /home/me/install-data-external-packages/build-bzr2811/plugins10.cpp
C /home/me/install-data-external-packages/build-bzr2811/plugins11.cpp
C py/mathWrap/miniEigen.cpp
L libplugins.so
C py/WeightedAverage2d.cpp
C py/wrapper/customConverters.cpp
> /home/me/YADE/lib/yade-bzr2811/plugins/libplugins.so
C py/_eudoxos.cpp
In file included from /usr/lib/gcc/x86_64-manbo-linux-
gnu/4.4.3/../../../../include/c++/4.4.3/backward/strstream:46,
                 from /usr/include/vtk/vtkIOStream.h:112,
                 from /usr/include/vtk/vtkSystemIncludes.h:40,
                 from /usr/include/vtk/vtkIndent.h:24,
                 from /usr/include/vtk/vtkObjectBase.h:43,
                 from /usr/include/vtk/vtkObject.h:41,
                 from /usr/include/vtk/vtkLocator.h:53,
                 from /usr/include/vtk/vtkAbstractPointLocator.h:27,
                 from /usr/include/vtk/vtkPointLocator.h:39,
                 from py/_eudoxos.cpp:13:
/usr/lib/gcc/x86_64-manbo-linux-
gnu/4.4.3/../../../../include/c++/4.4.3/backward/backward_warning.h:28:2: 
warning: #warning This file includes at least one deprecated or antiquated 
header which may be removed without further notice at a future date. Please 
use a non-deprecated interface with equivalent functionality instead. For a 
listing of replacement headers and interfaces, consult the file 
backward_warning.h. To disable this warning use -Wno-deprecated.
L _customConverters.so
C py/pack/_packObb.cpp
C py/pack/_packPredicates.cpp
C py/pack/_packSpheres.cpp
L _eudoxos.so
C py/_utils.cpp
L _packSpheres.so
C core/main/pyboot.cpp
C py/log.cpp
C /home/me/install-data-external-packages/build-
bzr2811/gui/qt4/moc_OpenGLManager.cc
L _utils.so
C gui/qt4/GLViewer.cpp
C gui/qt4/_GLViewer.cpp
C gui/qt4/OpenGLManager.cpp
C /home/me/install-data-external-packages/build-
bzr2811/gui/qt4/moc_GLViewer.cc
C py/wrapper/yadeWrapper.cpp
L _GLViewer.so
L wrapper.so
scons: done building targets.

END-----------------------------------------------------------------------------------------------------------------

I have four questions:

1. How can I fix the problem with qt4 library?

Checking for QGLViewer() in C++ library qglviewer-qt4... (cached) no

... paths in scon.profile-default is correct:

PREFIX = '/home/me/YADE'
features = 'opengl,openmp,qt4,vtk'
CPPPATH = 
'/usr/include/vtk-5.0:/usr/include/vtk-5.2:/usr/include/vtk-5.4:/usr/include/vtk-5.6:/usr/include/vtk:/usr/include/eigen2'
LIBPATH = '/usr/lib64:/usr/lib'
QT4DIR = '/usr/lib/qt4'
CXXFLAGS = []
SHCCFLAGS = ['-fPIC']

2. Is compilation completed correctly? There are several warnings (see 
above)...

3. If compilation was ok, how can I start yade? There is no executable in 
/home/me/YADE ... Do I have to install yade somehow?

[me@localhost bin]$ pwd
/home/me/YADE/bin
[me@localhost bin]$ ls -lah
insgesamt 56K
drwxr-xr-x 2 me me 4,0K 2011-04-14 12:01 ./
drwxr-xr-x 4 me me 4,0K 2011-04-14 12:01 ../
-rwxr-xr-x 1 me me  13K 2011-04-14 12:01 yade-bzr2811*
-rwxr-xr-x 1 me me  29K 2011-04-14 12:01 yade-bzr2811-batch*
[me@localhost bin]$ 

4. I did not use the feature 'log4cxx' because there is no package available 
for my distribution. Will this lead to problems, when using yade (later)?

Regards,

Christian.


-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.