Home › Forum › SOFA › Building SOFA › [SOLVED] Error while build SOFA in Linux
Tagged: 32_bits, GCC, Linux_ubuntu, SOFA_1512
- This topic has 8 replies, 2 voices, and was last updated 8 years ago by Hugo.
-
AuthorPosts
-
6 June 2016 at 12:55 #7009malliBlocked
Hi
I am using Ubuntu 14.04 and installing SOFA
I was following the documentation to build SOFA
In final stage, when I used make command it builded upto 39% and showed me this errormake[2]: *** [SofaCommon/SofaMeshCollision/CMakeFiles/SofaMeshCollision.dir/MeshMinProximityIntersection.cpp.o] Error 1
make[1]: *** [SofaCommon/SofaMeshCollision/CMakeFiles/SofaMeshCollision.dir/all] Error 2
make: *** [all] Error 2please give me suggestions to solve this error
thanks6 June 2016 at 13:18 #7011HugoKeymasterDear Malli,
As Alex diagnosed in the previous post, you did not successfully build SOFA since the make process failed. We can help you in this, but you need to give us the entire output of the failure. All what we can notice from what you wrote is that there is an issue with MeshMinProximityIntersection.
Can you send us the whole output ?
Cheers,Hugo
6 June 2016 at 13:34 #7017malliBlockedAs you asked i am posting complete error output. Please check and suggest me solutions.
3Types::Deriv&, const Rigid3Mass&) inline LaparoscopicRigid3Types::Deriv operator*(const LaparoscopicRigid3Types::Deriv& d, const Rigid3Mass& m) ^ /home/neha/Documents/sofa/v15.12/src/framework/sofa/core/../../sofa/defaulttype/LaparoscopicRigidTypes.h:395:39: note: candidate expects 2 arguments, 1 provided In file included from /home/neha/Documents/sofa/v15.12/src/framework/sofa/core/../../sofa/core/State.h:31:0, from /home/neha/Documents/sofa/v15.12/src/framework/sofa/core/../../sofa/core/behavior/MechanicalState.h:30, from /home/neha/Documents/sofa/v15.12/src/SofaCommon/../modules/SofaBaseMechanics/MechanicalObject.h:29, from /home/neha/Documents/sofa/v15.12/src/SofaCommon/../modules/SofaBaseCollision/SphereModel.h:30, from /home/neha/Documents/sofa/v15.12/src/SofaCommon/../modules/SofaBaseCollision/DiscreteIntersection.h:32, from /home/neha/Documents/sofa/v15.12/src/SofaCommon/../modules/SofaBaseCollision/BaseProximityIntersection.h:5, from /home/neha/Documents/sofa/v15.12/src/SofaCommon/../modules/SofaBaseCollision/MinProximityIntersection.h:29, from /home/neha/Documents/sofa/v15.12/src/SofaCommon/../modules/SofaMeshCollision/MeshMinProximityIntersection.h:29, from /home/neha/Documents/sofa/v15.12/src/modules/SofaMeshCollision/MeshMinProximityIntersection.cpp:25: /home/neha/Documents/sofa/v15.12/src/framework/sofa/core/../../sofa/defaulttype/RigidTypes.h:1664:27: note: template<class real> sofa::defaulttype::RigidDeriv<2, real> sofa::defaulttype::operator*(const sofa::defaulttype::RigidDeriv<2, real>&, const sofa::defaulttype::RigidMass<2, real>&) inline RigidDeriv<2,real> operator*(const RigidDeriv<2,real>& d, const RigidMass<2,real>& m) ^ /home/neha/Documents/sofa/v15.12/src/framework/sofa/core/../../sofa/defaulttype/RigidTypes.h:1664:27: note: template argument deduction/substitution failed: In file included from /home/neha/Documents/sofa/v15.12/src/SofaCommon/../modules/SofaMeshCollision/MeshIntTool.h:10:0, from /home/neha/Documents/sofa/v15.12/src/SofaCommon/../modules/SofaMeshCollision/MeshMinProximityIntersection.h:31, from /home/neha/Documents/sofa/v15.12/src/modules/SofaMeshCollision/MeshMinProximityIntersection.cpp:25: /home/neha/Documents/sofa/v15.12/src/SofaCommon/../modules/SofaMeshCollision/TriangleModel.h:288:88: note: ‘const sofa::helper::vector<sofa::defaulttype::Vec<3, double>, sofa::helper::CPUMemoryManager<sofa::defaulttype::Vec<3, double> > >’ is not derived from ‘const sofa::defaulttype::RigidDeriv<2, real>’ inline const typename DataTypes::Coord& TTriangle<DataTypes>::p3Free() const { return (*this->model->mstate->read(sofa::core::ConstVecCoordId::freePosition())->getValue())[(*(this->model->triangles))[this->index][2]]; } ^ In file included from /home/neha/Documents/sofa/v15.12/src/framework/sofa/core/../../sofa/core/State.h:31:0, from /home/neha/Documents/sofa/v15.12/src/framework/sofa/core/../../sofa/core/behavior/MechanicalState.h:30, from /home/neha/Documents/sofa/v15.12/src/SofaCommon/../modules/SofaBaseMechanics/MechanicalObject.h:29, from /home/neha/Documents/sofa/v15.12/src/SofaCommon/../modules/SofaBaseCollision/SphereModel.h:30, from /home/neha/Documents/sofa/v15.12/src/SofaCommon/../modules/SofaBaseCollision/DiscreteIntersection.h:32, from /home/neha/Documents/sofa/v15.12/src/SofaCommon/../modules/SofaBaseCollision/BaseProximityIntersection.h:5, from /home/neha/Documents/sofa/v15.12/src/SofaCommon/../modules/SofaBaseCollision/MinProximityIntersection.h:29, from /home/neha/Documents/sofa/v15.12/src/SofaCommon/../modules/SofaMeshCollision/MeshMinProximityIntersection.h:29, from /home/neha/Documents/sofa/v15.12/src/modules/SofaMeshCollision/MeshMinProximityIntersection.cpp:25: /home/neha/Documents/sofa/v15.12/src/framework/sofa/core/../../sofa/defaulttype/RigidTypes.h:1222:27: note: template<class real, class real2> sofa::defaulttype::RigidDeriv<2, real> sofa::defaulttype::operator*(sofa::defaulttype::RigidDeriv<2, real>, real2) inline RigidDeriv<2,real> operator*(RigidDeriv<2,real> r, real2 a) ^ /home/neha/Documents/sofa/v15.12/src/framework/sofa/core/../../sofa/defaulttype/RigidTypes.h:1222:27: note: template argument deduction/substitution failed: In file included from /home/neha/Documents/sofa/v15.12/src/SofaCommon/../modules/SofaMeshCollision/MeshIntTool.h:10:0, from /home/neha/Documents/sofa/v15.12/src/SofaCommon/../modules/SofaMeshCollision/MeshMinProximityIntersection.h:31, from /home/neha/Documents/sofa/v15.12/src/modules/SofaMeshCollision/MeshMinProximityIntersection.cpp:25: /home/neha/Documents/sofa/v15.12/src/SofaCommon/../modules/SofaMeshCollision/TriangleModel.h:288:88: note: ‘sofa::helper::vector<sofa::defaulttype::Vec<3, double>, sofa::helper::CPUMemoryManager<sofa::defaulttype::Vec<3, double> > >’ is not derived from ‘sofa::defaulttype::RigidDeriv<2, real>’ inline const typename DataTypes::Coord& TTriangle<DataTypes>::p3Free() const { return (*this->model->mstate->read(sofa::core::ConstVecCoordId::freePosition())->getValue())[(*(this->model->triangles))[this->index][2]]; } ^ In file included from /home/neha/Documents/sofa/v15.12/src/framework/sofa/core/../../sofa/core/State.h:31:0, from /home/neha/Documents/sofa/v15.12/src/framework/sofa/core/../../sofa/core/behavior/MechanicalState.h:30, from /home/neha/Documents/sofa/v15.12/src/SofaCommon/../modules/SofaBaseMechanics/MechanicalObject.h:29, from /home/neha/Documents/sofa/v15.12/src/SofaCommon/../modules/SofaBaseCollision/SphereModel.h:30, from /home/neha/Documents/sofa/v15.12/src/SofaCommon/../modules/SofaBaseCollision/DiscreteIntersection.h:32, from /home/neha/Documents/sofa/v15.12/src/SofaCommon/../modules/SofaBaseCollision/BaseProximityIntersection.h:5, from /home/neha/Documents/sofa/v15.12/src/SofaCommon/../modules/SofaBaseCollision/MinProximityIntersection.h:29, from /home/neha/Documents/sofa/v15.12/src/SofaCommon/../modules/SofaMeshCollision/MeshMinProximityIntersection.h:29, from /home/neha/Documents/sofa/v15.12/src/modules/SofaMeshCollision/MeshMinProximityIntersection.cpp:25: /home/neha/Documents/sofa/v15.12/src/framework/sofa/core/../../sofa/defaulttype/RigidTypes.h:775:27: note: template<class real> sofa::defaulttype::RigidDeriv<3, real> sofa::defaulttype::operator*(const sofa::defaulttype::RigidMass<3, real>&, const sofa::defaulttype::RigidDeriv<3, real>&) inline RigidDeriv<3,real> operator*(const RigidMass<3,real>& m, const RigidDeriv<3,real>& d) ^ /home/neha/Documents/sofa/v15.12/src/framework/sofa/core/../../sofa/defaulttype/RigidTypes.h:775:27: note: template argument deduction/substitution failed: In file included from /home/neha/Documents/sofa/v15.12/src/SofaCommon/../modules/SofaMeshCollision/MeshIntTool.h:10:0, from /home/neha/Documents/sofa/v15.12/src/SofaCommon/../modules/SofaMeshCollision/MeshMinProximityIntersection.h:31, from /home/neha/Documents/sofa/v15.12/src/modules/SofaMeshCollision/MeshMinProximityIntersection.cpp:25: /home/neha/Documents/sofa/v15.12/src/SofaCommon/../modules/SofaMeshCollision/TriangleModel.h:288:88: note: ‘const sofa::helper::vector<sofa::defaulttype::Vec<3, double>, sofa::helper::CPUMemoryManager<sofa::defaulttype::Vec<3, double> > >’ is not derived from ‘const sofa::defaulttype::RigidMass<3, real>’ inline const typename DataTypes::Coord& TTriangle<DataTypes>::p3Free() const { return (*this->model->mstate->read(sofa::core::ConstVecCoordId::freePosition())->getValue())[(*(this->model->triangles))[this->index][2]]; } ^ In file included from /home/neha/Documents/sofa/v15.12/src/framework/sofa/core/../../sofa/core/State.h:31:0, from /home/neha/Documents/sofa/v15.12/src/framework/sofa/core/../../sofa/core/behavior/MechanicalState.h:30, from /home/neha/Documents/sofa/v15.12/src/SofaCommon/../modules/SofaBaseMechanics/MechanicalObject.h:29, from /home/neha/Documents/sofa/v15.12/src/SofaCommon/../modules/SofaBaseCollision/SphereModel.h:30, from /home/neha/Documents/sofa/v15.12/src/SofaCommon/../modules/SofaBaseCollision/DiscreteIntersection.h:32, from /home/neha/Documents/sofa/v15.12/src/SofaCommon/../modules/SofaBaseCollision/BaseProximityIntersection.h:5, from /home/neha/Documents/sofa/v15.12/src/SofaCommon/../modules/SofaBaseCollision/MinProximityIntersection.h:29, from /home/neha/Documents/sofa/v15.12/src/SofaCommon/../modules/SofaMeshCollision/MeshMinProximityIntersection.h:29, from /home/neha/Documents/sofa/v15.12/src/modules/SofaMeshCollision/MeshMinProximityIntersection.cpp:25: /home/neha/Documents/sofa/v15.12/src/framework/sofa/core/../../sofa/defaulttype/RigidTypes.h:766:27: note: template<class real> sofa::defaulttype::RigidDeriv<3, real> sofa::defaulttype::operator*(const sofa::defaulttype::RigidDeriv<3, real>&, const sofa::defaulttype::RigidMass<3, real>&) inline RigidDeriv<3,real> operator*(const RigidDeriv<3,real>& d, const RigidMass<3,real>& m) ^ /home/neha/Documents/sofa/v15.12/src/framework/sofa/core/../../sofa/defaulttype/RigidTypes.h:766:27: note: template argument deduction/substitution failed: In file included from /home/neha/Documents/sofa/v15.12/src/SofaCommon/../modules/SofaMeshCollision/MeshIntTool.h:10:0, from /home/neha/Documents/sofa/v15.12/src/SofaCommon/../modules/SofaMeshCollision/MeshMinProximityIntersection.h:31, from /home/neha/Documents/sofa/v15.12/src/modules/SofaMeshCollision/MeshMinProximityIntersection.cpp:25: /home/neha/Documents/sofa/v15.12/src/SofaCommon/../modules/SofaMeshCollision/TriangleModel.h:288:88: note: ‘const sofa::helper::vector<sofa::defaulttype::Vec<3, double>, sofa::helper::CPUMemoryManager<sofa::defaulttype::Vec<3, double> > >’ is not derived from ‘const sofa::defaulttype::RigidDeriv<3, real>’ inline const typename DataTypes::Coord& TTriangle<DataTypes>::p3Free() const { return (*this->model->mstate->read(sofa::core::ConstVecCoordId::freePosition())->getValue())[(*(this->model->triangles))[this->index][2]]; } ^ In file included from /home/neha/Documents/sofa/v15.12/src/framework/sofa/core/../../sofa/core/State.h:31:0, from /home/neha/Documents/sofa/v15.12/src/framework/sofa/core/../../sofa/core/behavior/MechanicalState.h:30, from /home/neha/Documents/sofa/v15.12/src/SofaCommon/../modules/SofaBaseMechanics/MechanicalObject.h:29, from /home/neha/Documents/sofa/v15.12/src/SofaCommon/../modules/SofaBaseCollision/SphereModel.h:30, from /home/neha/Documents/sofa/v15.12/src/SofaCommon/../modules/SofaBaseCollision/DiscreteIntersection.h:32, from /home/neha/Documents/sofa/v15.12/src/SofaCommon/../modules/SofaBaseCollision/BaseProximityIntersection.h:5, from /home/neha/Documents/sofa/v15.
6 June 2016 at 13:56 #7018HugoKeymasterHi Malli,
Thank you for posting the output.
Could you also tell us what options (CMake config) did you activate?6 June 2016 at 14:26 #7023malliBlockedI should say I activated without proper knowledge of options but I thought to install with maximum options. I have enabled following options.
Application_generategrid
APPLICATION_MODELER
APPLICATION_RUNSOFA
PLUGIN_CGAPLUGIN
PLUGIN_COLLADASCENELOADER
PLUIGIN_COMPLAINT
PLUIGIN_EMPTYCMAKECHAIN
PLUIGIN_EXTERNALBEHAVIOURMODEL
PLUIGIN_FLEXIBLE
PLUIGIN_HAPTON
PLUIGIN_INVERTIBLEFVM
PLUIGIN_MANIFOLDTOPLOGIES
PLUIGIN_MANUALMAPPING
PLUIGIN_MESHSTEPLOADER
PLUIGIN_MULTITHREADING
PLUIGIN_OPTITRACKNATNET
PLUGIN-PRESISTENTCONTACT
PLUGIN_PLUGINEXAMPLE
PLUIGIN_PREASSEMBLEEDMASS
PLUIGIN_REGISTRATION
PLUIGIN_SENSEEMULATION
PLUIGIN_SOFACRAVING
PLUGIN_SOFAPYTHON
PLUIGIN_SOFASIMPLEGUI
PLUIGIN_THMPGSPATIALHASHING
RUNSOFA_INSTALL_AS_BUNDLE
SOFAGENERAL_PARDISOSOLVER
SOFAGUI_EDITORVIEWER
SOFAGUI_GLUT
SOFAGUI_QGLVIEWER
SOFAGUI_QT
SOFAGUI_QTVIEWER
SOFAGUI_QT_INTERACTION
SOFA_BUILD_ARTTRACK
SOFA-BUILD_METIS
SOFA_BUILD_TESTS
SOFA_BUILD_TUTORIALS
SOFA_DTECTIONOUTPUT_BARCENTRICINFO
SOFA_DTECTIONOUTPUT_FREEMOTION
SOFA_DUMP_VISITOR_INFO
SOFA_INSTALL_RESOURCES_FILES
SOFA_NO_EXTERNAL_TEMPLATE
SOFA_NO_OPENGL
SOFA_NO_UPDATE_BBOX
SOFA_OPENMP
SOFA-USE_C++11After configuring i got following message
Install prefix: /home/neha/Documents/build-release/install
Boost version: 1.54.0
Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR)
SofaSparseSolver: metis was found, SparseLDLSolver will be built
SofaSparseSolver: csparse was found, SparseLUSolver and SparseCholeskySolver will be built
Adding Plugin SofaPython
SofaTest: optional dependency SofaPython found, Python_test will be built
Adding Plugin SofaSimpleGUI
Adding Plugin Compliant
Adding Plugin CGALPlugin
CGALPlugin: could not find image, won’t build MeshGenerationFromImage
Adding Plugin Flexible
Flexible: could not find image
Adding Plugin Registration
Registration: could not find image, won’t build IntensityProfileRegistrationForceField
Adding Plugin ColladaSceneLoader
Found Assimp: /usr/lib/libassimp.so
ColladaSceneLoader: could not find image
Adding Plugin PreassembledMass
Adding Plugin ExternalBehaviorModel
Adding Plugin InvertibleFVM
Adding Plugin MeshSTEPLoader
Found OpenCascade: /usr/lib/i386-linux-gnu/libTKBRep.so
Adding Plugin MultiThreading
Adding Plugin PluginExample
Adding Plugin ManifoldTopologies
Adding Plugin OptiTrackNatNet
Adding Plugin EmptyCmakePlugin
Adding Plugin Haption
Adding Plugin ManualMapping
Adding Plugin PersistentContact
Adding Plugin SensableEmulation
Adding Plugin THMPGSpatialHashing
Adding Plugin SofaCarving
Adding Application Modeler
Modeler: Using Qt5
Modeler: Using Qt5
Adding Application GenerateRigid
Adding Application runSofa
Configuring done6 June 2016 at 15:39 #7053HugoKeymasterDear Malli,
I strongly advise NOT to activate all the plugins.
Only the default configuration of SOFA is officially supported.
Of course, if you need a specific, non-compiled plugin, we can help you.
But compiling almost all possible plugins is not desirable.What functionalities do you really need?
6 June 2016 at 17:03 #7061malliBlockedHi Hugo,
I was not aware of that. Can you please tell me dafault configuration of SOFA.
I am looking at developing at surgical simulator for a surgery using haptic feedback.
I have not installed any haptics devices as you can see from the plugin list.
Right now , I am in intial phase of my work and trying to explore SOFA.
I would like you to suggest me basic functionalities for initial phase. I would comeback to forum when required in latter stages.Thanks for your patience,
malli6 June 2016 at 17:14 #7063HugoKeymasterNo worries.
I would advise you to delete your build/ folder and recreate a new one.
And restart the build process with default options.For haptic feedback, we are currently preparing the release of a new plugin for Omnis (Geomagic). But this might take a bit of time. The first step would be to look at the examples (folder examples/) and the documentation to understand how SOFA is working.
If you need any training sessions for SOFA, the SOFA Consortium may provide you this service. For more information, please visit the service page.
Best,
Hugo
20 December 2016 at 00:27 #8221HugoKeymasterHi @mallikarjuna !
Any update about this topic?
If no, I’ll have to close it since it’s already 6-month old.Best,
Hugo
-
AuthorPosts
- You must be logged in to reply to this topic.