-
-
Notifications
You must be signed in to change notification settings - Fork 315
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
Need help for linking some libraries in MSYS2 #1402
Comments
Any extra libs should be picked up by the pkg-config tool. So investigate what is happening with that on your system. |
I think the mechanism of |
Indeed, https://github.com/strukturag/libheif/blob/master/cmake/modules/FindFFMPEG.cmake doesn't leverage neither the CMake config files, nor pkg-config, so looks like any dependencies are not pulled in for static linking? Edit: had it been leveraging pkg-config instead, this is present and seems to be correct (note the
Similarly for
but that in theory should be picked up because https://github.com/strukturag/libheif/blob/master/cmake/modules/FindRAV1E.cmake is leveraging pkg-config? |
So in my MSYS2 UCRT64 both
and
seem ok, and the problem is further up in the CMake code (either CMake itself, LibFindmacros.cmake, and/or the custom libheif find modules). |
For starters, it doesn't look like LibFindMacros.cmake uses the
|
Btw, also found the need to patch the libde265.pc file for static linking, I might fix that in the MSYS2 package in the coming days:
And also this'll be needed for libheif clients: #1405 |
Backgournd: I'm implementing a process of building libheif for media-autobuild_suite.
Here's the current version of the process:
L4cache/media-autobuild_suite@7713905
There are some libraries that's difficult to link, I'll run the build and collect the error logs later.
Here's one I think I can understand:
rav1e & ffmpeg: there're some "extra libraries" that's not included in the linking command, like
bcrypt
for avutil.Although I only show one program's error log, other tools failed too, just with same error.
rav1e error log:
Brotli:
libtiff:
The text was updated successfully, but these errors were encountered: