Building Opensim from source

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Samane Amini
Posts: 100
Joined: Sun Jan 12, 2020 3:48 am

Building Opensim from source

Post by Samane Amini » Thu Jul 04, 2024 10:05 am

Hi guys

I have problem to build opensim from build. According to build script, I've used this code:

./opensim-core-Linux-build-script.sh -s -j4

Since I don't want to build Moco, I use -s flag. But I got this error after installing all dependencies:

Code: Select all

CMake Error at CMakeLists.txt:802 (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.
Anyone knows how to fix it?

User avatar
Nicholas Bianco
Posts: 972
Joined: Thu Oct 04, 2012 8:09 pm

Re: Building Opensim from source

Post by Nicholas Bianco » Fri Jul 05, 2024 9:53 am

Hi Samane,

You found an error in our script! You need to add "-DOPENSIM_WITH_CASADI=$MOCO -DOPENSIM_WITH_TROPTER=$MOCO" to the following line for the flag disabling Moco to work: https://github.com/opensim-org/opensim- ... pt.sh#L199.

Best,
Nick

POST REPLY