The script doesn't install $BINARY/gdb-{32,64}.exe. We need this patch:
diff --git a/ffbuild.sh b/ffbuild.sh
index 4e3edbf..648d808 100644
--- a/ffbuild.sh
+++ b/ffbuild.sh
@@ -541,7 +541,7 @@ if (($makedebug)); then
log_note "Adding in debugging utilities..."
cp -f "$PATCH/ffdebugscript.txt" "$RELEASE/" || bail "Couldn't copy debug script"
cp -f "$PATCH/fontforge-debug.bat" "$RELEASE/" || bail "Couldn't copy fontforge-debug.bat"
- cp -f "$BINARY/gdb-$ARCHNUM.exe" "$RELEASE/bin/gdb.exe" || bail "Couldn't copy GDB"
+ cp -f "/$MSYSTEM/bin/gdb.exe" "$RELEASE/bin/" || bail "Couldn't copy GDB"
cp -f "$BINARY/wtee.exe" "$RELEASE/bin/" || bail "Couldn't copy wtee"
cp -rf "$DBSYMBOLS" "$RELEASE/bin/" || bail "Couldn't copy debugging symbols"
fi
wtee.exe is missing. I have no idea what it does, but putting this 2008 version in $BINARY fixed the problem for me.
The gdb data directory isn't detected for some reason, perhaps as a consequence of my decision to use MSYS2's gdb. Fix by running as e.g.:
./ReleasePackage/bin/gdb.exe --data-directory=/mingw64/share/gdb ./ReleasePackage/bin/fontforge.exe
Would you like a "Building on Windows" page on the FontForge wiki @jtanx ? I could write it.
The script doesn't install
$BINARY/gdb-{32,64}.exe. We need this patch:wtee.exeis missing. I have no idea what it does, but putting this 2008 version in$BINARYfixed the problem for me.The gdb data directory isn't detected for some reason, perhaps as a consequence of my decision to use MSYS2's
gdb. Fix by running as e.g.:Would you like a "Building on Windows" page on the FontForge wiki @jtanx ? I could write it.