Skip to content
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

cmake: fix building cgame Windows dll with MinGW #2871

Merged
merged 1 commit into from May 12, 2024

Conversation

illwieckz
Copy link
Member

@illwieckz illwieckz commented Dec 11, 2023

On my end this fixes the build of Windows game dll with MinGW on Linux (Ubuntu 23.10), otherwise I get that:

[100%] Linking CXX shared module cgame-native-dll.dll
/usr/bin/x86_64-w64-mingw32-ld: windows-amd64-mingw_9/lib/libfreetype.a(ftgzip.o):(.text+0x17c): undefined reference to `inflateEnd'
/usr/bin/x86_64-w64-mingw32-ld: windows-amd64-mingw_9/lib/libfreetype.a(ftgzip.o):(.text+0x268): undefined reference to `inflate'
/usr/bin/x86_64-w64-mingw32-ld: windows-amd64-mingw_9/lib/libfreetype.a(ftgzip.o):(.text+0x4e8): undefined reference to `inflateReset'
/usr/bin/x86_64-w64-mingw32-ld: windows-amd64-mingw_9/lib/libfreetype.a(ftgzip.o):(.text+0x689): undefined reference to `inflateInit2_'
/usr/bin/x86_64-w64-mingw32-ld: windows-amd64-mingw_9/lib/libfreetype.a(ftgzip.o):(.text+0x7f3): undefined reference to `inflateEnd'
/usr/bin/x86_64-w64-mingw32-ld: windows-amd64-mingw_9/lib/libfreetype.a(ftgzip.o):(.text+0x920): undefined reference to `inflateInit2_'
/usr/bin/x86_64-w64-mingw32-ld: windows-amd64-mingw_9/lib/libfreetype.a(ftgzip.o):(.text+0x933): undefined reference to `inflate'
/usr/bin/x86_64-w64-mingw32-ld: windows-amd64-mingw_9/lib/libfreetype.a(ftgzip.o):(.text+0x942): undefined reference to `inflateEnd'
/usr/bin/x86_64-w64-mingw32-ld: windows-amd64-mingw_9/lib/libfreetype.a(ftgzip.o):(.text+0x99d): undefined reference to `inflateEnd'
collect2: error: ld returned 1 exit status

@illwieckz illwieckz added the A-Build When the code doesn't compile, or worse, compiles wrong label Dec 11, 2023
@slipher
Copy link
Contributor

slipher commented Dec 11, 2023

LGTM

@illwieckz illwieckz merged commit fd5f9c7 into master May 12, 2024
6 checks passed
@illwieckz illwieckz deleted the illwieckz/mingw-dll branch May 12, 2024 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Build When the code doesn't compile, or worse, compiles wrong
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants