Home › Forum › SOFA › Building SOFA › [SOLVED] How to build SOFA without OpenGL support
Tagged: 64_bits, GCC, Linux_other, SOFA_1608
- This topic has 4 replies, 3 voices, and was last updated 8 years ago by ewpostek.
-
AuthorPosts
-
14 October 2016 at 16:12 #7575MaciejBlocked
It seems to be possible to build and run SOFA on the system without OpenGL. I would like to run compute engine on the remote machine without graphic display. I have tried to build the framework with SOFA_NO_OPENGL:BOOL=ON and SOFA_BUILD_SCENECREATOR:BOOL=OFF cmake macros activated. Having all minor problems (like GLfloat type uses) fixed compilation succeded. With this configuration runSofa produces segmentation fault on both master and stable code versions. I am using GNU 4.8 compiler on the CentOS 6.4 Linux. Are there any other dependencies that I should check?
26 October 2016 at 18:50 #7689FroyKeymasterHello,
Compilation with SOFA_NO_OPENGL flag has been fixed in the master branch (#92ebeec)
28 October 2016 at 14:36 #7694MaciejBlockedMany thanks.
16 November 2016 at 13:22 #7778ewpostekBlockedHello,
I do attempt to build SOFA without OpenGL on a cluster
with the compilers:
1) tryton/compiler/gcc/5.4.0 2) tryton/python3/3.5.1with the command
/users/kdm/ewpostek/soffa/cmake_tmp/cmake-3.2.2-Linux-i386/bin/cmake -DSOFA_NO_OPENGL:BOOL=ON -DSOFA_OPENMP:BOOL=OFF ../srcI downloaded the today’s version,
However, I reach an error:
[ 4%] Building CXX object SofaKernel/SofaFramework/SofaHelper/CMakeFiles/SofaHelper.dir/AdvancedTimer.cpp.o
In file included from /users/kdm/ewpostek/soffa/sofa/master/src/SofaKernel/framework/sofa/helper/../../sofa/helper/logging/MessageDispatcher.h:37,
.
,
,
,/helper/logging/Message.h:89: error: type ‘<type error>’ argument given to ‘delete’, expected pointer
make[2]: *** [SofaKernel/SofaFramework/SofaHelper/CMakeFiles/SofaHelper.dir/AdvancedTimer.cpp.o] Error 1
make[1]: *** [SofaKernel/SofaFramework/SofaHelper/CMakeFiles/SofaHelper.dir/all] Error 2
make: *** [all] Error 2The system:
Linux version 2.6.32-504.el6.x86_64 (mockbuild@c6b9.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC) ) #1 SMP Wed Oct 15 04:27:16 UTC 2014
Command line: initrd=osgv01/diskless_initrd-2.6.32-504.el6.x86_64.img console=tty0 console=ttyS1,115200n8 root=nfs:10.26.7.209:/srv/diskless/osgv01/root rw SNAPSHOT=osgv01 consoleblank=0 nosoftlockup intel_idle.max_cstate=0 mce=ignore_ce BOOT_IMAGE=osgv01/vmlinuz-2.6.32-504.el6.x86_64
KERNEL supported cpus:
Intel GenuineIntel
AMD AuthenticAMD
Centaur CentaurHaulsCould you be so kind, and help with it ?
best regards,
Elek18 November 2016 at 10:27 #7786ewpostekBlockedDear Colleaugues,
I am very sorry.
The errors, I have shown before, were because of an error
in linking cc with the correctversion of the gcc compiler
on the cluster.It has been corrected.
Actually: the cmake looks as follows:
cd build
/users/kdm/ewpostek/soffa/cmake_tmp/cmake-3.2.2-Linux-i386/bin/cmake -DSOFA_NO_OPENGL:BOOL=ON -DSOFA_OPENMP:BOOL=OFF -DSOFA_BUILD_SCENECREATOR:BOOL=OFF ../srcwith the echo
— The C compiler identification is GNU 5.4.0
— The CXX compiler identification is GNU 5.4.0
— Check for working C compiler: /apl/tryton/gcc/5.4.0/bin/cc
— Check for working C compiler: /apl/tryton/gcc/5.4.0/bin/cc — works
— Detecting C compiler ABI info
— Detecting C compiler ABI info – done
— Detecting C compile features
— Detecting C compile features – done
— Check for working CXX compiler: /apl/tryton/gcc/5.4.0/bin/c++
— Check for working CXX compiler: /apl/tryton/gcc/5.4.0/bin/c++ — works
— Detecting CXX compiler ABI info
— Detecting CXX compiler ABI info – done
— Detecting CXX compile features
— Detecting CXX compile features – done
— Install prefix: /users/kdm/ewpostek/soffa/sofa/master/build/install
— Boost version: 1.41.0
— Found PythonInterp: /apl/tryton/python/2.7.11/bin/python (found version “2.7.11”)
— Looking for include file pthread.h
— Looking for include file pthread.h – found
— Looking for pthread_create in pthreads
— Looking for pthread_create in pthreads – not found
— Looking for pthread_create in pthread
— Looking for pthread_create in pthread – found
— Found Threads: TRUE
— Found ZLIB: /usr/lib64/libz.so (found version “1.2.3”)
— Found PNG: /usr/lib64/libpng.so (found version “1.2.49”)
— Looking for XOpenDisplay in /usr/lib64/libX11.so
— Looking for XOpenDisplay in /usr/lib64/libX11.so – found
— Looking for gethostbyname
— Looking for gethostbyname – found
— Looking for connect
— Looking for connect – found
— Looking for remove
— Looking for remove – found
— Looking for shmat
— Looking for shmat – found
— Found X11: /usr/lib64/libX11.so
— SofaSparseSolver: metis was not found, SparseLDLSolver won’t be built
— SofaSparseSolver: csparse was found, SparseLUSolver and SparseCholeskySolver will be built
— SofaTest: optional dependency SofaPython NOT found, Python_test won’t be built
Adding Application runSofa
— Configuring done
— Generating done
— Build files have been written to: /users/kdm/ewpostek/soffa/sofa/master/buildThe compilation starts to give the results:
[ 0%] Built target gtest
[ 1%] Built target gtest_main
[ 1%] Built target csparse
[ 3%] Built target newmat
[ 4%] Built target tinyxml
[ 12%] Built target SofaHelper
[ 12%] Built target SofaDefaultType
[ 22%] Built target SofaCore
[ 22%] Building CXX object SofaKernel/SofaFramework/SofaSimulationCore/CMakeFiles/SofaSimulationCore.dir/Node.cpp.o
In file included from /apl/tryton/gcc/5.4.0/include/c++/5.4.0/backward/hash_set:60:0,
from /usr/include/boost/graph/adjacency_list.hpp:25,
from /users/kdm/ewpostek/soffa/sofa/master/src/SofaKernel/framework/sofa/simulation/Node.cpp:52:
/apl/tryton/gcc/5.4.0/include/c++/5.4.0/backward/backward_warning.h:32: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. [-Wcpp]
#warning \
^
In file included from /usr/include/boost/functional/hash/hash.hpp:477:0,
from /usr/include/boost/functional/hash.hpp:6,
from /usr/include/boost/multi_index/detail/hash_index_args.hpp:17,
from /usr/include/boost/multi_index/hashed_index_fwd.hpp:16,
from /usr/include/boost/multi_index/hashed_index.hpp:33,
from /usr/include/boost/graph/named_graph.hpp:17,
from /usr/include/boost/graph/adjacency_list.hpp:51,
from /users/kdm/ewpostek/soffa/sofa/master/src/SofaKernel/framework/sofa/simulation/Node.cpp:52:
/usr/include/boost/functional/hash/extensions.hpp:38:33: error: ‘template<class T, class A> std::size_t boost::hash_value’ conflicts with a previous declaration
std::size_t hash_value(std::list<T, A> const& v);
^
In file included from /usr/include/boost/functional/hash/hash.hpp:477:0,
from /usr/include/boost/functional/hash.hpp:6,
from /usr/include/boost/multi_index/detail/hash_index_args.hpp:17,
from /usr/include/boost/multi_index/hashed_index_fwd.hpp:16,
from /usr/include/boost/multi_index/hashed_index.hpp:33,
from /usr/include/boost/graph/named_graph.hpp:17,
from /usr/include/boost/graph/adjacency_list.hpp:51,
from /users/kdm/ewpostek/soffa/sofa/master/src/SofaKernel/framework/sofa/simulation/Node.cpp:52:
/usr/include/boost/functional/hash/extensions.hpp:38:33: error: ‘template<class T, class A> std::size_t boost::hash_value’ conflicts with a previous declaration
std::size_t hash_value(std::list<T, A> const& v);
^
/usr/include/boost/functional/hash/extensions.hpp:36:17: note: previous declaration ‘namespace boost { }::hash_value’
std::size_t hash_value(std::vector<T, A> const&);.
.
.
. goes furtherr and finishes
.
.
.usr/include/boost/graph/detail/adjacency_list.hpp:1620:5: note: template argument deduction/substitution failed:
In file included from /usr/include/boost/graph/detail/adjacency_list.hpp:30:0,
from /usr/include/boost/graph/adjacency_list.hpp:345,
from /users/kdm/ewpostek/soffa/sofa/master/src/SofaKernel/framework/sofa/simulation/Node.cpp:52:
/usr/include/boost/graph/graph_concepts.hpp:92:17: error: using invalid field ‘boost::concepts::IncidenceGraph<G>::p’
e = *p.first;
^
make[2]: *** [SofaKernel/SofaFramework/SofaSimulationCore/CMakeFiles/SofaSimulationCore.dir/Node.cpp.o] Error 1
make[1]: *** [SofaKernel/SofaFramework/SofaSimulationCore/CMakeFiles/SofaSimulationCore.dir/all] Error 2
make: *** [all] Error 2Could you help with it ?
Best regards,
Elek -
AuthorPosts
- You must be logged in to reply to this topic.