Closed feverzsj closed 4 months ago
Don't know what your problem is with libwebp since for me i'll get:
Installing 3/3 libwebp:x64-win-llvm-static-md...
Building libwebp[core,libwebpmux,nearlossless,simd,unicode]:x64-win-llvm-static-md...
-- [OVERLAY] Loading triplet configuration from: E:\all\my-vcpkg-triplets\x64-win-llvm-static-md.cmake
-- Using cached webmproject-libwebp-v1.3.0.tar.gz.
<snip>
Elapsed time to handle libwebp:x64-win-llvm-static-md: 9.2 s
Total install time: 11 s
libwebp provides CMake targets:
find_package(WebP CONFIG REQUIRED)
# basic usage
target_link_libraries(main PRIVATE WebP::webp WebP::webpdecoder WebP::webpdemux)
# for manipulating the WebP graphics format container (port feature libwebpmux)
target_link_libraries(main PRIVATE WebP::libwebpmux)
# for sharp RGB to YUV conversion
target_link_libraries(main PRIVATE WebP::sharpyuv)
The ICU issue is separate an is due to ICU invoking LINK directly instead of using LLD-LINK or clang for linkage. So that probably needs a port based build script fix or you need to disable LTO for ICU
I've tried lots of triplets, win/windows/lto/static, all failed at different step. LTO failed with LNK1107 error on building icu. Static failed with duplicate symbols in libwebp.