Skip to content

Development Windows setup

ufoDziner edited this page Dec 17, 2015 · 40 revisions

This page describes the procedures for setting up a Windows machine to compile dRonin firmware and GCS software.

Download Required Programs

Git 2.6.4 or later - http://git-scm.com/downloads - Older versions of git_bash have problems with the Makefiles so be sure you're on a recent build. Version 2.6.4 has been confirmed working. Try the 32-bit version if the 64-bit version is causing problems. On Windows 10 build 1511, you MUST the use the 32-bit version of git 2.6.4 or later, otherwise you'll get a fatal error.

Python 2.7.x - get the latest Python 2.7.x release from http://www.python.org/download/releases

Qt 5.5.0 - http://download.qt.io/archive/qt/5.5/5.5.0/qt-opensource-windows-x86-mingw492-5.5.0.exe (use version with MinGW included, and make sure you check it on installation). Stick with 5.5.0, don't try to get a more recent release yet.

JDK (only required for compiling Android GCS) - http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

Install Required Programs

The following has been validated as providing a working build environment on Windows Server 2008 R2 when using the default paths that the installers provide.

  1. Install git. You will use this to clone the dRonin repository to your machine. It also provides a bash shell and other Unix-like tools.
  2. Install Python 2.7.4. Python is used when building firmware.
  3. Install Qt SDK. Qt provides much of the GUI framework behind GCS. Also, the compiler and some necessary Unix command line tools are provided.
  4. Install JDK if you want to compile AndroidGCS
  5. Install NSIS Unicode if you want to build installer packages.
  6. Setup your paths. You will need to add "C:\Qt\Qt5.5.0\5.5\mingw492_32\bin" (for Qt version 5.5.0) to your system PATH to run regular GCS builds from the build directory. Skipping this step will lead to errors about missing DLLs such as Qt5Cored.dll.

_a)_ For Windows 10: Proceed to Control Panel\System and Security\System. Click on "Advanced System Settings", then click on "Environment Variables..." towards the bottom right of the popup window. Select the "Path" row in the top selection box and click "Edit". Finally click "New" and paste "C:\Qt\Qt5.5.0\5.5\mingw492_32\bin" into the new line. Click "OK" to close out of the popup windows, and close the Control Panel.

Setup to build

Start a shell using the "Git bash" program shortcut in the right-click context menu.

Clone the repository to your computer by typing git clone https://github.com/d-ronin/dronin

Type this command to install a bash_profile suitable for developing the project: cp dronin/make/winx86/bash_profile ~/.bash_profile. Next, ensure that the bash_profile is executable by typing chmod 755 ~/.bash_profile . You may have to edit bash_profile if you have changed any installation paths from the default. Then exit from the terminal and start a new "Git bash" instance.

Next, change into the dRonin source directory with cd dronin and type make arm_sdk_install to install the ARM SDK tools. Next run make openssl_install to install openssl and associated utilities. Finally, run make zip_install to install zip compression tools used in packaging.

After this you can type make all and compile everything!

Clone this wiki locally