Installation error using vcpkg
Describe the bug Installation error using vcpkg, I followed the tutorial video to implement it.
vcpkg install drogon:x64-windows
output:
Building drogon:[email protected]...
-- Using cached an-tao-drogon-v1.9.7.tar.gz.
-- Extracting source C:/Users/kensm/source/vcpkg/downloads/an-tao-drogon-v1.9.7.tar.gz
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
Command failed: "C:/Program Files/CMake/bin/cmake.exe" -E tar xjf C:/Users/kensm/source/vcpkg/downloads/an-tao-drogon-v1.9.7.tar.gz
Working Directory: C:/Users/kensm/source/vcpkg/buildtrees/drogon/src/v1.9.7-6a37c2250f.clean.tmp
Error code: 1
See logs for more information:
C:\Users\kensm\source\vcpkg\buildtrees\drogon\extract-err.log
Call Stack (most recent call first):
scripts/cmake/vcpkg_extract_source_archive.cmake:120 (vcpkg_execute_required_process)
scripts/cmake/vcpkg_extract_source_archive_ex.cmake:8 (vcpkg_extract_source_archive)
scripts/cmake/vcpkg_from_github.cmake:113 (vcpkg_extract_source_archive_ex)
ports/drogon/portfile.cmake:1 (vcpkg_from_github)
scripts/ports.cmake:192 (include)
error: building drogon:x64-windows failed with: BUILD_FAILED
See https://learn.microsoft.com/vcpkg/troubleshoot/build-failures?WT.mc_id=vcpkg_inproduct_cli for more information.
Elapsed time to handle drogon:x64-windows: 173 ms
Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+drogon
You can submit a new issue at:
https://github.com/microsoft/vcpkg/issues/new?title=[drogon]+Build+error+on+x64-windows&body=Copy+issue+body+from+C%3A%2FUsers%2Fkensm%2Fsource%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md
stdout-x64-windows.log
-- Using cached an-tao-drogon-v1.9.7.tar.gz.
-- Extracting source C:/Users/kensm/source/vcpkg/downloads/an-tao-drogon-v1.9.7.tar.gz
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
Command failed: "C:/Program Files/CMake/bin/cmake.exe" -E tar xjf C:/Users/kensm/source/vcpkg/downloads/an-tao-drogon-v1.9.7.tar.gz
Working Directory: C:/Users/kensm/source/vcpkg/buildtrees/drogon/src/v1.9.7-6a37c2250f.clean.tmp
Error code: 1
See logs for more information:
C:\Users\kensm\source\vcpkg\buildtrees\drogon\extract-err.log
Call Stack (most recent call first):
scripts/cmake/vcpkg_extract_source_archive.cmake:120 (vcpkg_execute_required_process)
scripts/cmake/vcpkg_extract_source_archive_ex.cmake:8 (vcpkg_extract_source_archive)
scripts/cmake/vcpkg_from_github.cmake:113 (vcpkg_extract_source_archive_ex)
ports/drogon/portfile.cmake:1 (vcpkg_from_github)
scripts/ports.cmake:192 (include)
extract-err.log
CMake Error: Problem with archive_write_header(): Invalid empty pathname
CMake Error: Current file:
CMake Error: Problem extracting tar: C:/Users/kensm/source/vcpkg/downloads/an-tao-drogon-v1.9.7.tar.gz
Desktop (please complete the following information):
- OS: Windows 11 23H2
Thank you for your assistance. What should I do?
I faced the same issue when trying to use Drogon with vcpkg. To work around it, I cloned the repository and built it as a static library instead.
try run ./vcpkg.exe install drogon[ctl,mysql,orm,postgres,sqlite3]:x64=windows
run .\vcpkg.exe list drogon will give you drogon vcpkg available list
I encountered the same issue.
The cause appears to be an encoding issue.
When decompressing files in cmake, Chinese files cannot be decompressed.
My Windows language is set to ko-kr.
The problematic file is as follows.
lib/tests/integration_test/server/中文.txt
I successfully compiled vcpkg using the manually decompressed file.