-
Notifications
You must be signed in to change notification settings - Fork 500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Game doesn't compile with mingw-w64 targetting Windows on Linux #459
Comments
This was also discovered during the testing process of PR #456, which is why you see elements from that here in the screenshots. |
Are you sure it's using the correct |
mingw-w64 doesn't have an sdl2-config, so it has to use an sdl2-config from somewhere else |
It has one on MSYS2 but not here with the mingw-w64 libraries for Ubuntu |
Well that would point to your local /lib and /include directories and not the the mingw ones, which is why it can't find SDL.h. |
I wonder if this requires it's own set of ifdefs to fix |
It does not require any code changes to fix. At worst Makefile changes, but I believe this can probably be fixed on your side completely. |
This is using WSL and Ubuntu, whose mingw-w64 doesn't have sdl2-config as a package. |
The closest I have for an sdl2-config would be the mingw-w64 sdl2-config the AUR has |
Actually my bad, it doesn't invoke |
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:
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-w64Expected behavior
Game compiles successfully
Screenshots
![image](https://user-images.githubusercontent.com/17090935/110352281-209c2900-800c-11eb-9849-143c8ca90d7f.png)
![image](https://user-images.githubusercontent.com/17090935/110352310-2a259100-800c-11eb-87c2-601e555babea.png)
Desktop (please complete the following information):
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.
The text was updated successfully, but these errors were encountered: