Fixed AVIF linkage on Windows#26762
Conversation
|
to test the PR i compiled libavif on windows using the output of cmake when compiling OpenCV also tested with with loaded libs by vcpkg |
|
I find the solution as dangerous. In case if I want to use custom libavif instead of system one it may lead to libraries mix. I support Maksim's proposal from the original ticket to use target name if it's avaliable. Also you need to take a look on IMPORTED_LOCATION property: https://cmake.org/cmake/help/latest/prop_tgt/IMPORTED_LOCATION.html. Most probably it's right way to go as hot fix. |
|
@asmorkalov let me work on this a bit more |
bc5a185 to
c6b76bc
Compare
c6b76bc to
0c9f1a5
Compare
0c9f1a5 to
6eb3263
Compare
|
@asmorkalov please review. I know it's not perfect but it's all I can do. |
|
This seems to resolve the issues at conda-forge |
|
@mshabunin @hmaarrfk what about updating also |
I strongly suggest you don't grow the scope of this PR to ensure it gets through. However, the exact workflow is up to the OpenCV team. I'm just an onlooker. |
|
@hmaarrfk OK. I noticed that in your build process, only webp was not found |
|
Thank you. i'll investigate and report back. |
@sturkmen72 feel free to fold into opencv#26762 but I would just like a dedicated patch to try.
Fixed AVIF linkage on Windows opencv#26762 Closes opencv#26747 ### Pull Request Readiness Checklist See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request - [x] I agree to contribute to the project under Apache 2 License. - [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV - [x] The PR is proposed to the proper branch - [x] There is a reference to the original bug report and related work - [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name. - [ ] The feature is well documented and sample code can be built with the project CMake
@sturkmen72 feel free to fold into opencv#26762 but I would just like a dedicated patch to try.
Closes #26747
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.