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

Fix build with minizip-ng>=4.0.8 #13273

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JoshuaVandaele
Copy link

Minizip-ng 4.0.8 introduced a change where the compatibility layer was split into multiple source files. This caused dolphin to fail to build. This PR aims to remedy that.

I tested compilation and launching a game that uses a resource pack, which both worked fine for me.

@BhaaLseN
Copy link
Member

Can you update Externals/minizip-ng/minizip-ng.vcxproj too please, to make Windows builds happy? Basically the same changes you did to Externals/minizip-ng/CMakeLists.txt, except as XML. Just copy the elements and replace the files, preferably in the right group (source vs. header) and alphabetically sorted like the rest.

@JoshuaVandaele
Copy link
Author

JoshuaVandaele commented Jan 11, 2025

I'm not sure why the Windows build is still failing, I'm in the process of creating a virtual machine so I can debug that locally.

@dpeukert
Copy link
Contributor

dpeukert commented Jan 12, 2025

AFAICT, when using the system minizip-ng library, upstream does not provide the header files in the compat subdirectory, but directly in the root (not very familiar with C/C++, so my nomenclature might be a bit off), at least on my machine. Removing the compat/ prefix from the includes fixed the build for me when using the system library.

@JoshuaVandaele JoshuaVandaele force-pushed the master branch 2 times, most recently from 8ffed89 to 7c36a4e Compare January 12, 2025 12:19
@JoshuaVandaele
Copy link
Author

@dpeukert Could you please test if compiling with your system minizip-ng properly works now? I have tested locally but I'm not sure if I've done so correctly.

@dpeukert
Copy link
Contributor

@JoshuaVandaele Can confirm that I'm now able to build this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants