Update README

This commit is contained in:
Přemysl Eric Janouch 2021-10-23 20:27:51 +02:00
parent 5fc35517cb
commit 8c290df7b5
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 9 additions and 7 deletions

View File

@ -52,17 +52,20 @@ After _cpack_ finishes making the package, install this file.
Build from source on Windows Build from source on Windows
---------------------------- ----------------------------
_Note that with the current method we're stuck with GTK+ 3.8.2._ _Note that using the current method we're stuck with GTK+ 3.8.2, which works
worse on Windows 10, but better on XP and under WINE._
First install CMake and MinGW. Add both to your system path. If you want First, install CMake and MinGW. Add both to your system path. If you want
to build an installation package, also install NSIS. If you want to build to build an installation package, also install NSIS. If you want to build
within a path containing spaces, fix your FindPkgConfig.cmake to say (#22396): within a path containing spaces,
https://gitlab.kitware.com/cmake/cmake/-/issues/22396[fix] your CMake's
FindPkgConfig.cmake module to say:
separate_arguments(_pkgconfig_invoke_result UNIX_COMMAND "${_pkgconfig_invoke_result}") separate_arguments(_pkgconfig_invoke_result UNIX_COMMAND "${_pkgconfig_invoke_result}")
Run the following command in the directory with source files to automatically Run the following command in the directory with source files to automatically
fetch and set up all dependencies (note that Windows XP is no longer able to fetch and set up all dependencies (note that Windows XP is no longer able to
download from HTTPS sources): download from HTTPS sources, you'll have to run this externally):
> cmake -P Win32Depends.cmake > cmake -P Win32Depends.cmake
@ -92,9 +95,8 @@ Just install MinGW-w64 and let automation take care of the rest.
$ cmake -P Win32Depends.cmake $ cmake -P Win32Depends.cmake
$ mkdir build $ mkdir build
$ cd build $ cd build
$ cmake .. \ $ cmake -DCMAKE_TOOLCHAIN_FILE=../ToolchainCrossMinGWW64.cmake \
-DCMAKE_TOOLCHAIN_FILE=../ToolchainCrossMinGWW64.cmake \ -DCMAKE_BUILD_TYPE=Release ..
-DCMAKE_BUILD_TYPE=Release
$ cpack $ cpack
Alternatively, for an unnecessarily bloated MSYS2-based 64-bit build: Alternatively, for an unnecessarily bloated MSYS2-based 64-bit build: