Sign inSign up

sillyfreak/wombat-cross

By sillyfreak

•Updated over 1 year ago

a docker container for Wombat cross-compilation

Image
Developer tools
0

557

sillyfreak/wombat-cross repository overview

A docker container for cross-compiling programs for the Wombat.

⁠Quick start

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

  • run the container and clean it up afterwards,
  • give the container access to the ./develop folder
  • call the cross-compilation command aarch64-linux-gnu-gcc -Wall ... to cross-compile the C file ./develop/main.c and store the result in ./develop/main

You can then copy that file to your Wombat.

⁠Known differences from compiling with the Wombat web IDE (harrogate)

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.

Tag summary

Content type

Image

Digest

sha256:859debe8f…

Size

252.7 MB

Last updated

over 1 year ago

docker pull sillyfreak/wombat-cross