martinling / imusim

IMUSim - see http://www.imusim.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

can not install imusim since "no such file: imusim/maths/quaternions.c"

wang-chen opened this issue · comments

Hi, I am using ubuntu 14.04 to install the imusim, but i meet the following problem, it says can not find the quaternions.c file. I have search the whole repository, also cannot find it. Is there anyone can help me? Thanks very much!

Here are the part of the instructions:
building 'imusim.maths.quaternions' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c imusim/maths/quaternions.c -o build/temp.linux-x86_64-2.7/imusim/maths/quaternions.o
x86_64-linux-gnu-gcc: error: imusim/maths/quaternions.c: No such file or directory
x86_64-linux-gnu-gcc: fatal error: no input files
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 4

Some missing C files need to be generated manually with Cython: (If you don't do this you will get errors like "clang: error: no such file or directory: 'imusim/maths/quaternions.c'")

cython -a imusim/maths/*.pyx

More help:
http://stackoverflow.com/questions/24771491/how-to-install-imusim

Furthermore, SimPy2 needs to be installed:
https://bitbucket.org/simpy/simpy2/get/ea5887ea9527.zip

And in Spyder, you need to activate:
Ignore API change errors (sip.setapi) checkbox in Preferences > Console > External Modules.