Cesium for unreal 2.11 Build error

PS D:\Project\cesium-unreal\extern> cmake -B build-win -S . -G “Visual Studio 17 2022” -DUNREAL_ENGINE_ROOT=“D:\UnrealEngine\UE_5.2”
– Using Unreal Engine installation at: D:\UnrealEngine\UE_5.2
– VCPKG_TRIPLET x64-windows-unreal
– VCPKG_OVERLAY_PORTS D:/Project/cesium-unreal/extern/vcpkg-overlays
– VCPKG_OVERLAY_TRIPLETS D:/Project/cesium-unreal/extern/vcpkg-overlays/triplets
– EZVCPKG v0.1 starting up
Website: GitHub - jherico/ezvcpkg
– EZVCPKG_BASEDIR envrionment variable not found and basedir not set, using default /.ezvcpkg
– EZVCPKG initializing
commit: 2024.11.16
repository: git@github.com:microsoft/vcpkg.git
local dir: /.ezvcpkg/2024.11.16
– EZVCPKG Building/Verifying package asyncplusplus using triplet x64-windows-unreal
– EZVCPKG Building/Verifying package expected-lite using triplet x64-windows-unreal
– EZVCPKG Building/Verifying package fmt using triplet x64-windows-unreal
– EZVCPKG Building/Verifying package glm using triplet x64-windows-unreal
– EZVCPKG Building/Verifying package rapidjson using triplet x64-windows-unreal
– EZVCPKG Building/Verifying package spdlog using triplet x64-windows-unreal
– EZVCPKG Building/Verifying package stb using triplet x64-windows-unreal
– EZVCPKG Building/Verifying package uriparser using triplet x64-windows-unreal
– EZVCPKG Building/Verifying package abseil using triplet x64-windows-unreal
– EZVCPKG Building/Verifying package draco using triplet x64-windows-unreal
– EZVCPKG Building/Verifying package ktx using triplet x64-windows-unreal
CMake Error at cesium-native/cmake/ezvcpkg/ezvcpkg.cmake:83 (message):
EZVCPKG failed with error 1
Call Stack (most recent call first):
cesium-native/cmake/ezvcpkg/ezvcpkg.cmake:184 (EZVCPKG_CHECK_RESULTS)
cesium-native/cmake/ezvcpkg/ezvcpkg.cmake:276 (EZVCPKG_BUILD)
cesium-native/cmake/ezvcpkg/ezvcpkg.cmake:290 (EZVCPKG_FETCH_IMPL)
cesium-native/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-unreal@4.3.0-beta1#1 – D:/Project/cesium-unreal/extern/vcpkg-overlays\ktx
Detecting compiler hash for triplet x64-windows-unreal…
– Automatically setting %HTTP(S)_PROXY% environment variables to “127.0.0.1:10794”.
Compiler found: D:/VisualStudio/VS2022/Community/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/cl.exe
Restored 0 package(s) from C:\Users\jingyubo\AppData\Local\vcpkg\archives in 107 us. Use --debug to see more details.
Installing 1/1 ktx:x64-windows-unreal@4.3.0-beta1#1…
Building ktx:x64-windows-unreal@4.3.0-beta1#1…
D:\Project\cesium-unreal\extern\vcpkg-overlays\triplets\x64-windows-unreal.cmake: info: loaded overlay triplet from here
D:/Project/cesium-unreal/extern/vcpkg-overlays\ktx: info: installing overlay port from here
– Using cached KhronosGroup-KTX-Software-v4.3.0-beta1.tar.gz.
– Cleaning sources at D:/.ezvcpkg/2024.11.16/buildtrees/ktx/src/.3.0-beta1-4964dfdc8e.clean. Use --editable to skip cleaning for the packages you specify.
– Extracting source D:/.ezvcpkg/2024.11.16/downloads/KhronosGroup-KTX-Software-v4.3.0-beta1.tar.gz
– Applying patch 0001-Use-vcpkg-zstd.patch
– Applying patch 0002-Fix-versioning.patch
– Applying patch 0003-mkversion.patch
– Applying patch 0004-quirks.patch
– Applying patch 0005-no-vendored-libs.patch
– Applying patch CESIUM-0001-do-not-define-_DEBUG.patch
– Applying patch CESIUM-0002-not-a-framework.patch
– Applying patch CESIUM-0003-ios-normal-header-path.patch
– Using source at D:/.ezvcpkg/2024.11.16/buildtrees/ktx/src/.3.0-beta1-4964dfdc8e.clean
– Found external ninja(‘1.12.1’).
– Configuring x64-windows-unreal-dbg
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
Command failed: D:/.ezvcpkg/2024.11.16/downloads/tools/cmake-3.30.1-windows/cmake-3.30.1-windows-i386/bin/cmake.exe D:/.ezvcpkg/2024.11.16/buildtrees/ktx/src/.3.0-beta1-4964dfdc8e.clean -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=D:/.ezvcpkg/2024.11.16/packages/ktx_x64-windows-unreal/debug -DFETCHCONTENT_FULLY_DISCONNECTED=ON -DKTX_VERSION_FULL=v4.3.0-beta1 -DKTX_FEATURE_TESTS=OFF -DKTX_FEATURE_LOADTEST_APPS=OFF -DKTX_FEATURE_STATIC_LIBRARY=1 -DKTX_FEATURE_TOOLS=OFF -DKTX_FEATURE_VK_UPLOAD=OFF -DCMAKE_DISABLE_FIND_PACKAGE_Vulkan=1 -DCMAKE_MAKE_PROGRAM=D:/VisualStudio/VS2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe -DBUILD_SHARED_LIBS=OFF -DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=D:/.ezvcpkg/2024.11.16/scripts/toolchains/windows.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-unreal -DVCPKG_SET_CHARSET_FLAG=ON -DVCPKG_PLATFORM_TOOLSET=v143 -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON -DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE -DCMAKE_VERBOSE_MAKEFILE=ON -DVCPKG_APPLOCAL_DEPS=OFF -DCMAKE_TOOLCHAIN_FILE=D:/.ezvcpkg/2024.11.16/scripts/buildsystems/vcpkg.cmake -DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON -DVCPKG_CXX_FLAGS=/Zp8 -DVCPKG_CXX_FLAGS_RELEASE= -DVCPKG_CXX_FLAGS_DEBUG= -DVCPKG_C_FLAGS=/Zp8 -DVCPKG_C_FLAGS_RELEASE= -DVCPKG_C_FLAGS_DEBUG= -DVCPKG_CRT_LINKAGE=dynamic -DVCPKG_LINKER_FLAGS= -DVCPKG_LINKER_FLAGS_RELEASE= -DVCPKG_LINKER_FLAGS_DEBUG= -DVCPKG_TARGET_ARCHITECTURE=x64 -DCMAKE_INSTALL_LIBDIR:STRING=lib -DCMAKE_INSTALL_BINDIR:STRING=bin -D_VCPKG_ROOT_DIR=D:/.ezvcpkg/2024.11.16 -D_VCPKG_INSTALLED_DIR=D:/.ezvcpkg/2024.11.16/installed -DVCPKG_MANIFEST_INSTALL=OFF -DCMAKE_MSVC_RUNTIME_LIBRARY:STRING=MultiThreadedDLL “-DCMAKE_CXX_FLAGS_DEBUG:STRING=/MD /Z7 /Ob0 /Od /RTC1” “-DCMAKE_C_FLAGS_DEBUG:STRING=/MD /Z7 /Ob0 /Od /RTC1”
Working Directory: D:/.ezvcpkg/2024.11.16/buildtrees/ktx/x64-windows-unreal-dbg
Error code: 1
See logs for more information:
D:.ezvcpkg\2024.11.16\buildtrees\ktx\config-x64-windows-unreal-dbg-CMakeCache.txt.log
D:.ezvcpkg\2024.11.16\buildtrees\ktx\config-x64-windows-unreal-dbg-out.log
D:.ezvcpkg\2024.11.16\buildtrees\ktx\config-x64-windows-unreal-dbg-err.log

