diff --git a/README.md b/README.md index 84e7d26c..f045802a 100644 --- a/README.md +++ b/README.md @@ -113,6 +113,9 @@ To install all needed files execute: ```bash make install ``` + +[Windows Build](readme/WindowsBuild.md) + ## Code documentation The code documentation is generated using Doxygen. diff --git a/readme/WindowsBuild.md b/readme/WindowsBuild.md new file mode 100644 index 00000000..3843ab0a --- /dev/null +++ b/readme/WindowsBuild.md @@ -0,0 +1,62 @@ +# Xournal++ Windows Build + +**Windows Build is working now, but Xournal++ is not yet fully supported +on Windows.** + +Pull requests with fixes to the Code **and to this manual** are welcome! +This manual is not yet completed. + +## Preparation +Install MSYS2 +Start Mingw-w64 64bit. (Always Check **64bit** not 32bit and not MSYS2) + +Update MSYS (do this multiple times, +close Terminal after each update) + $ pacman -Syuu + +## Install GIT + $ pacman -S git + +## Install Build tools + $ pacman -S mingw-w64-x86_64-cmake + $ pacman -S make + $ pacman -S mingw-w64-x86_64-toolchain + $ pacman -S --needed base-devel mingw-w64-x86_64-toolchain mingw-w64-x86_64-cmake +(this is a duplicate of the lines above, probably only this line is needed. +Can anybody confirm this?) +-> press enter multiple times / confirm all default values + + $ pacman -S mingw-w64-x86_64-gcc + +## Install dependencies + + $ pacman -S mingw-w64-x86_64-boost + $ pacman -S mingw-w64-x86_64-poppler + $ pacman -S mingw-w64-x86_64-gtk3 + + +## Get sources and build + +$ git clone https://github.com/xournalpp/xournalpp.git +$ cd xournalpp/ +$ mkdir build +$ cd build/ + + cmake .. -G 'MSYS Makefiles' -DENABLE_MATHTEX=OFF -DCMAKE_BUILD_TYPE=Release + make + +## Packaging and Setup +There is no Script yet. This two StackOverflow entries describe how it works. + +https://stackoverflow.com/questions/49092784/how-to-distribute-a-gtk-application-on-windows +https://stackoverflow.com/questions/26738025/gtk-icon-missing-when-running-in-ms-windows/34673860#34673860 + +All libpixbufloader*.dll should be copied. + +loaders.cache don't need to be changed. + +But the dependencies of the libpixbufloader*.dll needs also to be copied into +the bin directory. + + +