Open main menu

Difference between revisions of "Compiling ScummVM/MinGW"

Updated console patch
(Updated console patch)
Line 447: Line 447:
By default ScummVM is compiled as a Windows subsystem application with no console output. If you need the console, you will need to apply the following patch:
By default ScummVM is compiled as a Windows subsystem application with no console output. If you need the console, you will need to apply the following patch:
<syntaxhighlight lang="diff">
<syntaxhighlight lang="diff">
diff --git a/configure b/configure
index 838c759b75..04cfd361dd 100755
--- a/configure
--- a/configure
+++ b/configure
+++ b/configure
@@ -6070,6 +6070,9 @@ case $_host_os in
@@ -6037,6 +6037,7 @@
append_var CXXFLAGS "-fdata-sections"
if test "$_windows_unicode" = yes; then
  append_var LDFLAGS "-Wl,--gc-sections"
append_var DEFINES "-DUNICODE -D_UNICODE"
  fi
+ LIBS=`echo $LIBS | sed -e 's/-mconsole//g' -e 's/-mwindows//g'
  ;;
  ;;
+ mingw*)
riscos)
+ LIBS=`echo $LIBS | sed -e 's/-mconsole//g' -e 's/-mwindows//g'`
append_var CXXFLAGS "-mno-poke-function-name"
+ ;;
n64)
# Move some libs down here, otherwise some symbols requires by libvorbis aren't found
# during linking stage
</syntaxhighlight>
</syntaxhighlight>


107

edits