This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
doc:crazyflie:host:mac:macports [2014-12-09 12:00] arnaud created |
doc:crazyflie:host:mac:macports [2020-05-12 14:29] (current) kimberly |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | <WRAP center round important 60%> | ||
+ | This page has deprecated and moved to the new documentation framework of the main Bitcraze website. Please go to [[https:// | ||
+ | </ | ||
+ | ====== Installing Crazyflie client with macPorts ====== | ||
+ | |||
+ | This procedure has been tested on a just-installed Yosemite installation. Commands in code blocks have to be executed in a terminal window. | ||
+ | |||
+ | ===== Prerequisite ===== | ||
+ | |||
+ | Download and install macport installer from https:// | ||
+ | |||
+ | Install the command line developer tools: | ||
+ | |||
+ | < | ||
+ | xcode-select --install | ||
+ | </ | ||
+ | |||
+ | I found that installing only the command line developer tools is enough for Crazyflie client dependencies. However installing Xcode seems to be recommended. I installed the command line developer tools: | ||
+ | |||
+ | {{: | ||
+ | {{: | ||
+ | {{: | ||
+ | |||
+ | Update mac ports | ||
+ | |||
+ | < | ||
+ | sudo port selfupdate | ||
+ | </ | ||
+ | |||
+ | Update already installed ports (none on a fresh installation) | ||
+ | |||
+ | < | ||
+ | sudo port upgrade outdated | ||
+ | </ | ||
+ | |||
+ | ===== Mandatory dependencies ===== | ||
+ | Install Crazyflie client dependencies | ||
+ | |||
+ | < | ||
+ | sudo port install libusb python27 py27-pyusb py27-SDL2 py27-pyqt4 | ||
+ | </ | ||
+ | |||
+ | Most but not all packages are pre-compiled so this installation takes some time. It took about 12 minutes for me, YMMV. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | Now you are able to clone and run the Crazyflie client! | ||
+ | |||
+ | < | ||
+ | cd Documents | ||
+ | git clone https:// | ||
+ | cd crazyflie-clients-python | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ===== Optional dependencies ===== | ||
+ | |||
+ | If you want to use the plotter tab, to graph in real time Crazyflie log variables, you need to install pyqtgraph. It installs a lot of dependencies and took about 5 minutes (The ports install time varies a lot depending on how many ports are pre-compiled): | ||
+ | |||
+ | < | ||
+ | sudo port install py27-pyqtgraph | ||
+ | </ | ||
+ | |||
+ | {{: | ||
+ | |||
+ | You can now access the plotter tab: | ||
+ | |||
+ | < | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ===== Troubleshooting ===== |