summaryrefslogtreecommitdiff
path: root/BUILDING
blob: 9932d3099cb5d4017195d8ebc30905a7c9d9d036 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
To cross compile for Windows, the following needs to be done:

1) Download the needed build dependencies from
   https://njw.name/getxbook/win-build-deps.20211103.tar.xz
   and unpack them into the getxbook directory

2) Uncomment all lines under 'mingw' in config.mk

Then 'make' and 'make dist-win' should all work as expected

---

# More information about the necessary files for Windows builds

OpenSSL is needed to link the windows builds to, as mingw doesn't include it. This needs to be cross compiled with mingw by running the following from an OpenSSL source directory:
  ./Configure mingw --cross-compile-prefix=i686-w64-mingw32-
  make 

Tclkit and SDX are used to create a self contained executable with the GUI and all needed tools. Unfortunately these days working builds are difficult to find. Two different versions of Tclkit are required: a native one, to get the SDX packer to work, and a Windows version including Tk, to package into the final executable.
   Both Tclkits can be downloaded from: http://tclkits.rkeene.org/fossil/wiki/Downloads
   sdx can be downloaded from: https://chiselapp.com/user/aspect/repository/sdx/index