Forum Replies Created
-
AuthorPosts
-
27 September 2016 at 18:35 in reply to: [SOLVED] Problem with the sensable driver while building #7556malliBlocked
Thank you J-N for your support…. I am extremely glad for the kind of support of SOFA providing to the users…
26 September 2016 at 17:35 in reply to: Problem while opening the sensable example- SOFA crashes while opening example #7549malliBlockedHi J-N
I have used the second commit could not able open the scene and follwing error occurred… please check
[INFO] [PluginManager] Loaded plugin: /home/mallikarjuna/sofa/v16.08/build/lib/libSensable.so [WARNING] [DAGNode] ERROR parsing Link "": empty path. [WARNING] [InteractiveCamera] Too many missing parameters ; taking default ... FMM: Init. FMM: Initialize distance of edges crossing triangles. FMM: DONE. 121536 points inside ( 46 % ) [WARNING] [InteractiveCamera] Too many missing parameters ; taking default ... init Device is called Config directory not set correctly.: No such file or directory Configuration Error: Check the base address and port/adapter number. Consult the appropriate device drivers documentation. HHD: 4294967295 Error Code: 4294967295 Internal Error Code: -22 Message: [NewOmni] Failed to initialize the device Default PHANToM [WARNING] [NewOmniDriver] NO DEVICE NewOmniDriver::reset() is called NewOmniDriver::reinit() is called NewOmniDriver::cleanup() init Device is called Config directory not set correctly.: No such file or directory Default PHANToM[NewOmni] Found device Default PHANToM
########## SIG 11 ########## -> /home/mallikarjuna/sofa/v16.08/build/lib/libSofaHelper.so.16.08.0(sofa::helper::BackTrace::dump()+0x23) [0x7f22ead99f93] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSofaHelper.so.16.08.0(sofa::helper::BackTrace::sig(int)+0x27) [0x7f22ead9a167] -> /lib/x86_64-linux-gnu/libc.so.6(+0x354a0) [0x7f22ea1c04a0] -> /usr/lib/libHD.so.3.4(hd_enable_force_output(unsigned int, void*, void const*, HDDeviceState::StateEnum_)+0x9) [0x7f22c3de5d59] -> /usr/lib/libHD.so.3.4(hdEnable+0x3b) [0x7f22c3ddfd6b] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSensable.so(sofa::component::controller::NewOmniDriver::initDevice()+0x2af) [0x7f22c814565f] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSensable.so(sofa::component::controller::NewOmniDriver::bwdInit()+0x348) [0x7f22c8148648] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSensable.so(sofa::component::controller::NewOmniDriver::reinit()+0x7b) [0x7f22c8144edb] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSofaSimulationCore.so(sofa::simulation::ResetVisitor::processNodeTopDown(sofa::simulation::Node*)+0x3c) [0x7f22ecce3b5c] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSofaSimulationGraph.so.16.08.0(sofa::simulation::graph::DAGNode::executeVisitorTopDown(sofa::simulation::Visitor*, sofa::helper::list<sofa::simulation::graph::DAGNode*, std::allocator<sofa::simulation::graph::DAGNode*> >&, std::map<sofa::simulation::graph::DAGNode*, sofa::simulation::graph::DAGNode::StatusStruct, std::less<sofa::simulation::graph::DAGNode*>, std::allocator<std::pair<sofa::simulation::graph::DAGNode* const, sofa::simulation::graph::DAGNode::StatusStruct> > >&, sofa::simulation::graph::DAGNode*)+0x2d9) [0x7f22eea990f9] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSofaSimulationGraph.so.16.08.0(sofa::simulation::graph::DAGNode::doExecuteVisitor(sofa::simulation::Visitor*, bool)+0xae) [0x7f22eea996ae] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSofaSimulationCore.so(sofa::simulation::Node::executeVisitor(sofa::simulation::Visitor*, bool)+0x144) [0x7f22ecc90544] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSofaSimulationCore.so(sofa::simulation::Simulation::reset(sofa::simulation::Node*)+0xe3) [0x7f22ecce6f13] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSofaGuiQt.so.16.08.0(sofa::gui::qt::RealGUI::resetScene()+0x79) [0x7f22e9d4e159] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSofaGuiQt.so.16.08.0(sofa::gui::qt::RealGUI::setScene(boost::intrusive_ptr<sofa::simulation::Node>, char const*, bool)+0x21d) [0x7f22e9d53a1d] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSofaGuiQt.so.16.08.0(sofa::gui::qt::RealGUI::fileOpen(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool)+0x2fd) [0x7f22e9d50f7d] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSofaGuiQt.so.16.08.0(sofa::gui::qt::RealGUI::fileOpen()+0x687) [0x7f22e9d50747] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSofaGuiQt.so.16.08.0(+0x300d9d) [0x7f22e9cf1d9d] -> /usr/lib/x86_64-linux-gnu/libQt5Core.so.5(QMetaObject::activate(QObject*, int, int, void**)+0x7ea) [0x7f22d6a07fca] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(QAction::triggered(bool)+0x42) [0x7f22d72c2412] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(QAction::activate(QAction::ActionEvent)+0xf8) [0x7f22d72c4898] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x2d5e22) [0x7f22d7446e22] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x2dc0bc) [0x7f22d744d0bc] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(QMenu::mouseReleaseEvent(QMouseEvent*)+0x1d0) [0x7f22d7451030] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(QWidget::event(QEvent*)+0x668) [0x7f22d730ef88] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(QMenu::event(QEvent*)+0x113) [0x7f22d7451a83] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(QApplicationPrivate::notify_helper(QObject*, QEvent*)+0x8c) [0x7f22d72cc05c] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(QApplication::notify(QObject*, QEvent*)+0x959) [0x7f22d72d1c19] -> /usr/lib/x86_64-linux-gnu/libQt5Core.so.5(QCoreApplication::notifyInternal(QObject*, QEvent*)+0xdb) [0x7f22d69d962b] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool)+0x3c2) [0x7f22d72d0b32] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x1b88dd) [0x7f22d73298dd] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x1bab3b) [0x7f22d732bb3b] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(QApplicationPrivate::notify_helper(QObject*, QEvent*)+0x8c) [0x7f22d72cc05c] -> /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(QApplication::notify(QObject*, QEvent*)+0x256) [0x7f22d72d1516] -> /usr/lib/x86_64-linux-gnu/libQt5Core.so.5(QCoreApplication::notifyInternal(QObject*, QEvent*)+0xdb) [0x7f22d69d962b] -> /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5(QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*)+0x281) [0x7f22d6d1b521] -> /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5(QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*)+0x135) [0x7f22d6d1d1e5] -> /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5(QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>)+0x28) [0x7f22d6d00f38] -> /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5(+0x6b070) [0x7f22ceceb070] -> /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x2a7) [0x7f22d2f641a7] -> /lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x4a400) [0x7f22d2f64400] -> /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x2c) [0x7f22d2f644ac] -> /usr/lib/x86_64-linux-gnu/libQt5Core.so.5(QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)+0x5f) [0x7f22d6a2fa7f] -> /usr/lib/x86_64-linux-gnu/libQt5Core.so.5(QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)+0x10a) [0x7f22d69d6dea] -> /usr/lib/x86_64-linux-gnu/libQt5Core.so.5(QCoreApplication::exec()+0x9c) [0x7f22d69dee8c] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSofaGuiQt.so.16.08.0(sofa::gui::qt::RealGUI::mainLoop()+0x93) [0x7f22e9d49bf3] -> /home/mallikarjuna/sofa/v16.08/build/lib/libSofaGuiCommon.so.16.08.0(sofa::gui::GUIManager::MainLoop(boost::intrusive_ptr<sofa::simulation::Node>, char const*)+0x23) [0x7f22ee6610f3] -> bin/runSofa(main+0xc5a) [0x40666a] -> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7f22ea1ab830] -> bin/runSofa(_start+0x29) [0x406fc9] Segmentation fault (core dumped)
please check the error
26 September 2016 at 07:30 in reply to: Problem while opening the sensable example- SOFA crashes while opening example #7545malliBlockedHi J-N
I was trying to open simplebox-distancegrid.scn example scene of Sensable.
I have used your commit to fix the error… please check NewOmniDriver::init method
void NewOmniDriver::init() { sofa::simulation::Node::SPtr rootContext = static_cast<simulation::Node*>(this->getContext()->getRootContext()); if(firstDevice) { //simulation::Node *context = dynamic_cast<simulation::Node*>(this->getContext()->getRootContext()); //context->getTreeObjects<NewOmniDriver>(&autreOmniDriver); rootContext->getTreeObjects<NewOmniDriver>(&autreOmniDriver); sout<<"Detected NewOmniDriver:"<<sendl; for(unsigned int i=0; i<autreOmniDriver.size(); i++) { sout<<" device "<<i<<" = "<<autreOmniDriver[i]->getName()<<autreOmniDriver[i]->deviceName.getValue()<<sendl; autreOmniDriver[i]->deviceIndex.setValue(i); hHDVector.push_back(HD_INVALID_HANDLE); autreOmniDriver[i]->firstDevice=false; autreOmniDriver[i]->data.currentForce[0]=0; autreOmniDriver[i]->data.currentForce[1]=0; autreOmniDriver[i]->data.currentForce[2]=0; } firstDevice=true; } sout << deviceName.getValue()+" init" << sendl; if(alignOmniWithCamera.getValue()) { camera = this->getContext()->get<component::visualmodel::InteractiveCamera>(this->getTags(), sofa::core::objectmodel::BaseContext::SearchRoot); if(!camera) { camera = this->getContext()->get<component::visualmodel::InteractiveCamera>(); } if (!camera) { sofa::simulation::Node::SPtr groot = dynamic_cast<simulation::Node*>(this->getContext()); camera = sofa::core::objectmodel::New<component::visualmodel::InteractiveCamera>(); camera->setName(core::objectmodel::Base::shortName(camera.get())); groot->addObject(camera); camera->bwdInit(); } if(!camera) { serr << "Cannot find or create Camera." << sendl; } } modX=false; modY=false; modZ=false; modS=false; axesActif=false; initDeviceBool=false; VecCoord& posD =(*posDevice.beginEdit()); posD.resize(NVISUALNODE+1); posDevice.endEdit(); initVisu=false; changeScale=false; visuActif=false; isInitialized = false; frame=false; visuCreation=false; for(int i=0; i<NVISUALNODE; i++) { visualNode[i].visu = NULL; visualNode[i].mapping = NULL; } // parent = dynamic_cast<simulation::Node*>(this->getContext()); //sofa::simulation::tree::GNode *parentRoot = dynamic_cast<sofa::simulation::tree::GNode*>(this->getContext()); // if (parentRoot->parent()) // parentRoot = parentRoot->parent(); //nodePrincipal= parentRoot->createChild("omniVisu "+deviceName.getValue()); nodePrincipal = rootContext->createChild("omniVisu "+deviceName.getValue()); nodePrincipal->updateContext(); DOFs=NULL; firstInit=false; if(!initVisu) { rigidDOF=NULL; if(rigidDOF==NULL) { rigidDOF = sofa::core::objectmodel::New<MMechanicalObject>(); nodePrincipal->addObject(rigidDOF); rigidDOF->name.setValue("rigidDOF"); VecCoord& posDOF =*(rigidDOF->x.beginEdit()); posDOF.resize(NVISUALNODE+1); rigidDOF->x.endEdit(); rigidDOF->init(); nodePrincipal->updateContext(); } for(int i=0; i<NVISUALNODE; i++) { visualNode[i].node = nodePrincipal->createChild(visualNodeNames[i]); if(visualNode[i].visu == NULL && visualNode[i].mapping == NULL) { // create the visual model and add it to the graph // visualNode[i].visu = sofa::core::objectmodel::New<sofa::component::visualmodel::OglModel>(); visualNode[i].node->addObject(visualNode[i].visu); visualNode[i].visu->name.setValue("VisualParticles"); visualNode[i].visu->fileMesh.setValue(visualNodeFiles[i]); visualNode[i].visu->init(); visualNode[i].visu->initVisual(); visualNode[i].visu->updateVisual(); // create the visual mapping and at it to the graph // visualNode[i].mapping = sofa::core::objectmodel::New< sofa::component::mapping::RigidMapping< Rigid3dTypes, ExtVec3fTypes > > (); visualNode[i].node->addObject(visualNode[i].mapping); visualNode[i].mapping->setModels(rigidDOF.get(), visualNode[i].visu.get()); visualNode[i].mapping->name.setValue("RigidMapping"); visualNode[i].mapping->f_mapConstraints.setValue(false); visualNode[i].mapping->f_mapForces.setValue(false); visualNode[i].mapping->f_mapMasses.setValue(false); //visualNode[i].mapping->m_inputObject.setValue("@../RigidDOF"); //visualNode[i].mapping->m_outputObject.setValue("@VisualParticles"); visualNode[i].mapping->index.setValue(i+1); visualNode[i].mapping->init(); } if(i<VN_X) nodePrincipal->removeChild(visualNode[i].node); } visualNode[VN_X].visu->setColor(1.0,0.0,0.0,0); visualNode[VN_Y].visu->setColor(0.0,1.0,0.0,0); visualNode[VN_Z].visu->setColor(0.0,0.0,1.0,0); nodePrincipal->updateContext(); for(int i=0; i<NVISUALNODE; i++) { visualNode[i].node->updateContext(); } for(int j=0; j<=VN_X; j++) { sofa::defaulttype::ResizableExtVector< sofa::defaulttype::Vec<3,float> > &scaleMapping = *(visualNode[j].mapping->points.beginEdit()); for(unsigned int i=0; i<scaleMapping.size(); i++) scaleMapping[i] *= (float)(1.0*scale.getValue()/100.0); visualNode[j].mapping->points.endEdit(); } oldScale=(float)scale.getValue(); changeScale=false; initVisu=true; visuActif=false; } Vec1d& openT = (*openTool.beginEdit()); openT[0]=maxTool.getValue(); openTool.endEdit(); }
I will try to find out the line number which causes seg fault
Sorry for the late reply
Thank you
mallimalliBlockedThanks,
I got it now.malliBlockedHi 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,
mallimalliBlockedI 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 donemalliBlockedAs 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.
malliBlockedHi alex,
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
thanksmalliBlockedHi,
Thanks for the reply
I was using Ubuntu 14.04 and installing SOFA 15.12
I have followed exact details given in documentation for building SOFA in LINUX. I have configured and generated files using cmake. I think I was going wrong from here. I am sure I am in right directory.Can you give the details how the project files are compiled. I am new to this work. It would be helpful if you give me details.Thanks
malli -
AuthorPosts