Difference between revisions of "Compiling ScummVM/MinGW"

Jump to navigation Jump to search
no edit summary
(Clarify the situation with MinGW vs MinGW-w64)
(One intermediate revision by one other user not shown)
Line 164: Line 164:
Unzip the SDL2 archive in a folder, open MSYS, go to the SDL2 folder and issue this command to install the library:
Unzip the SDL2 archive in a folder, open MSYS, go to the SDL2 folder and issue this command to install the library:


  make install-package arch=i686-w64-mingw32 prefix=$PREFIX
  make install-package arch=i686-w64-mingw32 prefix=/mingw




Line 396: Line 396:
Then issue these commands to compile and install the library:
Then issue these commands to compile and install the library:


  CPPFLAGS=-D_WIN32_WINNT=0x400 cmake -G "MSYS Makefiles" -DCMAKE_INSTALL_PREFIX=$PREFIX -DCMAKE_BUILD_TYPE=Release -DENABLE_PROGRAMS=OFF -DENABLE_TESTING=OFF .
  CPPFLAGS=-D_WIN32_WINNT=0x400 cmake -G "MSYS Makefiles" -DCMAKE_INSTALL_PREFIX=/mingw -DCMAKE_BUILD_TYPE=Release -DENABLE_PROGRAMS=OFF -DENABLE_TESTING=OFF .
  make
  make
  make install
  make install
Line 438: Line 438:
Then issue these commands to compile and install the library:
Then issue these commands to compile and install the library:


  make install.all GLEW_PREFIX=$PREFIX GLEW_DEST=$PREFIX GLEW_NO_GLU=-DGLEW_NO_GLU
  make install.all GLEW_PREFIX=/mingw GLEW_DEST=/mingw GLEW_NO_GLU=-DGLEW_NO_GLU




Line 453: Line 453:
== Compiling with Console/Text Output ==
== Compiling with Console/Text Output ==


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 now compiles with console output. If for some reason you do NOT want console output (which was the default behavior until recently), use the follow flag when running the configure script:
<syntaxhighlight lang="diff">
./configure --disable-windows-console
--- a/configure
+++ b/configure
@@ -6037,6 +6037,7 @@
if test "$_windows_unicode" = yes; then
append_var DEFINES "-DUNICODE -D_UNICODE"
fi
+ LIBS=`echo $LIBS | sed -e 's/-mconsole//g' -e 's/-mwindows//g'
;;
riscos)
append_var CXXFLAGS "-mno-poke-function-name"
</syntaxhighlight>
 
Save it to your root directory and apply it with <code>patch -p1 -i path-to-patch.diff</code>.


== Ready to go! ==
== Ready to go! ==


OK this should be all of it (thankfully), so you should be good to go.
OK this should be all of it (thankfully), so you should be good to go.
213

edits

Navigation menu