Skip to content

Latest commit

 

History

History
48 lines (39 loc) · 1.77 KB

File metadata and controls

48 lines (39 loc) · 1.77 KB

ev3dev-compile

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:
    1. Run activate_ubuntu.bat in installation directory as Administrator to activate Linux distro emulation on Win10
    2. Reboot PC
    3. Install Ubuntu (or any other distro that uses apt package manager) from Microsoft Store
    4. After launching app, update Linux system using: "sudo apt-get update && sudo apt-get upgrade"
    5. Make sure that install.sh in installation directory have executable permissions (chmod +x install.sh)
    6. Launch script ./install.sh from installation directory to install required software
    7. Finish!
  • Ubuntu:
    1. Update system using: sudo apt-get update && sudo apt-get upgrade
    2. Make sure that install.sh in installation directory have executable permissions (chmod +x install.sh)
    3. Launch script ./install.sh from installation directory to install required software
    4. 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