Call Stack (most recent call first):
installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:287 (vcpkg_execute_required_process)
D:/Project/cesium-unreal/extern/vcpkg-overlays/ktx/portfile.cmake:44 (vcpkg_cmake_configure)
scripts/ports.cmake:196 (include)

error: building ktx:x64-windows-unreal failed with: BUILD_FAILED
See Troubleshoot build failures | Microsoft Learn for more information.
Elapsed time to handle ktx:x64-windows-unreal: 7.8 s
Please ensure you’re using the latest port files with git pull and vcpkg update.
Then check for known issues at:
GitHub · Where software is built
You can submit a new issue at:
Sign in to GitHub · GitHub

According to the log you posted, the information about what exactly caused this error should be contained in one of the following files:

config-x64-windows-unreal-dbg-err.log likely contains the information we need to debug this. Can you share the contents of this log file?

D:.ezvcpkg\2024.11.16\buildtrees\ktx\config-x64-windows-unreal-dbg-err.log
CMake Error at D:/.ezvcpkg/2024.11.16/downloads/tools/cmake-3.30.1-windows/cmake-3.30.1-windows-i386/share/cmake-3.30/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
Could NOT find Bash (missing: BASH_EXECUTABLE)

Hint: The project() command has not yet been called. It sets up
system-specific search paths.
Call Stack (most recent call first):
D:/.ezvcpkg/2024.11.16/downloads/tools/cmake-3.30.1-windows/cmake-3.30.1-windows-i386/share/cmake-3.30/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE)
cmake/modules/FindBash.cmake:96 (find_package_handle_standard_args)
CMakeLists.txt:9 (find_package)

========================================================================

Found the reason.
My git is not on C drive,I changed the git path to C drive.

FindBash.cmake file in the ktx package.
FindBash.cmake

First, look if GIT bash is installed

find_program (
BASH_EXECUTABLE
bash
PATHS
# Additional paths for Windows
“C:\Program Files\Git\bin”
NO_SYSTEM_ENVIRONMENT_PATH
)

if(NOT BASH_EXECUTABLE)

Fallback search in default locations

WSL bash did not work in my case :frowning:

find_program (
BASH_EXECUTABLE
bash
)
endif()

KTX requires bash. If WSL bash doesn’t work, please try installing Git for Windows, which includes Bash.
https://git-scm.com/downloads/win

I have git, but it still doesn’t work.
I’ve seen you in the topic of vcpkg error for more than one time, every way you provide has been proved doesn’t work and every mistake you mentioned i had never made, But I still meet this problem.

Not only ktx has error. When I first built it was draco and this time it was ktx. I skipped ktx but it still appears the same problem in openssl. More than one dependencies has met this problem when building by ezvcpkg.

@zhcnyuyang If you’d provide us some information on the errors you’re seeing we’d be happy to help!