c4ev3 / C4EV3.Toolchain

Recent GCC cross-compilers for the stock EV3
https://github.com/c4ev3/toolchain/releases
4 stars 1 forks source link

C4EV3.Toolchain (Work-in-progress)

This arm-c4ev3-linux-uclibceabi Toolchain consists of:

It's meant for use when a recent C/C++ Toolchain is needed for the EV3, while still running on stock firmware.

How to build

C4EV3-Toolchain is a configuration of OSELAS.Toolchain. To build an OSELAS.Toolchain, you will first need to install PTXdist v2019.07.0.

Afterwards, this project can be built via:

ptxdist select ptxconfigs/arm-c4ev3-linux-uclibceabi_gcc-8.2.1_uclibc-ng-1.0.31_binutils-2.31.1_kernel-2.6.33-rc4-sanitized.ptxconfig
ptxdist go -j -q

This will proceed to download all needed packages, build them and installs them into /opt. If you want to install elsewhere or change other configuration, you may do so via running ptxdist menuconfig.

How to use

Just invoke the arm-c4ev3-linux-uclibceabi-gcc or arm-c4ev3-linux-uclibceabi-g++ to compile your sources. You can use ev3duder to upload the resulting ELF binary to the EV3. It should work out of the box as resulting binaries are statically linked and need no supporting software on the EV3 except for the kernel.

FAQ