opensim-core: Problems building Opensim on Ubuntu 20.04 for Raspberry Pi 4
I am currently trying to repurpose a Raspberry Pi 4 to replicate the results from OpensenseRT. As I was not able to boot up the Raspberry Pi from the images provided, I flashed a 32GB SD card with Ubuntu Desktop, and followed the build instructions for linux, by running the build script provided. However, I have faced issues, when trying to install opensim for both Ubuntu 20.04 and Ubuntu 22.04. For both images, the installation stopped under LOG: BUILDING OPENSIM-CORE DEPENDENCIES.
For Ubuntu 20.04
[ 40%] Built target colpack
make: *** [Makefile:84: all] Error 2
For Ubuntu 22.04
[ 68%] Built target simbody
make: *** [Makefile:91: all] Error 2
I’m not too sure what I am doing wrong, given the build instructions stated that the script was tested on the distros, and I simply need to run the script. The only thing that this is a Raspberry Pi, though the creators of OpenSenseRT used the same hardware, so I am not sure why I am facing the issue.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 16 (3 by maintainers)
@Hari-techi-96 Im not too sure, I didn’t encounter this error, but I can give you a quick rundown of what I remember doing. Its been a few months and i’m relying on my own documentation. Bear in mind this is for my specific use case which is OpensenseRT which does not need all parts of Opensim.
Firstly, I installed Ubuntu 20.04 server, without the Desktop GUI. I’m not sure if this helps but I know the GUI takes up some RAM, which is necessary for opensim installation.
From the error I see, it looks like you might be enabling Moco dependencies. So i disabled it by calling this build script.
./opensim-core-linux-build-script.sh -s0I also disabled Tropter and Casadi by adding the below lines to
/home/ubuntu/opensim-workspace/opensim-core-source/CMakeLists.txtI ran into an Eigen3 error and I installed it with sudo.
sudo apt install libeigen3-devLastly, JNI could not be found. To solve this, I set the Java Environment Variable
These are the list of issues I documented. I’m not sure if this is the best approach and my experience is rather limited [cc @aymanhab as one of the contributors to opensim, as he might provide more helpful insights if needed]. Also I highly recommend adding a heat sink and fan to the raspberry pi as it get REALLY HOT.
@halleysfifthinc Thank you for your help, it worked, although it took around 8 hours of building. Overall I was able to install opensim on the raspberry pi, which runs on ubuntu 20.4. However, I did face some issues during the installation, which i intend to document and submit as a pull request.