microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
23.05k stars 6.36k forks source link

Building libavif Linker; unresolved external symbols from the libjpeg package #41666

Open Arebusf21 opened 2 days ago

Arebusf21 commented 2 days ago

Describe the bug When building an executable to test the libavif package, I get Linker unresolved external symbol errors, specifically from the included external libjpeg-turbo libraries.

Environment

To Reproduce Steps to reproduce the behavior:

  1. build a vs2022 Cmake project and target the libavif package.
  2. See the build log.

Expected behavior Should build without linker unresolved symbols.

Failure logs -(please attached failure logs) Session log.txt

Additional context Built as a Visual Studio 2022 CMake project to test building the libavif package. The project itself can be made available if needed the libjpeg libraries with the missing modules are in the out\build\x64-Debug\vcpkg_installed\x64-windows\bin folder but the linker can't find them. CMakeLists.txt file included: CMakeLists.txt

Mengna-Li commented 18 hours ago

@Arebusf21 The latest libavif version is 1.1.1, Please pull the master and try the new release. Thanks.