User Tools

Site Tools


Joomla says you aren't logged in
development:setting_up_build_env

This is an old revision of the document!


Setting UP the Deviation Build Environment

NOTE: It is now strongly recommended that you use Docker images to build Deviation. Instructions for building can be found here

  Only the official embedded-arm build system is supported now
  Get the most recent release from here:
  https://launchpad.net/gcc-arm-embedded
  Current build version: gcc-arm-none-eabi-4_8-2013q4-20131204

#################################

Building for ARM (on Linux)

1) download and install the precompiled linux compiler from here: ''https://launchpad.net/gcc-arm-embedded''
  * Note that the only supported compiler for Deviation is gcc-arm-none-eabi-4_8-2013q4-20131204.  You can find the link to this from the [[All Downloads | https://launchpad.net/gcc-arm-embedded/+download]] page.
2) Add the path to the 'bin' directory to your PATH

Building for ARM (on Windows)

1) Download and install the precompiled windows compiler from here: ''https://launchpad.net/gcc-arm-embedded''
   * Note that the only supported compiler for Deviation is gcc-arm-none-eabi-4_8-2013q4-20131204.  You can find the link to this from the [[All Downloads | https://launchpad.net/gcc-arm-embedded/+download]] page.
2) Add path to 'bin' directory to your PATH (I like to put this into ~/.profile so it is there each time I start msys): ''export PATH=/mingw/stm32/bin:$PATH''
3) Ensure python is installed.  If not install it from here: ''http://www.python.org/download/releases/2.7.3/''
4) Add python to your msys path: ''export PATH="/c/<path to python>":$PATH''
  * For example: ''export PATH="/c/Program Files/Python27":$PATH)''

Builing the Windows binary on Linux

First install fltk:

apt-get install mingw32 mingw32-binutils mingw32-runtime
<Download and unpack fltk source code>
./configure --disable-largefile --enable-localjpeg \
           --enable-localzlib --enable-localpng \
           --disable-gl --host=i586-mingw32msvc \
           --prefix=/opt/fltk-w32
make
sudo make install

Next install portaudio:

<Download and unpack portaudio source code>
./configure --prefix=/opt/portaudio-w32
make
sudo make install

Building the Windows binary on Windows

First install MingW:

Next, install fltk:

Then, install portaudio:

  • Start msys (you should have an icon, but otherwise run C:\MingW\msys\1.0\msys.bat
  • cd src
  • Untar portaudio: tar -xzf <path to portaudio download> (you can get to your C: drive in mingw using /c/Users/<user>/Downloads for example)
  • cd portaudio
  • ./configure
  • make
  • make install

Finall, install Deviation:

  • Download the source code for deviation. You'll need mercurial to keep track of changes (which will require installing python), but you can manually download a zip of the source from bitbucket.org/PhracturedBlue/deviation
  • cd ~/src
  • cp -pf <path to deviation src code> deviation
  • cd deviation/src
development/setting_up_build_env.1462027520.txt.gz (17872 views) · Last modified: 2016/04/30 07:45 by PhracturedBlue