Skip to content

Commit

Permalink
Expanded section on Mac, added env variables to make cross-compilatio…
Browse files Browse the repository at this point in the history
…n work
  • Loading branch information
markpeletier authored and ddemidov committed Aug 5, 2018
1 parent a420c2a commit 2e7b4ae
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,17 @@ scp file.txt <EV3 USERNAME>@<IP>:/destination/directory

### Mac

The
[Carlson-Minot toolchain](http://www.carlson-minot.com/available-arm-gnu-linux-g-lite-builds-for-mac-os-x/mac-os-x-arm-gnu-linux-g-lite-201405-29-toolchain)
provides a complete toolchain for cross-compilation on the Mac. Download the "ARM GNU/Linux G++ Lite 2014.05-29 Easy Installer" and run it.

To get the cross-compilation working, use (replace EV3 by RPI for the BrickPi)
```
mkdir build
cd build
CC=arm-none-linux-gnueabi-gcc CXX=arm-none-linux-gnueabi-g++ cmake -DCMAKE_SYSTEM_NAME=Linux -DEV3DEV_PLATFORM=EV3 ..
make
```

## Brickstrap

Expand Down

0 comments on commit 2e7b4ae

Please sign in to comment.