I'm assuming he is compiling on ARM (my step-by-step doesn't contain any transmission of compiled binary).
Is ARM-Ubuntu like any other Ubuntu? I mean what is content of /etc/apt/sources.list ? 32bit and 64bit have: deb http://en.archive.ubuntu.com/ubuntu/ maverick main And checking with browser, there are Contents-amd64.gz and Contents-i386.gz, but not anything for ARM/ARMEL.
Step-by-step how anybody can do it. There are ready made virtual (qemu) image for ARM Ubuntu (Karmic 9.10). It is easy to 'install' and use. It is capable to compile things for real hardware running ARM Ubuntu.
You need computer (x86_i386 or x86_amd64). Call it HOST. It can be Linux, Windows, whatever. It can be real computer or virtualized or LiveCD. (Ubuntu is easy: it has most of needed things already and all other is easy to install)
On HOST: -1) Install 'ssh-server' if you are planning to copy compiled binary out. (Ubuntu: sudo apt-get install openssh-server) 0) Install tar, bunzip2 (, wget) (I think Ubuntu has them all) 1) Install qemu (Ubuntu: sudo apt-get install qemu) 2) Download image-file (300M) http://w3.impa.br/~gabrield/data/ubuntu-arm-development-rootfs.tar.bz2 (e.g. wget -c http://w3.impa.br/~gabrield/data/ubuntu-arm-development-rootfs.tar.bz2 ) 3) unpack it (2.1G) (e.g. tar jxfv ubuntu-arm-development-rootfs.tar.bz2 ) 4) Start qemu with image: qemu-system-arm -M versatilepb -cpu cortex-a8 -kernel ./vmlinuz -hda ubuntu-arm.img -m 256 -append "root=/dev/sda mem=256M devtmpfs.mount=0 rw"
It starts ARM-Ubuntu command-line-only (call it GUEST) on own window.
Then work inside GUEST! Username: ubuntu Password: temppwd
0) Be sure GUEST has Internet access sudo dhclient 1) install needed packages: sudo apt-get install git-core build-essential libsdl1.2-dev libbz2-dev 2) download current TPT-code git clone git://github.com/FacialTurd/The-Powder-Toy.git 3) Change directory cd The-Powder-Toy.git 4) Compile powder gcc -DINTERNAL -opowder -w -std=c99 -D_POSIX_C_SOURCE=200112L -Iincludes/ -O3 -ffast-math -ftree-vectorize -lSDL -lm -lbz2 src/*.c
Compiling it will take over 10 minutes. Finally you get file named 'powder'. It is possible to start X on GUEST, but I didn't manage to use mouse, and SDL_INIT will then fail.
Copy powder out of GUEST: rcp builder USER_ON_HOST@ADDRESS_OF_HOST: (note last colon)