Skip to content

Game doesn't compile with mingw-w64 targetting Windows on Linux #459

@rawr51919

Description

@rawr51919

Describe the bug
mingw-w64 fails to compile sm64ex when make is ran using the tools mingw-w64 provides for Ubuntu Linux to cross-compile the game for Windows.

To Reproduce
Steps to reproduce the behavior:

  1. Use make WINDOWS_BUILD=1 CROSS=x86_64-w64-mingw32- CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ SDLCONFIG=sdl2-config TEXTURE_FIX=1 NODRAWINGDISTANCE=1 DISCORDRPC=1 to attempt a compile using mingw-w64
  2. Game compiles until the final exe link
  3. We hit the linker errors described below.

Expected behavior
Game compiles successfully

Screenshots
image
image

Desktop (please complete the following information):

  • OS: [e.g. iOS] Windows 10 Pro Education + WSL2 (Ubuntu 20.04.2 LTS)

Additional context
Trying to add more options for us folks to compile the PC port easily so I looked further into mingw-w64 cross-compilation and this is as far as I've been able to go with it. I previously have been able to achieve this type of cross-compilation using MXE, both prepackaged and from source, so it's not like it's my first rodeo with this or anything.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions