-
Notifications
You must be signed in to change notification settings - Fork 167
Development OSX setup
The high level description of the setting up a development environment can be found here. This walks you through the process specifically for OSX.
In a terminal window, type:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew doctor
Install wget to be able to use make XXX_install
brew install wget
dfuutil_install also requires you to run brew install pkg-config libusb
Xcode. If you do not already have Xcode, the latest version can be gotten from the Apple app store. For Command Line Tools Installation for Xcode >= 4.0: Start Xcode and go through the initial setup. Once Xcode is running, go to Xcode > Preferences > Downloads > Components and install "Command Line Tools".
SDL is not required unless you want an external joystick input to your computer SDL - http://www.libsdl.org/release/SDL-1.2.15.dmg
git clone git://github.com/d-ronin/dRonin.git
cd dRonin
wget must be installed to use the following commands
If you have brew installed qt previously, unlink it now. If you get link errors building uavobjects, this is probably what is wrong:
brew unlink qt
NOTE: Do not install QT to the default location. When running the qt sdk install command, you'll be told where to install qt, then the GUI installer will open. Here is what it will look like:
*** NOTE NOTE NOTE ***
*
* In the GUI, please use exactly this path as the installation path:
* /some/path/src/dRonin/tools/Qt5.5.0
*
*** NOTE NOTE NOTE ***
Now that you know what to expect, run make qt_sdk_install
, copy the path from the output in your terminal and paste it into the installer when prompted.
make arm_sdk_install
SDL.framework needs to be copied to /Library/Frameworks (probably as root)
You should be ready to go. Type make all
to compile the entire project. Type make
to see a list of possible make arguments. Use 'make package' to create a .dmg containing everything, ready to install.