Skip to content

Build errors #68

@beichun

Description

@beichun

Hi,
I'm building the plugin on Ubuntu 18.04 with python3.7.9, following this link: https://sofapython3.readthedocs.io/en/latest/menu/install.html.
When running make, I get the following error:
(1) serveral ones about getPathName():

[12/72] Building CXX object external_directories/bindings/Sofa/src/SofaPython3/Sofa/Core/CMakeFiles/Bindings.Sofa.Core.dir/Data/Binding_DataVectorString.cpp.o
FAILED: external_directories/bindings/Sofa/src/SofaPython3/Sofa/Core/CMakeFiles/Bindings.Sofa.Core.dir/Data/Binding_DataVectorString.cpp.o 
/usr/bin/g++ -DBindings_Sofa_Core_EXPORTS -DNDEBUG -DSOFA_HAVE_SOFAPYTHON3 -I/home/beichun/research/soft-gripper/sofa/src/SofaPython3/bindings/Sofa/src -I/home/beichun/research/soft-gripper/sofa/src/SofaKernel/modules/SofaCore/src -Iinclude/SofaFramework -I/home/beichun/research/soft-gripper/sofa/src/SofaKernel/modules/SofaHelper/src -I/home/beichun/research/soft-gripper/sofa/src/SofaKernel/modules/SofaHelper/../SofaSimulationCore/src -I/home/beichun/research/soft-gripper/sofa/src/SofaKernel/modules/SofaHelper/../SofaDefaultType/src -I/home/beichun/research/soft-gripper/sofa/src/SofaKernel/modules/SofaHelper/../SofaCore/src -Iinclude/GTest -I/home/beichun/research/soft-gripper/sofa/src/SofaKernel/modules/SofaDefaultType/src -I/home/beichun/research/soft-gripper/sofa/src/SofaKernel/modules/SofaSimulationCore/src -I/home/beichun/research/soft-gripper/sofa/src/SofaKernel/modules/SofaSimulationGraph/.. -Iinclude/SofaSimulation -I/home/beichun/research/soft-gripper/sofa/src/SofaKernel/modules/SofaSimulationCommon/.. -I/home/beichun/research/soft-gripper/sofa/src/SofaKernel/modules/SofaBaseVisual/.. -Iinclude/SofaBase -I/home/beichun/research/soft-gripper/sofa/src/SofaKernel/modules/SofaBaseTopology/.. -I/home/beichun/research/soft-gripper/sofa/src/SofaPython3/Plugin/src -isystem /usr/include/python3.7m -isystem /home/beichun/.env/sofa/lib/python3.7/site-packages/pybind11/include -isystem /home/beichun/research/soft-gripper/sofa/src/SofaKernel/extlibs/json -isystem /home/beichun/research/soft-gripper/sofa/src/extlibs/gtest/include -isystem /usr/include/eigen3 -Wall -W -Wno-padded -O3 -DNDEBUG -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -fvisibility=hidden -Dregister= -flto -fno-fat-lto-objects -DFRAMEWORK_TEST_RESOURCES_DIR=\"/home/beichun/research/soft-gripper/sofa/src/SofaKernel/SofaFramework/resources/tests\" -pthread -DGTEST_LINKED_AS_SHARED_LIBRARY=1 -std=c++1z -MD -MT external_directories/bindings/Sofa/src/SofaPython3/Sofa/Core/CMakeFiles/Bindings.Sofa.Core.dir/Data/Binding_DataVectorString.cpp.o -MF external_directories/bindings/Sofa/src/SofaPython3/Sofa/Core/CMakeFiles/Bindings.Sofa.Core.dir/Data/Binding_DataVectorString.cpp.o.d -o external_directories/bindings/Sofa/src/SofaPython3/Sofa/Core/CMakeFiles/Bindings.Sofa.Core.dir/Data/Binding_DataVectorString.cpp.o -c /home/beichun/research/soft-gripper/sofa/src/SofaPython3/bindings/Sofa/src/SofaPython3/Sofa/Core/Data/Binding_DataVectorString.cpp
In file included from /home/beichun/research/soft-gripper/sofa/src/SofaPython3/bindings/Sofa/src/SofaPython3/Sofa/Core/Data/Binding_DataVectorString.cpp:40:0:
/home/beichun/research/soft-gripper/sofa/src/SofaPython3/Plugin/src/SofaPython3/DataHelper.h: In member function ‘bool sofa::core::objectmodel::PrefabLink::operator==(const sofa::core::objectmodel::PrefabLink&) const’:
/home/beichun/research/soft-gripper/sofa/src/SofaPython3/Plugin/src/SofaPython3/DataHelper.h:94:53: error: ‘class sofa::core::objectmodel::Base’ has no member named ‘getPathName’; did you mean ‘getTypeName’?
                             return getTargetBase()->getPathName() == value.getTargetPath();
                                                     ^~~~~~~~~~~
                                                     getTypeName
/home/beichun/research/soft-gripper/sofa/src/SofaPython3/Plugin/src/SofaPython3/DataHelper.h:99:78: error: ‘class sofa::core::objectmodel::Base’ has no member named ‘getPathName’; did you mean ‘getTypeName’?
                             return getTargetPath() == value.getTargetBase()->getPathName();
                                                                              ^~~~~~~~~~~
                                                                              getTypeName

(2) d_componentState:

/home/beichun/research/soft-gripper/sofa/src/SofaPython3/Plugin/src/SofaPython3/Prefab.cpp: In member function ‘virtual void sofapython3::Prefab::doReInit()’:
/home/beichun/research/soft-gripper/sofa/src/SofaPython3/Plugin/src/SofaPython3/Prefab.cpp:56:5: error: ‘d_componentState’ was not declared in this scope
     d_componentState.setValue(sofa::core::objectmodel::ComponentState::Valid);
     ^~~~~~~~~~~~~~~~
/home/beichun/research/soft-gripper/sofa/src/SofaPython3/Plugin/src/SofaPython3/Prefab.cpp:56:5: note: suggested alternative: ‘d_componentstate’
     d_componentState.setValue(sofa::core::objectmodel::ComponentState::Valid);
     ^~~~~~~~~~~~~~~~
     d_componentstate

(3) setLinkedBase:

/home/beichun/research/soft-gripper/sofa/src/SofaPython3/Plugin/src/SofaPython3/DataHelper.cpp: In function ‘sofa::core::objectmodel::BaseLink* sofapython3::addLink(pybind11::object, const string&, pybind11::object, const string&)’:
/home/beichun/research/soft-gripper/sofa/src/SofaPython3/Plugin/src/SofaPython3/DataHelper.cpp:622:15: error: ‘class sofa::core::objectmodel::BaseLink’ has no member named ‘setLinkedBase’; did you mean ‘getLinkedBase’?
         link->setLinkedBase(py::cast<Base*>(value));
               ^~~~~~~~~~~~~
               getLinkedBase

By the way, I was able to build sofa without problems.
Any help is appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions