BlackstoneEngineering / mbed-cli-osx-installer

OSX installer for mbed CLI
Apache License 2.0
0 stars 0 forks source link

What is this

This is a single click installer for mbed CLI on OSX. If you want the installer please see the Releases page for the latest download link. Included in the installer is the latest stable version of all tools required to develop in the mbed Ecosystem with mbed CLI.

How to use

Download the .dmg file, open it. Copy the app to your applications folder. Run application from your applications folder.

How does it work

When you run the app a Terminal is opened with modified local session variables that link to the versions of python, gcc compiler and mbed tools included in the installer.

Why?

Because we want something that 'just works' for users in a consistent, reproducable way.

But I like installing my tools myself

Cool, you can do that too. See the instructions here for how to install all the tools individually on your system.

Whats next?

Go build awesome.


How to Build

1) Update all dependencies in repo (GCC, Python Eggs, ...etc)


Help, things have gone quite wrong

Right, here are some suggestions 1) chmod 777 run-mbed-cli.sh - do this because Terminal.app is finicky and this helps sometimes 2) Make sure you are building the app with non-system python. Install Python from brew or something. The following command should return false python -c "import py2app.build_app; print py2app.build_app.is_system()" 3) Cannot find packages, getting an error like 'UserWarning: No package named mbed-cli' when trying to build. Solution : the site packages found by Py2app does not contain the modules. Try copying things from the Brew site-packages to your system-python site-packages.


Planned Updates