Error when installing OpenSim in Linux system
Posted: Wed May 25, 2022 4:37 am
Dear OpenSim experts
I would like to use the HPC system in our University to run OpenSim simulation. The HPC uses Linux system and I would like to install the OpenSim in the HPC, using the instructions from the OpenSim repository: https://github.com/opensim-org/opensim- ... -makefiles.
However, When I tried to Configure and generate project files, I got an error about the CasADi.
I used the following command recommended by the repository:
The I got the following error about the casadi:
I got the following error:
My questions are that do I need to install the CasADi to apply OpenSim normally? Can I ignore the "CasADi" related error during the OpenSim installation?
Could any one tell me how to fix the problems or provide suggestions? Thanks in advance.
Xijin
I would like to use the HPC system in our University to run OpenSim simulation. The HPC uses Linux system and I would like to install the OpenSim in the HPC, using the instructions from the OpenSim repository: https://github.com/opensim-org/opensim- ... -makefiles.
However, When I tried to Configure and generate project files, I got an error about the CasADi.
I used the following command recommended by the repository:
Code: Select all
cmake ../opensim-core \
-DCMAKE_INSTALL_PREFIX="~/opensim_install" \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DOPENSIM_DEPENDENCIES_DIR="~/opensim_dependencies_install" \
-DBUILD_PYTHON_WRAPPING=ON \
-DBUILD_JAVA_WRAPPING=ON \
-DWITH_BTK=ON
Then I tried to install CasADi from the CasADi repository: https://github.com/casadi/casadi.git, using the following command:CMake Error at CMakeLists.txt:836 (find_package):
By not providing "Findcasadi.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "casadi", but CMake did not find one.
Could not find a package configuration file provided by "casadi" (requested version 3.4.4) with any of the following names:
casadiConfig.cmake
casadi-config.cmake
Add the installation prefix of "casadi" to CMAKE_PREFIX_PATH or set "casadi_DIR" to a directory containing one of the above files. If "casadi" provides a separate development package or SDK, be sure it has been installed.
Code: Select all
git clone https://github.com/casadi/casadi.git -b master casadi
cd casadi
mkdir build
cd build
cmake -DWITH_PYTHON=ON ..
make
make install
Error: make[2]: *** [swig/casadiPYTHON_wrap.cxx] Error 1make[1]: *** [swig/python/CMakeFiles/_casadi.dir/all] Error 2make: *** [all] Error 2[xh308@login-e-10 build]$ make docmake: *** No rule to make target `doc'. Stop.
My questions are that do I need to install the CasADi to apply OpenSim normally? Can I ignore the "CasADi" related error during the OpenSim installation?
Could any one tell me how to fix the problems or provide suggestions? Thanks in advance.
Xijin