Skip to content

gateway240/opensim-build

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

opensim-build

Opensim Core & Gui Build

Building from the source code

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.

Arch Linux Platform Dependencies

  1. 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
  1. 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

NOTE: If you run sudo pacman -Syu it will update the SWIG version so you'll have to run the command again to revert to the older version

  1. 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.sh

Ubuntu Platform Dependencies

For now follow opensim build instructions 1

// TODO

Building on any Unix-Based Distribution (Ubuntu, Arch, Mac, NOT Windows)

  1. Install platform dependencies first!

  2. Build opensim-core by running build-core.sh. Add -n flag if you have and want to use Ninja instead of Makefiles

  3. 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/bin which should be on your path:

~/opensim-core/bin/opensim-install-command-line.sh
  1. Optionally build the gui with build-gui.sh (you will need to build the core with java bindings)

Simbody build

  1. 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
  1. Build simbody by running build-simbody.sh. Add -n flag if you have and want to use Ninja instead of Makefiles

Reference OpenSim Documentation

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages