How to install IMUsim

This is a guide, not a question, because I spent a lot of time dealing with compilation errors when installing IMUsim, and I know that many other researchers fought. IMUsim code is currently not supported and installation documentation is lacking. If you simply clone the current IMUsim relay and follow the instructions to build from the source code, it will not be able to quote the missing files.

See my answer below for a solution.

+4
source share
1 answer

Installation instructions

First download the repo:

git clone https://github.com/martinling/imusim.git
cd imusim

C Cython: ( , , "clang: error: no :" imusim/maths/quaternions.c ")

cython -a imusim/maths/*.pyx

. GCC 4.8 , Mac :

# If necessary, install MacPorts from https://www.macports.org/install.php
sudo port selfupdate  # (Mac only)
sudo port install gcc48  # (Mac only)

Mac, GCC . . .

GCC: ( , GCC, Xcode, "imusim/maths/quat_splines.c: 1340: 8: :" inline " " )

export CC=/opt/local/bin/gcc-mp-4.8  # The path to GCC will differ for other platforms/versions.

IMUsim! ( , ).

python setup.py install
+3
source

Source: https://habr.com/ru/post/1548575/


All Articles