CesiumNative源码编译报错

$ cmake -B build -S . -G "Visual Studio 17 2022"
-- VCPKG_TRIPLET x64-windows-static-md
-- VCPKG_OVERLAY_PORTS
-- VCPKG_OVERLAY_TRIPLETS
-- EZVCPKG v0.1 starting up
        Website: https://github.com/jherico/ezvcpkg
-- EZVCPKG_BASEDIR envrionment variable not found and basedir not set, using default C:\Users\datameta/.ezvcpkg
-- EZVCPKG initializing
        commit:     2024.11.16
        repository: https://github.com/microsoft/vcpkg.git
        local dir:  C:/Users/datameta/.ezvcpkg/2024.11.16
-- EZVCPKG Building/Verifying package asyncplusplus using triplet x64-windows-static-md
-- EZVCPKG Building/Verifying package expected-lite using triplet x64-windows-static-md
-- EZVCPKG Building/Verifying package fmt using triplet x64-windows-static-md
-- EZVCPKG Building/Verifying package glm using triplet x64-windows-static-md
-- EZVCPKG Building/Verifying package rapidjson using triplet x64-windows-static-md
-- EZVCPKG Building/Verifying package spdlog using triplet x64-windows-static-md
-- EZVCPKG Building/Verifying package stb using triplet x64-windows-static-md
-- EZVCPKG Building/Verifying package uriparser using triplet x64-windows-static-md
-- EZVCPKG Building/Verifying package abseil using triplet x64-windows-static-md
-- EZVCPKG Building/Verifying package draco using triplet x64-windows-static-md
-- EZVCPKG Building/Verifying package ktx using triplet x64-windows-static-md
CMake Error at cmake/ezvcpkg/ezvcpkg.cmake:83 (message):
  EZVCPKG failed with error 1
Call Stack (most recent call first):
  cmake/ezvcpkg/ezvcpkg.cmake:184 (EZVCPKG_CHECK_RESULTS)
  cmake/ezvcpkg/ezvcpkg.cmake:276 (EZVCPKG_BUILD)
  cmake/ezvcpkg/ezvcpkg.cmake:290 (EZVCPKG_FETCH_IMPL)
  CMakeLists.txt:66 (ezvcpkg_fetch)


*** The output from the command was:
Computing installation plan...
The following packages will be built and installed:
    ktx:x64-windows-static-md@4.3.2
Detecting compiler hash for triplet x64-windows-static-md...
Compiler found: C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/cl.exe
Restored 0 package(s) from C:\Users\datameta\AppData\Local\vcpkg\archives in 143 us. Use --debug to see more details.
Installing 1/1 ktx:x64-windows-static-md@4.3.2...
Building ktx:x64-windows-static-md@4.3.2...
C:\Users\datameta\.ezvcpkg\2024.11.16\triplets\community\x64-windows-static-md.cmake: info: loaded community triplet from here. Community triplets are not built in the curated registry and are thus less likely to succeed.
-- Using cached KhronosGroup-KTX-Software-v4.3.2.tar.gz.
-- Extracting source C:/Users/datameta/.ezvcpkg/2024.11.16/downloads/KhronosGroup-KTX-Software-v4.3.2.tar.gz
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
    Command failed: "D:/Program Files/CMake/bin/cmake.exe" -E tar xjf C:/Users/datameta/.ezvcpkg/2024.11.16/downloads/KhronosGroup-KTX-Software-v4.3.2.tar.gz
    Working Directory: C:/Users/datameta/.ezvcpkg/2024.11.16/buildtrees/ktx/src/v4.3.2-8d9e3937e6.clean.tmp
    Error code: 1
    See logs for more information:
      C:\Users\datameta\.ezvcpkg\2024.11.16\buildtrees\ktx\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/ktx/portfile.cmake:1 (vcpkg_from_github)
  scripts/ports.cmake:196 (include)


error: building ktx:x64-windows-static-md 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 ktx:x64-windows-static-md: 4.1 s
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+ktx
You can submit a new issue at:
  https://github.com/microsoft/vcpkg/issues/new?title=[ktx]+Build+error+on+x64-windows-static-md&body=Copy+issue+body+from+C%3A%2FUsers%2Fdatameta%2F.ezvcpkg%2F2024.11.16%2Finstalled%2Fvcpkg%2Fissue_body.md


*** Content of log file: C:\Users\datameta\.ezvcpkg\2024.11.16\buildtrees\ktx\extract-err.log:
cmake -E tar: warning: skipping symbolic link "KTX-Software-4.3.2/NOTICE.md" -> "LICENSE.md".
CMake Error: Problem with archive_write_header(): Invalid empty pathname
CMake Error: Current file:
CMake Error: Problem extracting tar: C:/Users/datameta/.ezvcpkg/2024.11.16/downloads/KhronosGroup-KTX-Software-v4.3.2.tar.gz

CMake Error at cmake/ezvcpkg/ezvcpkg.cmake:102 (message):
Call Stack (most recent call first):
  cmake/ezvcpkg/ezvcpkg.cmake:184 (EZVCPKG_CHECK_RESULTS)
  cmake/ezvcpkg/ezvcpkg.cmake:276 (EZVCPKG_BUILD)
  cmake/ezvcpkg/ezvcpkg.cmake:290 (EZVCPKG_FETCH_IMPL)
  CMakeLists.txt:66 (ezvcpkg_fetch)


-- Configuring incomplete, errors occurred!

原因是本地语言utf-8设置,把区域里Beta版的钩打上即可

在这里插入图片描述
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值