1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
# Windows Build

## Install Dependencies
Xournal++ requires the following software to build:
1. Install [MSYS2](https://www.msys2.org/) to a short path without spaces.
2. Install [NSIS](https://nsis.sourceforge.io/Download) to the standard directory.
### Update MSYS2
Open a MSYS2 console (**not** the MINGW64 console) and run the following command twice. Reopen the MSYS2 console each time you run the command.
```sh
pacman -Syuu
```
### Install Build tools
Open a MINGW64 console (Always check if it says **MINGW64** - not 32bit and not MSYS2)
All following steps in this document happen in this console, unless specified otherwise.
```sh
pacman -S \
mingw-w64-x86_64-toolchain \
mingw-w64-x86_64-cmake \
mingw-w64-x86_64-ninja \
mingw-w64-x86_64-imagemagick \
mingw-w64-x86_64-gettext \
patch \
make \
git
```
If prompted, confirm or use all default values.
### Install dependencies
```sh
pacman -S \
mingw-w64-x86_64-poppler \
mingw-w64-x86_64-gtk3 \
mingw-w64-x86_64-libsndfile \
mingw-w64-x86_64-libzip \
mingw-w64-x86_64-lua \
mingw-w64-x86_64-portaudio \
mingw-w64-clang-x86_64-gtksourceview4 \
mingw-w64-x86_64-qpdf
```
If prompted, confirm or use all default values.
## Building and Testing
See [Compile.md](./Compile.md)
## Packaging and Setup
Create the installer with
```sh
./windows-setup/package.sh build/
```
The installer will be located at `build/xournalpp-setup.exe`. This
command will also create a portable version of Xournal++ located in
`build/dist`.
|