-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Compilation fails when libpng does not support APNG #399
Comments
I ran into a similar issue earlier. vcpkg should pull in a version of libpng with the correct patchset, because libpng is a vcpkg dependency for Ladybird. This problem arises because clang is trying to get use system's libpng. The problem (on my system) was that I was overriding |
I'm neither using clang nor vcpkg. While I can |
We're in a similar situation to Firefox in this regard. APNG is supported by all the other browsers, so we want it as well. So whatever those distros do for Firefox wanting the APNG patch is the same deal we're going to ask for |
I'm not against APNG, I'm just asking for APNG support being guarded behind A browser without APNG is still better than no browser, right? |
This comment was marked as resolved.
This comment was marked as resolved.
vcpkg is a package manager, not a build system. its job is to find packages for us, and help us link to them. In a perfect world using a system package manager would work as well. That being said, we simply must have APNG. It is supported by everyone. pnggroup/libpng#267 We should be looking for a solution to get APNG working in more environments, rather than disabling the feature because some distros don't want to ship a patch they consider less than ideal. |
Is there at least some way to give a better error message here? |
I also had this issue on MacOS, and like @dzfrias said, it was because my system's libpng installation was getting included instead of the one installed by vcpkg. For me, the build system kept putting |
@ADKaster while vcpkg currently preferred by developers, it is not the only way to find packages. If you must have APNG you need to check its existence and show correct error message if it is not present |
Compilation fails when linking against a libpng without the apng patch set applied.
Would it be possible to detect this at compile-time and disable APNG support if libpng does not support it either?
The text was updated successfully, but these errors were encountered: