Page 1 of 1

Building Opensim from source

Posted: Thu Jul 04, 2024 10:05 am
by amini_opensim
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?

Re: Building Opensim from source

Posted: Fri Jul 05, 2024 9:53 am
by nbianco
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