You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The latest vcpkg release allows us to specify dependencies in the manifest file (vcpkg.json) in the project root directory. Since vcpkg already includes the 3.1.5 release in its ports, in theory developers should be able to add vcpkg.json to the root directory to add the argtable3 library:
In the CMakeLists.txt file above, we specify that we want to use the x64-windows-static triplet, which means that we want to use the static library of the dependencies.
Now we can run the following commands to download the dependencies and build the project:
However, CMake will show the following error messages:
CMake Error at build/vcpkg_installed/x64-windows-static/share/argtable3/Argtable3Config.cmake:76 (message):
The imported target "argtable3" references the file
"D:/Projects/testvcpkg/build/vcpkg_installed/x64-windows-static/debug/bin/argtable3.dll"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"D:/Projects/testvcpkg/build/vcpkg_installed/x64-windows-static/share/argtable3/Argtable3Config.cmake"
but not all the files it references.
Call Stack (most recent call first):
build/vcpkg_installed/x64-windows-static/share/argtable3/vcpkg-cmake-wrapper.cmake:1 (_find_package)
deps/vcpkg/scripts/buildsystems/vcpkg.cmake:815 (include)
CMakeLists.txt:15 (find_package)
The root cause of this problem is that argtable3 builds and installs both the dynamic and static libraries at the same time, while vcpkg expects argtable3 to install one of them. We need to modify how the CMake scripts export targets and install export files, so it won't conflict with vcpkg's design.
The text was updated successfully, but these errors were encountered:
I've submitted a pull request to vcpkg (microsoft/vcpkg#18325), and it has passed the code review. Now we're waiting for the pull request being merged.
The latest vcpkg release allows us to specify dependencies in the manifest file (
vcpkg.json
) in the project root directory. Since vcpkg already includes the 3.1.5 release in its ports, in theory developers should be able to addvcpkg.json
to the root directory to add the argtable3 library:And include the dependencies in the root
CMakeLists.txt
:In the
CMakeLists.txt
file above, we specify that we want to use thex64-windows-static
triplet, which means that we want to use the static library of the dependencies.Now we can run the following commands to download the dependencies and build the project:
However, CMake will show the following error messages:
The root cause of this problem is that argtable3 builds and installs both the dynamic and static libraries at the same time, while vcpkg expects argtable3 to install one of them. We need to modify how the CMake scripts export targets and install export files, so it won't conflict with vcpkg's design.
The text was updated successfully, but these errors were encountered: