NOTE: On all platforms (Windows, OSX, Linux), you should build all OpenSim dependencies (Simbody, etc) with the same CMAKE_BUILD_TYPE (Linux) / CONFIGURATION (MSVC/Xcode) (e.g., Release, Debug) as OpenSim. Failing to do so may result in mysterious runtime errors like segfaults.
simbody cmake . --preset=default -DSIMBODY_BUILD_SHARED_LIBS=off cmake --build --preset=default -DBUILD_TESTING=true -DCMAKE_EXPORT_COMPILE_COMMANDS=on -j22
- Install platform specific dependencies from pacman
sudo pacman -S base-devel cmake autoconf pkg-config automake blas lapack freeglut libxi libxmu doxygen python3 python-numpy git openssl pcre pcre2 libtool gcc-fortran ninja patchelf byacc bison glu jdk8-openjdk
- Install this specific outdated version of SWIG (4.1.1):
sudo pacman -U https://archive.archlinux.org/packages/s/swig/swig-4.1.1-2-x86_64.pkg.tar.zst
sudo pacman -U https://archive.archlinux.org/packages/d/distrobox/distrobox-1.7.2.1-1-any.pkg.tar.zstInstall cmake3!
sudo pacman -U https://archive.archlinux.org/packages/c/cmake/cmake-3.31.5-1-x86_64.pkg.tar.zstNOTE: If you run
sudo pacman -Syuit will update the SWIG version so you'll have to run the command again to revert to the older version
Install old java
sudo pacman -U https://archive.archlinux.org/packages/j/jre8-openjdk-headless/jre8-openjdk-headless-8.452.u09-1-x86_64.pkg.tar.zst
sudo pacman -U https://archive.archlinux.org/packages/j/jre8-openjdk/jre8-openjdk-8.452.u09-1-x86_64.pkg.tar.zst
sudo pacman -U https://archive.archlinux.org/packages/j/jdk8-openjdk/jdk8-openjdk-8.452.u09-1-x86_64.pkg.tar.zstVERSION=8.452.u09-1
VERSION=8.442.u06-1
sudo pacman -U \
https://archive.archlinux.org/packages/j/jre8-openjdk-headless/jre8-openjdk-headless-${VERSION}-x86_64.pkg.tar.zst \
https://archive.archlinux.org/packages/j/jre8-openjdk/jre8-openjdk-${VERSION}-x86_64.pkg.tar.zst \
https://archive.archlinux.org/packages/j/jdk8-openjdk/jdk8-openjdk-${VERSION}-x86_64.pkg.tar.zst- Install Netbeans 12.3
mkdir -p ~/opensim-workspace/Netbeans12.3 || true && cd ~/opensim-workspace/Netbeans12.3
wget -nc -q --show-progress https://archive.apache.org/dist/netbeans/netbeans/12.3/Apache-NetBeans-12.3-bin-linux-x64.sh
chmod 755 Apache-NetBeans-12.3-bin-linux-x64.sh
./Apache-NetBeans-12.3-bin-linux-x64.shFor now follow opensim build instructions 1
// TODO
-
Install platform dependencies first!
-
Build opensim-core by running
build-core.sh. Add-nflag if you have and want to use Ninja instead of Makefiles -
On first install you will need to add opensim-core to your path or symlink it to somewhere already on the path. Note that this script will ask for sudo so it is a good idea to inspect it's contents before running. This script will symlink opensim-core to
usr/local/binwhich should be on your path:
~/opensim-core/bin/opensim-install-command-line.sh- Optionally build the gui with
build-gui.sh(you will need to build the core with java bindings)
- Install platform dependencies (the opensim dependencies include all of these)
- cross-platform building: CMake 3.12 or later.
- compiler: Visual Studio 2015, 2017, or 2019 (Windows only), gcc 4.9.0 or later (typically on Linux), Clang 3.4 or later, or Apple Clang (Xcode) 8 or later.
- linear algebra: LAPACK 3.6.0 or later and BLAS
- visualization (optional): FreeGLUT, Xi and Xmu
- Build simbody by running
build-simbody.sh. Add-nflag if you have and want to use Ninja instead of Makefiles
-
Build Instructions 1 - Github
-
Build Instructions 2 - Confluence
-
Build Instructions 3 - Deprecated
-
Build Instructions 4 - GUI
-
Build Instructions 5 - GUI Installer
-
Build Instructions 6 - Doxygen
-
Build Instructions 7 - Linux Support