Join GitHub today
Can we have a toolchain for the RPi? #2
Ah! Not quite as straight forward as I first thought. You do need another .cmake config file, I copied the original one and changed the cmake compilers to the vanilla gcc and g++ ones. However this does not work, cmake document explains why here: (see: http://www.cmake.org/Wiki/CMake_Useful_Variables). So the next step is to copy the buildme script to build_on_pi and I added the settings of the cmake compiler vars onto the cmake command:
cmake -D CMAKE_C_COMPILER=gcc -D CMAKE_CXX_COMPILER=g++ -DCMAKE_TOOLCHAIN_FILE=..
I'm still coming up to speed with 'git' as I am an 'svn' user :) ... so not sure if I can send a patch yet. But this should be enough info for a wiki or similar to help others out.
Here's a simple sed if all you want to do is compile userland natively on the Pi:
Now you can just build and ignore the toolchain stuff like so: