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...