Difference between revisions of "Compiling ScummVM/MinGW"

Jump to navigation Jump to search
→‎libmpeg2: Add patch for MinGW-x64 builds.
(→‎libmpeg2: Add patch for MinGW-x64 builds.)
Line 204: Line 204:
=== libmpeg2 ===
=== libmpeg2 ===


Unzip the libmepg2 archive in a folder. Open MSYS, go to the libmpeg2 folder.
Unzip the libmpeg2 archive into a folder. Open MSYS, go to the libmpeg2 folder.


Then issue these commands to compile the library:
Then issue these commands to compile the library:
Line 213: Line 213:
  make install prefix=/mingw
  make install prefix=/mingw


Note that if you are compiling x64 i.e. for a 64-bit target, then currently (v0.5.1), the following patch is needed:
<syntax type="diff">
--- libvo/video_out_dx.c.orig  2014-02-17 16:38:24.000000000 +0100
+++ libvo/video_out_dx.c        2014-02-17 16:39:34.000000000 +0100
@@ -92,7 +92,7 @@
    switch (message) {
    case WM_WINDOWPOSCHANGED:
-      instance = (dx_instance_t *) GetWindowLong (hwnd, GWL_USERDATA);
+      instance = (dx_instance_t *) GetWindowLongPtr (hwnd, GWLP_USERDATA);
        /* update the window position and size */
        point_window.x = 0;
@@ -173,7 +173,7 @@
    /* store a directx_instance pointer into the window local storage
      * (for later use in event_handler).
      * We need to use SetWindowLongPtr when it is available in mingw */
-    SetWindowLong (instance->window, GWL_USERDATA, (LONG) instance);
+    SetWindowLongPtr (instance->window, GWLP_USERDATA, (LONG) instance);
    ShowWindow (instance->window, SW_SHOW);
</syntax>


=== FLAC ===
=== FLAC ===
TrustedUser
574

edits

Navigation menu