drogonframework / drogon

Drogon: A C++14/17/20 based HTTP web application framework running on Linux/macOS/Unix/Windows
MIT License
11.65k stars 1.12k forks source link

Installation error using vcpkg #2196

Open kensma opened 3 weeks ago

kensma commented 3 weeks ago

Describe the bug Installation error using vcpkg, I followed the tutorial video to implement it.

vcpkg install drogon:x64-windows

output:

Building drogon:x64-windows@1.9.7...
-- 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):

Thank you for your assistance. What should I do?

ChandrapalSd commented 3 weeks ago

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.