Raspberry Pi
Posted: Mon Mar 14, 2016 3:01 pm
I'm documenting here if/not I can compile VS for the Raspberry Pi and the steps taken. I use a Raspberry Pi zero, which likely doesn't have enough oomph to run VS after it's compiled, but the process should be applicable to more powerful versions of it.
1. Using Raspberry Pi zero with Ubuntu 16.04 (latest build as of now 2016-02-26
2. checkout VS as with svn
3. Set correct compiler flags; for RPI zero:
For RPi 2 would be
and for RPi3:
4. Missing python development libraries
this makes cmake happy for now
5. RPI doesn't use regular OpenGL but OpenGL-ES. This is a problem as there is no glut for OGLES. Trying glshim
(edit) scratch that, trying freeglut
Seems to work
6. OpenAL
7. gtk+-2.0
8. libavcodec
9. swscale
...but for some reason cmake still can't find it
skipping for now, may need LD_LIBRARY_PATH
10.Xmu
11. Seems all dependencies are met now, trying to compile. Will take a long time, 10% after 30 minutes.
(edit) the first compile attempt failed at 11% with a gcc internal error, but that may be because I was trying to multitask on the device at the same time; probably too much for a puny 1-core ARM. Trying again.
more to come...
1. Using Raspberry Pi zero with Ubuntu 16.04 (latest build as of now 2016-02-26
2. checkout VS as with svn
3. Set correct compiler flags; for RPI zero:
Code: Select all
export CCFLAGS="-march=armv6zk -mcpu=arm1176jzf-s -mfloat-abi=hard -mfpu=vfp"
export CXXFLAGS="-march=armv6zk -mcpu=arm1176jzf-s -mfloat-abi=hard -mfpu=vfp"
Code: Select all
export CCFLAGS="-Ofast -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard"
export CXXFLAGS="-Ofast -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard"
Code: Select all
export CCFLAGS="-Ofast -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=hard"
export CXXFLAGS="-Ofast -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=hard"
4. Missing python development libraries
Code: Select all
sudo apt-get install python-dev
5. RPI doesn't use regular OpenGL but OpenGL-ES. This is a problem as there is no glut for OGLES. Trying glshim
Code: Select all
git clone https://github.com/lunixbochs/glshim
cd glshim
cmake . -DBCMHOST=1
make GL
Code: Select all
sudo apt-get install freeglut3-dev
6. OpenAL
Code: Select all
sudo apt-get install libopenal-dev
Code: Select all
sudo apt-get install libgtk2.0-dev
Code: Select all
sudo apt-get install libavcodec-dev
Code: Select all
sudo apt-get install libswscale-dev
skipping for now, may need LD_LIBRARY_PATH
10.Xmu
Code: Select all
sudo apt-get install libxmu-dev
(edit) the first compile attempt failed at 11% with a gcc internal error, but that may be because I was trying to multitask on the device at the same time; probably too much for a puny 1-core ARM. Trying again.
more to come...