Linux Installation

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Chaofei Zhang
Posts: 26
Joined: Tue Oct 03, 2017 11:03 am

Linux Installation

Post by Chaofei Zhang » Mon Feb 05, 2018 1:24 pm

Hi all,

I would like use API 3.3 in Linux system. But there are always some errors you guys might have some advices.

The problem: installing OpenSim 3.3 (from the website download source tarball) into a CentOS 7 environment (no sudo access, installation cannot be modified after the fact), no GUI interface (e.g. no cmake GUI). Install process (with generic steps taken/paths specified), as adapted from https://simtk-confluence.stanford.edu:8 ... rom+Source:

Step 0: ensure GCC (6.2.0), cmake (3.7.1), openblas (0.2.19) are all on PATH/LD_LIBRARY_PATH
Step 1: install Simbody (3.5.2 from website download source tarball):

$ tar xvf Simbody-3.5.4.tar.gz
$ mkdir simbody-builddir
$ cd simbody-builddir
$ cmake /path/to/unpacked/simbody-source -DCMAKE_INSTALL_PREFIX=/path/to/simbody-install
$ make
$ make install

Step 2: Build OpenSim 3.3

$ unzip Opensim-3.3.zip
$ mkdir opensim-builddir
$ cd opensim-builddir2
$ cmake /path/to/unpacked/OpenSim3.3-source -DCMAKE_INSTALL_PREFIX=/path/to/opensim-install -DOPENSIM_STANDARD_11=ON -DSIMBODY_HOME=/path/to/simbody-install
$ make
$ make install

The above process installed OpenSim and Simbody just fine, but does not appear to set up any of the API bindings (Python or Java/Matlab). Unlike the Windows installation, there is no Scripts directory in the install directory, nor is there one in the source directory. This results in the user being unable to use the API with Matlab, etc: commands such as

>> methods Model
>> methods org.opensim.modeling.Model

will throw errors, e.g. "Undefined function or variable 'Model'". (LD_LIBRARY_PATH is set to the installation directory, etc. as per, but there is nothing useful in there for this functionality.) How can I build OpenSim from source to include the .jar and bindings, etc., or whatever else I'd need in order to be able to interact with OpenSim via Matlab?


Thanks,
chaofei

User avatar
Thomas Uchida
Posts: 1780
Joined: Wed May 16, 2012 11:40 am

Re: Linux Installation

Post by Thomas Uchida » Mon Feb 05, 2018 4:23 pm

Using the MATLAB interface on Linux is supported in OpenSim 4.0 but not 3.3. Please see Chris's posts to the following thread for more information: viewtopicPhpbb.php?f=91&t=8614

POST REPLY