compiling on the target - victronenergy/venus GitHub Wiki

Although there is a SDK is available for the Venus OS, it can be useful to compile simple programs on the target or check a program without having to spend time to figure out how to cross compile it. It needs some patients though and a target with enough free space, see machines. If the machine has a sufficient big partitions, run the following

/opt/victronenergy/swupdate-scripts/resize2fs.sh
opkg update
opkg install packagegroup-core-buildessential

A working c, c++, make and autotools should now be installed on the target

printf '#include <stdio.h>\nint main()\n { \n puts("Hello, World!"); \n return 0; \n }' > hello.c
gcc hello.c -o hello
./hello
⚠️ **GitHub.com Fallback** ⚠️