Skip to content

issue installing the plugin on sofa already installed #58

@giampierobartolomei

Description

@giampierobartolomei

hi, I tried to install softrobots plugin with cmake, but i encoutered this error when run make command:
`
[ 98%] Building CXX object applications/plugins/SoftRobots/CMakeFiles/SoftRobots.dir/src/SoftRobots/component/controller/InteractiveControl.cpp.o
In file included from /home/giampiero/Desktop/sofa/src/applications/plugins/SoftRobots/src/SoftRobots/component/controller/InteractiveControl.cpp:30:
/home/giampiero/Desktop/sofa/src/applications/plugins/SoftRobots/src/SoftRobots/component/controller/InteractiveControl.h:114:11: error: expected nested-name-specifier before ‘InteractiveControl’
114 | using InteractiveControl SOFA_ATTRIBUTE_DEPRECATED__RENAME_NAMESPACE_SOFTROBOTS()
| ^~~~~~~~~~~~~~~~~~
/home/giampiero/Desktop/sofa/src/applications/plugins/SoftRobots/src/SoftRobots/component/controller/InteractiveControl.cpp:41:117: warning: ‘RegisterObject’ is deprecated: It is still usable but has been DEPRECATED since v24.12. You have until v25.12 to fix your code. RegisterObject and the associated implicit registration is being phased out. Use ObjectRegistrationData and explicit registration from now on. See #4429 for more information. [-Wdeprecated-declarations]
41 | int InteractiveControlClass = sofa::core::RegisterObject("InteractiveControl (Controls external motors via network)")
| ^
In file included from /home/giampiero/Desktop/sofa/src/applications/plugins/SoftRobots/src/SoftRobots/component/controller/InteractiveControl.h:32,
from /home/giampiero/Desktop/sofa/src/applications/plugins/SoftRobots/src/SoftRobots/component/controller/InteractiveControl.cpp:30:
/home/giampiero/Desktop/sofa/src/Sofa/framework/Core/src/sofa/core/ObjectFactory.h:387:65: note: declared here
387 | class SOFA_ATTRIBUTE_DEPRECATED__REGISTEROBJECT() SOFA_CORE_API RegisterObject
| ^~~~~~~~~~~~~~
make[2]: *** [applications/plugins/SoftRobots/CMakeFiles/SoftRobots.dir/build.make:398: applications/plugins/SoftRobots/CMakeFiles/SoftRobots.dir/src/SoftRobots/component/controller/InteractiveControl.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:11336: applications/plugins/SoftRobots/CMakeFiles/SoftRobots.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

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