Guest User

Untitled

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