Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section


Column
width50%

Install required packages

If you followed the previous instructions from the msys2 website, you have now a fresh build environment.

  • Start a MinGW-w64 Win32 Shell or MinGW-w64 Win64 Shell but not a MSYS2 Shell
  • Install the dependent packages that match your MinGW shell.

For 32 bit:

Code Block
languagepowershell
themeEmacs
pacman -Sy
pacman -S --needed git unzip tar mingw-w64-i686-toolchain mingw-w64-i686-ccache mingw-w64-i686-ntldd mingw-w64-i686-qt5 mingw-w64-i686-SDL mingw-w64-i686-mesa mingw-w64-i686-openssl mingw-w64-i686-gdal-minimal mingw-w64-i686-OpenSceneGraph mingw-w64-i686-osgearth
pacman -S --needed mingw-w64-i686-graphite2 mingw-w64-i686-nghttp2

Optionally install debug packages:

Code Block
languagepowershell
themeEmacs
pacman -S --needed mingw-w64-i686-OpenSceneGraph-debug mingw-w64-i686-osgearth-debug

For 64 bit:

Code Block
languagepowershell
themeEmacs
pacman -Sy
pacman -S --needed git unzip tar mingw-w64-x86_64-toolchain mingw-w64-x86_64-ccache mingw-w64-x86_64-ntldd mingw-w64-x86_64-qt5 mingw-w64-x86_64-SDL mingw-w64-x86_64-mesa mingw-w64-x86_64-openssl mingw-w64-x86_64-gdal-minimal mingw-w64-x86_64-OpenSceneGraph mingw-w64-x86_64-osgearth

Optionally install debug packages:

Code Block
languagepowershell
themeEmacs
pacman -S --needed mingw-w64-x86_64-OpenSceneGraph-debug mingw-w64-x86_64-osgearth-debug


When pacman ask for default selection=All, hit Enter and next step  you should say 'Y' to start download.

This can take a while, fast internet connection preferred !

After download pacman will install all packages automatically.


Note
titleNote

Every time you need a 'make' command you need to run the mingw version of make, which is `mingw32-make`

To make this easier, you can execute this once:

Code Block
languagebash
themeEmacs
echo "alias make=mingw32-make" >> ~/.bashrc && . ~/.bashrc

and just use 'make'.



Column
width50%







...

Section


Column
width50%

Get the code using Msys2

  • Start a Win32 or Win64 shell
  • By default the shell start in home/[username], if you want to return back to home dir type: cd ~
  • Clone repository using git command :
Code Block
languagepowershell
themeEmacs
git clone https://bitbucket.org/librepilot/librepilot.git
 


Column
width50%



Section


Column
width50%


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"


Code Block
languagepowershell
themeEmacs
cd librepilot
git checkout next



Column
width50%

    


...