Hi,
I have installed OpenSim in my workstation but I want to install also OpenSim-Moco. I'm having some issues with the installation using Cmake.
The source folder of Moco is called /opensim-moco-source.
The source folder of OpenSim-core is called /opensim-core-source.
When installing the dependencies, the OpenSim cmake file is missing. I solved the issue by installing all the other dependencies except for Opensim. Then, in the Opensim folder of the source folder of OpenSim Moco (/opensim-moco-source/opensim-core), I copied the "cmake" and "Bindings" folders of the source folder of OpenSim-core (/opensim-core-source).
After the configuration and generation, when I run the make command, it returns some errors in the Moco/Tests such as:
"
In file included from /home/.../opensim-moco-source/Moco/Moco/Common/TableProcessor.h:21,
from /home/.../opensim-moco-source/Moco/Tests/testTableProcessor.cpp:21:
/home/.../opensim-moco-source/Moco/Moco/Common/../MocoUtilities.h:55:20: error: redefinition of ‘template<class T, class ... Args> std::unique_ptr OpenSim::make_unique(Args&& ...)’
55 | std::unique_ptr make_unique(Args&&... args) {
| ^~~
In file included from /home/.../opensim-core/include/OpenSim/Common/osimCommon.h:28,
from /home/.../opensim-moco-source/Moco/Tests/Testing.h:21,
from /home/.../opensim-moco-source/Moco/Tests/testTableProcessor.cpp:20:
/home/.../opensim-core/include/OpenSim/Common/CommonUtilities.h:38:20: note: ‘template<class T, class ... Args> std::unique_ptr OpenSim::make_unique(Args&& ...)’ previously declared here
38 | std::unique_ptr make_unique(Args&&... args) {
| ^~~
In file included from /home/.../opensim-moco-source/Moco/Moco/Common/TableProcessor.h:21,
from /home/.../opensim-moco-source/Moco/Tests/testTableProcessor.cpp:21:
/home/.../opensim-moco-source/Moco/Moco/Common/../MocoUtilities.h:136:15: error: default argument given for parameter 4 of ‘SimTK::Vector OpenSim::interpolate(const Vector&, const Vector&, const Vector&, bool)’ [-fpermissive]
136 | SimTK::Vector interpolate(const SimTK::Vector& x, const SimTK::Vector& y,
| ^~~
"
Do you have any idea on how I can solve the issue? I hope it is clear enough.
Thank you.
Hi, I have installed OpenSim in my workstation but I want to install also OpenSim-Moco. I'm having some issues with the installation using Cmake. The source folder of Moco is called /opensim-moco-source. The source folder of OpenSim-core is called /opensim-core-source.
~~In file included from /home/.../opensim-core/include/OpenSim/Common/osimCommon.h:28, from /home/.../opensim-moco-source/Moco/Tests/Testing.h:21, from /home/.../opensim-moco-source/Moco/Tests/testTableProcessor.cpp:20: /home/.../opensim-core/include/OpenSim/Common/CommonUtilities.h:38:20: note: ‘template<class T, class ... Args> std::unique_ptr~~In file included from /home/.../opensim-moco-source/Moco/Moco/Common/TableProcessor.h:21, from /home/.../opensim-moco-source/Moco/Tests/testTableProcessor.cpp:21: /home/.../opensim-moco-source/Moco/Moco/Common/../MocoUtilities.h:136:15: error: default argument given for parameter 4 of ‘SimTK::Vector OpenSim::interpolate(const Vector&, const Vector&, const Vector&, bool)’ [-fpermissive] 136 | SimTK::Vector interpolate(const SimTK::Vector& x, const SimTK::Vector& y, | ^~~"
Do you have any idea on how I can solve the issue? I hope it is clear enough. Thank you.