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

Check that zstd headers can be found before using a shared zstd library #9622

Merged
merged 1 commit into from Apr 6, 2021

Conversation

skylersaleh
Copy link
Contributor

Some users were struggling to build the Mac build of dolphin because Homebrew had installed a header-less version of the zstd library with Qt and were getting compilation errors that were difficult to track down.

This pull requests modifies the CMakeLists.txt so that it checks for header files for zstd before using the shared zstd library.

@JosJuice
Copy link
Member

JosJuice commented Apr 2, 2021

Where is HAVE_ZSTD_H getting defined?

Modify the CMakeLists.txt so that it doesn't try to use a shared zstd library
that doesn't have header files. This was a support issue on Macs because
homebrew was installing headerless zstd libraries with Qt.
@skylersaleh
Copy link
Contributor Author

skylersaleh commented Apr 2, 2021

@JosJuice Sorry about the embarrassing mistake, It is now defined in the commit.

@Rumi-Larry
Copy link

I assume having the headers without the library isn't possible. But if it is, then such a special case need to be handled, just in case.

@JosJuice
Copy link
Member

JosJuice commented Apr 2, 2021

There's no reason to have special handling for that case. It'll go to "Shared zstd not found, falling back to the static library", which is the correct thing to do.

@leoetlino leoetlino merged commit d96874a into dolphin-emu:master Apr 6, 2021
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants