-
Notifications
You must be signed in to change notification settings - Fork 75
compiling on the target
Pete edited this page Aug 29, 2020
·
5 revisions
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