File: README_raspberrypi.txt

package info (click to toggle)
allegro5 2%3A5.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 23,032 kB
  • sloc: ansic: 120,340; cpp: 15,707; objc: 4,805; python: 2,915; java: 2,195; sh: 887; xml: 86; makefile: 49; perl: 37; pascal: 24
file content (36 lines) | stat: -rw-r--r-- 952 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Building
--------

mkdir build
cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain-raspberrypi.cmake
make

Virtual machine
---------------

Building with a cross compiler is not yet documented. Building directly
on a Raspberry Pi or in a Raspberry Pi VM is very similar to building on
"regular" Linux. apt-get install the -dev packages you need, run cmake and
make sure everything you need is found.

For example, you can use an image from:

    http://www.raspberrypi.org/downloads

and a kernel:

    http://xecdesign.com/downloads/linux-qemu/kernel-qemu

With a qemu command line like:

    qemu-system-arm -kernel kernel-qemu -cpu arm1176 -m 256 -M versatilepb \
        -no-reboot -serial stdio -append "root=/dev/sda2 panic=1" \
        -hda 2012-12-16-wheezy-raspbian.img \
        -redir tcp:2222::22 -net nic -net user

You can ssh into the VM with:

    ssh -p 2222 pi@127.0.0.1

Within the guest you can access the host at 10.0.2.2.