summaryrefslogtreecommitdiff
path: root/BUILDING
diff options
context:
space:
mode:
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
+