Script that allows you with ease compile programs for EV3DEV in C++ (using cross-compiler for ARM)
Author: Majroch - Jakub Majrowski
Tested on Ubuntu and Ubuntu over Win10
To use this script:
- Windows 10:
- Run activate_ubuntu.bat in installation directory as Administrator to activate Linux distro emulation on Win10
- Reboot PC
- Install Ubuntu (or any other distro that uses apt package manager) from Microsoft Store
- After launching app, update Linux system using: "sudo apt-get update && sudo apt-get upgrade"
- Make sure that install.sh in installation directory have executable permissions (chmod +x install.sh)
- Launch script ./install.sh from installation directory to install required software
- Finish!
- Ubuntu:
- Update system using: sudo apt-get update && sudo apt-get upgrade
- Make sure that install.sh in installation directory have executable permissions (chmod +x install.sh)
- Launch script ./install.sh from installation directory to install required software
- Finish!
First configuration:
- Run autoconf first to generate script checking for requirements
- Then ./configure to execute that script
- And at last check if all is working just compilling with: make
Output file is main (for ARM-based devices including RaspberryPI).
To compile program main.cpp, run: make
If you need to clean this folder from compiled files, run: make clean
After finished compiling, upload main program to your brick
Have fun :P