summaryrefslogtreecommitdiff
path: root/BUILDING
diff options
context:
space:
mode:
authorNick White <git@njw.name>2022-02-23 22:22:43 +0000
committerNick White <git@njw.name>2022-02-23 22:22:43 +0000
commitc770a86cca74f3b6235000c77c2ab74487e2ac2a (patch)
tree0950d7c205f327247aa1ce2bb10b7c7d1bfa4c55 /BUILDING
parent7cf1d3a0d014a6a7f940262574c95260cbce5fc5 (diff)
parent4f928ca657afc464425b6fe49f264a94450e4ed0 (diff)
Merge remote-tracking branch 'ssh/master'
Diffstat (limited to 'BUILDING')
-rw-r--r--BUILDING22
1 files changed, 22 insertions, 0 deletions
diff --git a/BUILDING b/BUILDING
new file mode 100644
index 0000000..9932d30
--- /dev/null
+++ b/BUILDING
@@ -0,0 +1,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
+