Sign inSign up

philipz/raspberry-pi-crosscompile

By philipz

Updated almost 11 years ago

Image
8

1.5K

philipz/raspberry-pi-crosscompile repository overview

raspberry pi cross compilation

Based on this stack overflow article
http://stackoverflow.com/questions/19162072/installing-raspberry-pi-cross-compiler/19269715#19269715

Test the hello world program first:
cd /opt/rpi/cmake-hello-world
mkdir build
cd build
cmake -D CMAKE_TOOLCHAIN_FILE=$HOME/raspberrypi/pi.cmake ../
make
scp CMakeHelloWorld [email protected]:/home/pi/
ssh [email protected] ./CMakeHelloWorld
Now run the program from your PI

How use

docker pull philipz/raspberry-pi-crosscompile

or

build.sh

Then

docker run -ti philipz/raspberry-pi-crosscompile

OpenCV example

cd /opt
git clone https://github.com/Itseez/opencv
cd opencv
git checkout 2.4.9
cp /root/build.opencv .
./build.opencv

Tag summary

Content type

Image

Digest

sha256:2fcf6afa4

Size

936.2 MB

Last updated

almost 11 years ago

docker pull philipz/raspberry-pi-crosscompile