Back to Xournalpp

Windows on ARM Build (not officially supported)

readme/WindowsBuildArm.md

1.3.41.7 KB
Original Source

Windows on ARM Build (not officially supported)

Install Dependencies

Xournal++ requires the following software to build:

  1. Install MSYS2 to a short path without spaces.
  2. Install NSIS to the standard directory.

Update MSYS2

Open a MSYS2 console (not the CLANGARM64 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 CLANGARM64 console. (Always check if it says CLANGARM64 - not MSYS2)

All following steps in this document happen in this console, unless specified otherwise.

sh
pacman -S \
  mingw-w64-clang-aarch64-toolchain \
  mingw-w64-clang-aarch64-cmake \
  mingw-w64-clang-aarch64-ninja \
  mingw-w64-clang-aarch64-imagemagick \
  mingw-w64-clang-aarch64-gettext \
  patch \
  make \
  git

If prompted, confirm or use all default values.

Install dependencies

sh
pacman -S \
  mingw-w64-clang-aarch64-poppler \
  mingw-w64-clang-aarch64-gtk3 \
  mingw-w64-clang-aarch64-libsndfile \
  mingw-w64-clang-aarch64-libzip \
  mingw-w64-clang-aarch64-lua \
  mingw-w64-clang-aarch64-portaudio \
  mingw-w64-clang-aarch64-gtksourceview4 \
  mingw-w64-clang-aarch64-qpdf

If prompted, confirm or use all default values.

Building and Testing

See 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.