a docker container for Wombat cross-compilation
557
A docker container for cross-compiling programs for the Wombat.
docker run -it --rm --volume ./develop:/home/kipr:rw sillyfreak/wombat-cross \
aarch64-linux-gnu-gcc -Wall main.c -lkipr -lm -o main -lz -lpthread
This will
./develop folderaarch64-linux-gnu-gcc -Wall ... to cross-compile the C file ./develop/main.c and store the result in ./develop/mainYou can then copy that file to your Wombat.
Compiling on the Wombat automatically adds the file _init_helper.c.
To my understanding, this file helps with correctly ordering output when invoking the program via the web IDE.
If you have issues with mangled output, download that file and add it to your program and compile command, e.g. like this:
docker run -it --rm --volume ./develop:/home/kipr:rw sillyfreak/wombat-cross \
aarch64-linux-gnu-gcc -Wall main.c _init_helper.c -lkipr -lm -o main -lz -lpthread
See https://github.com/PRIArobotics/wombat-cross for more information.
Content type
Image
Digest
sha256:859debe8f…
Size
252.7 MB
Last updated
over 1 year ago
docker pull sillyfreak/wombat-cross