This page has deprecated and moved to the new documentation framework of the main Bitcraze website. Please go to [[https://www.bitcraze.io/documentation/system/]] ====== 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://www.macports.org/install.php 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: {{:doc:crazyflie:host:mac:image03.png|}} {{:doc:crazyflie:host:mac:image00.png|}} {{:doc:crazyflie:host:mac:image01.png|}} 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. {{:doc:crazyflie:host:mac:image05.png|}} Now you are able to clone and run the Crazyflie client! cd Documents git clone https://github.com/bitcraze/crazyflie-clients-python cd crazyflie-clients-python /opt/local/bin/python2.7 bin/cfclient {{:doc:crazyflie:host:mac:image04.png|}} ===== 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 {{:doc:crazyflie:host:mac:image02.png|}} You can now access the plotter tab: /opt/local/bin/python2.7 bin/cfclient {{:doc:crazyflie:host:mac:image06.png|}} ===== Troubleshooting =====