Windows Building and Packaging (old)
Information
After 15.09 release you should use Msys2: see new Windows Building and Packaging page.
Introduction
Windows does not provide a bash environment like other 'Unix' systems. Most of tools are prepackaged and downloaded from our server to make the installation as friendly as possible. All you need to install manually is the msysGit package. Then, after running two scripts, you should have a complete build environment ready.
Install required software
Download msysGit from https://git-for-windows.github.io/
Install msysGit with default options except the install directory that needs to be without spaces, e.g. C:\GIT.
Browse installation steps using left/right arrows above.
Get the code using Git Bash
Start Git Bash
Create a C:/CODE directory (no spaces in name) :
Using steps
cd .. cd .. mkdir code cd code
or
mkdir c:/code cd c:/code
Clone repository using git command :
git clone https://bitbucket.org/librepilot/librepilot.git
Go into librepilot directory just created using git clone and check out the "next" source code branch, you can choose any other like "master" or "rel-15.09"
cd librepilot
git checkout next
Install Windows tools
Some tools are needed : make and 7za (7-Zip)
make command
Install the toolchain
The toolchain is used to build the software:
Ccache issue
With the latest msysGIT version there are some issues with ccache install and ccache can be disabled as follows :
make[1]: *** [install] Error 3
make[1]: Leaving directory 'C:/code/librepilot/build/ccache-3.2.2'
C:/code/librepilot/make/tools.mk:1011: recipe for target 'ccache_install' failed
make: *** [ccache_install] Error 2Edit the file make/tools.mk and find this line:
BUILD_SDK_TARGETS += osg sdl nsis mesawin openssl ccacheComment ccache target with a "#"
BUILD_SDK_TARGETS += osg sdl nsis mesawin openssl #ccacheBuilding the LibrePilot software
Congrats !
Congratulations! You have setup the build environment and built the complete LibrePilot software suite!
