From 2dac497da86b3a4c5089974ac5e8fb2475179738 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Letz?= Date: Thu, 9 Jan 2025 22:01:10 +0100 Subject: [PATCH] Possible fix for 'Error 998 loading external' with faust2w32max6 and faust2w64max6. --- tools/faust2appls/faust2w32max6 | 7 ++++--- tools/faust2appls/faust2w64max6 | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/tools/faust2appls/faust2w32max6 b/tools/faust2appls/faust2w32max6 index 6e0e8b1b09..0ca0ab4e58 100755 --- a/tools/faust2appls/faust2w32max6 +++ b/tools/faust2appls/faust2w32max6 @@ -5,7 +5,7 @@ # Cross-compiles Faust programs to Max/MSP # # from : Linux or OSX # # to : Windows 32 # -# (c) Grame, 2011-2024 # +# (c) Grame, 2011-2025 # # # ##################################################################### @@ -43,7 +43,7 @@ fi : ${MINGWPREFIX="i686-w64-mingw32-"} CXX="${MINGWPREFIX}g++" (which "$CXX" >/dev/null) || (echo "MingW compiler $CXX not found"; exit 1) -DLLWRAP="${MINGWPREFIX}dllwrap --target=i686-w64-mingw32" +DLLWRAP="${MINGWPREFIX}dllwrap --target=i686-w64-mingw32 --dynamicbase --enable-auto-image-base" STRIP="${MINGWPREFIX}strip" #----------------------------------------------------------------------------- @@ -111,7 +111,8 @@ for p in $FILES; do $CXX $CXXINCS $CXXFLAGS $MC -c "${f%.dsp}.cpp" -o "${f%.dsp}.o" $DLLWRAP --driver-name $CXX --def ${f%.dsp}.def *.o $LIBS -static -o "${f%.dsp}$EXT" - $STRIP "${f%.dsp}$EXT" + # Read: https://beta.cycling74.com/t/error-998-loading-external-generated-with-faust2max6-on-windows/3327/10 + # $STRIP "${f%.dsp}$EXT" ) > /dev/null || exit cp "$TMP/${f%.dsp}$EXT" "$SRCDIR" diff --git a/tools/faust2appls/faust2w64max6 b/tools/faust2appls/faust2w64max6 index ce574509ae..f4e78b9548 100755 --- a/tools/faust2appls/faust2w64max6 +++ b/tools/faust2appls/faust2w64max6 @@ -5,7 +5,7 @@ # Cross-compiles Faust programs to Max/MSP # # from : Linux or OSX # # to : Windows 64 # -# (c) Grame, 2018-2024 # +# (c) Grame, 2018-2025 # # # ##################################################################### @@ -43,7 +43,7 @@ fi : ${MINGWPREFIX="x86_64-w64-mingw32-"} CXX="${MINGWPREFIX}g++" (which "$CXX" >/dev/null) || (echo "MingW compiler $CXX not found"; exit 1) -DLLWRAP="${MINGWPREFIX}dllwrap --target=x86_64-w64-mingw32" +DLLWRAP="${MINGWPREFIX}dllwrap --target=x86_64-w64-mingw32 --dynamicbase --enable-auto-image-base" STRIP="${MINGWPREFIX}strip" #----------------------------------------------------------------------------- @@ -111,7 +111,8 @@ for p in $FILES; do $CXX $CXXINCS $CXXFLAGS $MC -c "${f%.dsp}.cpp" -o "${f%.dsp}.o" $DLLWRAP --driver-name $CXX --def ${f%.dsp}.def *.o $LIBS -static -o "${f%.dsp}$EXT" - $STRIP "${f%.dsp}$EXT" + # Read: https://beta.cycling74.com/t/error-998-loading-external-generated-with-faust2max6-on-windows/3327/10 + # $STRIP "${f%.dsp}$EXT" ) > /dev/null || exit cp "$TMP/${f%.dsp}$EXT" "$SRCDIR"