Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo apt-get install g++ git nasm flex bison gawk gperf autoconf automake m4 cvs libtool
- byacc texinfo gettext zlib1g-dev libncurses5-dev git-core build-essential xsltproc libexpat1-dev zip
- autopoint xfonts-utils libxml-parser-perl libproc-processtable-perl default-jre
- $ PROJECT=RPi ARCH=arm PVR=yes make release -j N
- git clone https://github.com/raspberrypi/tools
- export PATH="$(pwd)/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin:${PATH}"
- printf '#include <stdio.h>nint main() { puts("hello world"); }n' > hello_world.c
- printf '#include <iostream>nint main() { std::cout << "hello world" << std::endl; }n' > hello_world.cpp
- arm-linux-gnueabihf-gcc -std=c99 hello_world.c
- arm-linux-gnueabihf-g++ -std=c++11 hello_world.cpp
Add Comment
Please, Sign In to add comment