diff options
author | Nick White <git@njw.name> | 2021-11-03 13:23:35 +0000 |
---|---|---|
committer | Nick White <git@njw.name> | 2021-11-03 13:23:35 +0000 |
commit | ba689997defb7be6c912934fe81d97465603415e (patch) | |
tree | 785756af24f1bfc653902aea1e4fa7e254c58069 /BUILDING | |
parent | 0e4276a1ac3b6683619179a180fd76ecd20dc54b (diff) |
Update windows build config and add a basic guide to get it working
Diffstat (limited to 'BUILDING')
-rw-r--r-- | BUILDING | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/BUILDING b/BUILDING new file mode 100644 index 0000000..95019d9 --- /dev/null +++ b/BUILDING @@ -0,0 +1,21 @@ +To cross compile for Windows, the following needs to be done: + +1) Uncomment the lines under "mingw" in config.mk, and comment any earlier CC & LDFLAGS lines. + +2) Compile a copy of openssl for mingw. + Download OpenSSL from openssl.org, then run: + ./Configure mingw --cross-compile-prefix=i686-w64-mingw32- + make + +3) Set the OPENSSLDIR variable in config.mk to match where you compiled openssl + +4: Set up tcl Starkit prerequisites: + Download tclkit from http://tclkits.rkeene.org/fossil/wiki/Downloads + Download sdx from https://chiselapp.com/user/aspect/repository/sdx/index + Create a shell script called sdx and put it in your path, containing something like this: + #!/bin/sh + d="$HOME/src/getxbook" + "$d/tclkit-8.6.3-rhel5-x86_64" "$d/sdx-20110317.kit" "$@" + Download a windows tclkit including tk from http://tclkits.rkeene.org/fossil/wiki/Downloads and ensure the adjust W32TCLKIT to the appropriate filename in config.mk if needed + +Then 'make' and 'make dist-win' should all work as expected |