-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
[libavif] Can't use static build after 1.1.1 update #42112
Labels
category:port-bug
The issue is with a library, which is something the port should already support
Comments
This is easily verified. The last update dropped a cmake config patch, but upstream still doesn't export include dirs. |
WangWeiLin-MV
added
category:port-bug
The issue is with a library, which is something the port should already support
and removed
requires:repro
The issue is not currently repro-able
labels
Nov 14, 2024
This was referenced Nov 14, 2024
The CMake config file is not working with features Please use the pc file instead: find_package(PkgConfig)
pkg_check_modules(libavif REQUIRED IMPORTED_TARGET libavif)
target_link_libraries(main PRIVATE PkgConfig::libavif) |
It can be fixed... |
Please test #42250. |
Confirmed working. Thank you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
category:port-bug
The issue is with a library, which is something the port should already support
CMakeLists.txt
:helloworld.cpp
:vcpkg.json
:When trying to build in macOS results in the following error:
helloworld.cpp:1:10: fatal error: 'avif/avif.h' file not found
. I believe the same would happen in Linux, but not Windows (didn't try w/ this minimal project but that's what I was seeing with a much larger project that uses libavif), with the difference presumably being that the library is static in macOS/Linux. If the override invcpkg.json
is set to version1.0.4#2
, it works fine.Comparing the CMake files in
vcpkg_installed/arm64-osx/share/libavif
from version1.0.4#2
to1.1.1
reveals that the following section disappeared:The text was updated successfully, but these errors were encountered: