Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

First on the gumstix/chroot side.  The debian wheezy image we built includes g++-4.6 by default, but Ubuntu 14.04 only has the cross compiler for 4.7, so we'll install 4.7 along with distcc. 

Code Block
#chroot
apt-get install g++-4.7 distcc

There should be some symlinks in /usr/lib/distcc as follows:

Code Block
#chroot
arm-linux-gnueabi-g++-4.67 -> ../../bin/distcc
arm-linux-gnueabi-gcc-4.67 -> ../../bin/distcc

The cross compiler on the host machine will need to match the g++/gcc version listed in your symlinks.  To make distcc the default compiler add the following lines to your ~/.bashrc file:

Code Block
#chroot
export CC=/usr/lib/distcc/arm-linux-gnueabi-gcc-4.67
export CXX=/usr/lib/distcc/arm-linux-gnueabi-g++-4.67
export DISTCC_HOST=192.168.1.100  # default remote host to use

...

Code Block
#host
sudo apt-get install distcc g++-4.7-arm-linux-gnueabi

Add two new symlinks in /usr/lib/distcc

Code Block
#host
cd /usr/lib/distcc
sudo ln -s ../../bin/distcc arm-linux-gnueabi-g++-4.6-7
sudo ln -s ../../bin/distcc arm-linux-gnueabi-gcc-4.7

Run the distcc daemon on the host

Code Block
#host
distccd --daemon --allow '192.168.1.0/24'

 #

Deploy to SD card

Copy the required files from the hovergroup svn:

...