Skip to content

Instantly share code, notes, and snippets.

@ahogen
Last active August 2, 2017 21:17
Show Gist options
  • Save ahogen/ccca4ec89a5aaa3f705ac7411548a5f7 to your computer and use it in GitHub Desktop.
Save ahogen/ccca4ec89a5aaa3f705ac7411548a5f7 to your computer and use it in GitHub Desktop.
#!/bin/bash
###############################################################################
# Installs "libftdi" and its dependancies for Ubuntu 12.04/14.0.4 variants of
# Linux.
#
# This is just a copy of the Adafruit script in their tutorial. Go check them
# out over here:
# https://learn.adafruit.com/adafruit-ft232h-breakout/linux-setup
###############################################################################
sudo apt-get update
sudo apt-get install -y build-essential libusb-1.0-0-dev swig cmake python-dev libconfuse-dev libboost-all-dev
wget http://www.intra2net.com/en/developer/libftdi/download/libftdi1-1.2.tar.bz2
tar xvf libftdi1-1.2.tar.bz2
cd libftdi1-1.2
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX="/usr/" -DPYTHON_INCLUDE_DIR="/usr/include/python2.7" -DPYTHON_LIBRARIES="/usr/lib/python2.7/" ../
make
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment