יום שבת, 27 ביולי 2013

c++ cross compilation for my raspberry pi

C++ cross compilation should be a very simple and intuitive task especially using the  new eclipse Kepler that’s already contains all the integration ingredients .
If a problem comes out  95% is because of bad toolchain. ( that cause linking problems and segmentation faults when  you finally overcome the linking problems )
I fount the following source for raspberry pi toolchain working:
$ wget https://s3.amazonaws.com/RTI/Community/ports/toolchains/raspbian-toolchain-gcc-4.7.2-linux64.tar.gz

Please Note :
Use the proper toolchain version according to your compilation machine (32 or 64 bit ).
If segmentation faults error appear to to compile the program with “static” flag .

Resources:
http://www.xappsoftware.com/wordpress/2013/02/07/using-ubuntu-to-cross-compile-for-raspberry-pi/

אין תגובות:

הוסף רשומת תגובה