From bfef1b00bebe85d9a5a6c764542704f7785a9b8f Mon Sep 17 00:00:00 2001 From: Harvey Fong Date: Sun, 4 Jan 2026 17:10:34 +0000 Subject: [PATCH] prelim windows source build instructions, considering nmake consolidation --- README.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/README.md b/README.md index e46d336..3a0f687 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ workdir/ ├── libssl/ ├── zlib/ ├── libssl/ +└── poomer-discord/ ``` ### Ubuntu Linux x64 and arm64 @@ -102,3 +103,37 @@ curl -LO https://raw.githubusercontent.com/nothings/stb/master/stb_image.h curl -LO https://raw.githubusercontent.com/nothings/stb/master/stb_image_write.h make all -j$(sysctl -n hw.ncpu) ``` + + +### Windows x64 +``` +mkdir workdir && cd workdir +mkdir zlib libssl DPP poomer-discord sqlite3 +cd ..\zlib +git clone https://github.com/madler/zlib.git . +nmake -f win32/Makefile.msc zlib.lib +cd ../libssl + +# Get Perl and Build libssl +curl -LO https://github.com/StrawberryPerl/Perl-Dist-Strawberry/releases/download/SP_54201_64bit/strawberry-perl-5.42.0.1-64bit-portable.zip +git clone https://github.com/openssl/openssl.git . +perl\bin\perl.exe Configure VC-WIN64A +nmake + +# Build sqlite3 +curl -LO https://www.sqlite.org/2025/sqlite-autoconf-3510100.tar.gz +tar xzf sqlite-autoconf-3510100.tar.gz --strip-components=1 +nmake /f Makefile.msc sqlite3.exe + +# Build DPP +cd ..\DPP +git clone https://github.com/brainboxdotcc/DPP.git . +cmake -B ./build -DOPENSSL_INCLUDE_DIR="$PWD/../libssl/include" -DOPENSSL_CRYPTO_LIBRARY="$PWD/../libssl/libcrypto.dylib" -DOPENSSL_SSL_LIBRARY="$PWD/../libssl/libssl.dylib" -DCMAKE_PREFIX_PATH="$PWD/../zlib" +cmake --build ./build -j4 + +# Build poomer-discord +cd ../poomer-discord +git clone https://git.indoodle.com/oomer/poomer-discord.git . +curl -LO https://raw.githubusercontent.com/nothings/stb/master/stb_image.h +curl -LO https://raw.githubusercontent.com/nothings/stb/master/stb_image_write.h +```