[Help] Compiling Cesium Unity

Hi there,
I’m trying to setup my dev setup to build the Cesium Unity in order to have proper platform files for the Vision OS for Unity. My goal would be to contribute based on this WIP PR WIP Added Vision Pro build support by handzlikchris · Pull Request #502 · CesiumGS/cesium-unity · GitHub

About my setup:

  • macOS 15.5
  • Cesium Unity 1.16 (clean, no changes to repo)
  • Unity 2022.3.62f1

I followed the step at cesium-unity/Documentation~/developer-setup.md at main · CesiumGS/cesium-unity · GitHub

  1. Setting up the development environment :white_check_mark:
  2. reinterop-reinterop-guide :white_check_mark:
  3. build-for-the-editor :cross_mark:
    The first compilation fails:
cmake -B build -S . -DCMAKE_BUILD_TYPE=Debug

-- The CXX compiler identification is AppleClang 17.0.0.17000013
-- The C compiler identification is AppleClang 17.0.0.17000013
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at extern/tidy-html5/CMakeLists.txt:20 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.


-- Configuring incomplete, errors occurred!

Workaround by updating tidy-html5/CMakeLists.txt. Now fails to build asyncplusplus:

make -B build -S . -DCMAKE_BUILD_TYPE=Debug
-> TIDY_SO_VERSION = 59. This is an ODD (development) release.
-- *** Debug Logging is NOT enabled.
-- *** Only building static library STATIC, version 5.9.14, date 2021.08.17
-- VCPKG_TRIPLET arm64-osx-unity
-- VCPKG_TARGET_TRIPLET 
-- VCPKG_OVERLAY_PORTS /Users/augmentit/gits/cesium-test/Packages/com.cesium.unity/native~/vcpkg/ports;/Users/augmentit/gits/cesium-test/Packages/com.cesium.unity/native~/extern/cesium-native/extern/vcpkg/ports
-- VCPKG_OVERLAY_TRIPLETS /Users/augmentit/gits/cesium-test/Packages/com.cesium.unity/native~/vcpkg/triplets
-- EZVCPKG v0.1 starting up
        Website: https://github.com/jherico/ezvcpkg
-- EZVCPKG_BASEDIR envrionment variable not found and basedir not set, using default /Users/augmentit/.ezvcpkg
-- EZVCPKG initializing
        commit:     2024.11.16
        repository: https://github.com/microsoft/vcpkg.git
        local dir:  /Users/augmentit/.ezvcpkg/2024.11.16
-- EZVCPKG Bootstrapping
-- Found Git: /opt/homebrew/bin/git (found version "2.44.0")
-- EZVCPKG Cloning repository
-- EZVCPKG Checking out commit 2024.11.16
-- EZVCPKG Bootstrapping vcpkg binary
-- EZVCPKG vcpkg bootstrap command: /Users/augmentit/.ezvcpkg/2024.11.16/bootstrap-vcpkg.sh
-- EZVCPKG vcpkg working dir: /Users/augmentit/.ezvcpkg/2024.11.16
-- EZVCPKG Building/Verifying package asyncplusplus using triplet arm64-osx-unity
CMake Error at extern/cesium-native/cmake/ezvcpkg/ezvcpkg.cmake:83 (message):
  EZVCPKG failed with error 1
Call Stack (most recent call first):
  extern/cesium-native/cmake/ezvcpkg/ezvcpkg.cmake:194 (EZVCPKG_CHECK_RESULTS)
  extern/cesium-native/cmake/ezvcpkg/ezvcpkg.cmake:286 (EZVCPKG_BUILD)
  extern/cesium-native/cmake/ezvcpkg/ezvcpkg.cmake:300 (EZVCPKG_FETCH_IMPL)
  extern/cesium-native/CMakeLists.txt:103 (ezvcpkg_fetch)

Log file (/Users/augmentit/.ezvcpkg/2024.11.16/buildtrees/asyncplusplus/config-arm64-osx-unity-out.log)

[1/2] "/opt/homebrew/bin/cmake" -E chdir ".." "/opt/homebrew/bin/cmake" "/Users/augmentit/.ezvcpkg/2024.11.16/buildtrees/asyncplusplus/src/989edd9fba-8ad1c3cc1a.clean" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=/Users/augmentit/.ezvcpkg/2024.11.16/packages/asyncplusplus_arm64-osx-unity" "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" "-DCMAKE_MAKE_PROGRAM=/Users/augmentit/.ezvcpkg/2024.11.16/downloads/tools/ninja/1.10.2-osx/ninja" "-DCMAKE_SYSTEM_NAME=Darwin" "-DBUILD_SHARED_LIBS=OFF" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=/Users/augmentit/.ezvcpkg/2024.11.16/scripts/toolchains/osx.cmake" "-DVCPKG_TARGET_TRIPLET=arm64-osx-unity" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=external" "-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=/Users/augmentit/.ezvcpkg/2024.11.16/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-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=arm64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=/Users/augmentit/.ezvcpkg/2024.11.16" "-D_VCPKG_INSTALLED_DIR=/Users/augmentit/.ezvcpkg/2024.11.16/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15" "-DCMAKE_OSX_ARCHITECTURES=arm64"
FAILED: ../CMakeCache.txt 
"/opt/homebrew/bin/cmake" -E chdir ".." "/opt/homebrew/bin/cmake" "/Users/augmentit/.ezvcpkg/2024.11.16/buildtrees/asyncplusplus/src/989edd9fba-8ad1c3cc1a.clean" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=/Users/augmentit/.ezvcpkg/2024.11.16/packages/asyncplusplus_arm64-osx-unity" "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" "-DCMAKE_MAKE_PROGRAM=/Users/augmentit/.ezvcpkg/2024.11.16/downloads/tools/ninja/1.10.2-osx/ninja" "-DCMAKE_SYSTEM_NAME=Darwin" "-DBUILD_SHARED_LIBS=OFF" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=/Users/augmentit/.ezvcpkg/2024.11.16/scripts/toolchains/osx.cmake" "-DVCPKG_TARGET_TRIPLET=arm64-osx-unity" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=external" "-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=/Users/augmentit/.ezvcpkg/2024.11.16/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-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=arm64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=/Users/augmentit/.ezvcpkg/2024.11.16" "-D_VCPKG_INSTALLED_DIR=/Users/augmentit/.ezvcpkg/2024.11.16/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15" "-DCMAKE_OSX_ARCHITECTURES=arm64"
CMake Error at CMakeLists.txt:21 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.


-- Configuring incomplete, errors occurred!
[2/2] "/opt/homebrew/bin/cmake" -E chdir "../../arm64-osx-unity-dbg" "/opt/homebrew/bin/cmake" "/Users/augmentit/.ezvcpkg/2024.11.16/buildtrees/asyncplusplus/src/989edd9fba-8ad1c3cc1a.clean" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Debug" "-DCMAKE_INSTALL_PREFIX=/Users/augmentit/.ezvcpkg/2024.11.16/packages/asyncplusplus_arm64-osx-unity/debug" "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" "-DCMAKE_MAKE_PROGRAM=/Users/augmentit/.ezvcpkg/2024.11.16/downloads/tools/ninja/1.10.2-osx/ninja" "-DCMAKE_SYSTEM_NAME=Darwin" "-DBUILD_SHARED_LIBS=OFF" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=/Users/augmentit/.ezvcpkg/2024.11.16/scripts/toolchains/osx.cmake" "-DVCPKG_TARGET_TRIPLET=arm64-osx-unity" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=external" "-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=/Users/augmentit/.ezvcpkg/2024.11.16/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-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=arm64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=/Users/augmentit/.ezvcpkg/2024.11.16" "-D_VCPKG_INSTALLED_DIR=/Users/augmentit/.ezvcpkg/2024.11.16/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15" "-DCMAKE_OSX_ARCHITECTURES=arm64"
FAILED: ../../arm64-osx-unity-dbg/CMakeCache.txt 
"/opt/homebrew/bin/cmake" -E chdir "../../arm64-osx-unity-dbg" "/opt/homebrew/bin/cmake" "/Users/augmentit/.ezvcpkg/2024.11.16/buildtrees/asyncplusplus/src/989edd9fba-8ad1c3cc1a.clean" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Debug" "-DCMAKE_INSTALL_PREFIX=/Users/augmentit/.ezvcpkg/2024.11.16/packages/asyncplusplus_arm64-osx-unity/debug" "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" "-DCMAKE_MAKE_PROGRAM=/Users/augmentit/.ezvcpkg/2024.11.16/downloads/tools/ninja/1.10.2-osx/ninja" "-DCMAKE_SYSTEM_NAME=Darwin" "-DBUILD_SHARED_LIBS=OFF" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=/Users/augmentit/.ezvcpkg/2024.11.16/scripts/toolchains/osx.cmake" "-DVCPKG_TARGET_TRIPLET=arm64-osx-unity" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=external" "-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=/Users/augmentit/.ezvcpkg/2024.11.16/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-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=arm64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=/Users/augmentit/.ezvcpkg/2024.11.16" "-D_VCPKG_INSTALLED_DIR=/Users/augmentit/.ezvcpkg/2024.11.16/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15" "-DCMAKE_OSX_ARCHITECTURES=arm64"
CMake Error at CMakeLists.txt:21 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.


-- Configuring incomplete, errors occurred!
ninja: build stopped: subcommand failed.

I did try to use the following command without result.

cmake -B build -S . -DCMAKE_BUILD_TYPE=Debug -DCMAKE_POLICY_VERSION_MINIMUM=4.0

I also tried to change version manually, but seems the file is always overwritten when using the Cesium make command.

I don’t have much experience with CMake, so please be kind if I missed something obvious. Any help would be very much appreciated.

Thanks for reading

Cheers

Ok sorry was a bit a dum question. I thought CMAKE 4.0 would be fine as it is written

  • CMake v3.18 or later (the latest version is recommended)

As said still learning CMake. Now I have an issue which seems to be related to git-lfs:
Output

-- EZVCPKG Bootstrapping vcpkg binary
-- EZVCPKG vcpkg bootstrap command: /Users/augmentit/.ezvcpkg/2024.11.16/bootstrap-vcpkg.sh
-- EZVCPKG vcpkg working dir: /Users/augmentit/.ezvcpkg/2024.11.16
-- EZVCPKG Building/Verifying package asyncplusplus using triplet arm64-osx-unity
-- EZVCPKG Building/Verifying package expected-lite using triplet arm64-osx-unity
-- EZVCPKG Building/Verifying package fmt using triplet arm64-osx-unity
-- EZVCPKG Building/Verifying package glm using triplet arm64-osx-unity
-- EZVCPKG Building/Verifying package rapidjson using triplet arm64-osx-unity
-- EZVCPKG Building/Verifying package spdlog using triplet arm64-osx-unity
-- EZVCPKG Building/Verifying package stb using triplet arm64-osx-unity
-- EZVCPKG Building/Verifying package ada-url using triplet arm64-osx-unity
-- EZVCPKG Building/Verifying package abseil using triplet arm64-osx-unity
-- EZVCPKG Building/Verifying package draco using triplet arm64-osx-unity
-- EZVCPKG Building/Verifying package ktx using triplet arm64-osx-unity
CMake Error at extern/cesium-native/cmake/ezvcpkg/ezvcpkg.cmake:83 (message):
  EZVCPKG failed with error 1
Call Stack (most recent call first):
  extern/cesium-native/cmake/ezvcpkg/ezvcpkg.cmake:194 (EZVCPKG_CHECK_RESULTS)
  extern/cesium-native/cmake/ezvcpkg/ezvcpkg.cmake:286 (EZVCPKG_BUILD)
  extern/cesium-native/cmake/ezvcpkg/ezvcpkg.cmake:300 (EZVCPKG_FETCH_IMPL)
  extern/cesium-native/CMakeLists.txt:103 (ezvcpkg_fetch)


*** The output from the command was:
Computing installation plan...
The following packages will be built and installed:
    ktx:arm64-osx-unity@4.3.2 -- /Users/augmentit/gits/cesium-test/Packages/com.cesium.unity/native~/vcpkg/ports/ktx
  * zstd:arm64-osx-unity@1.5.6
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet arm64-osx-unity...
Compiler found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
Restored 0 package(s) from /Users/augmentit/.cache/vcpkg/archives in 8.79 us. Use --debug to see more details.
Installing 1/2 zstd:arm64-osx-unity@1.5.6...
Building zstd:arm64-osx-unity@1.5.6...
/Users/augmentit/gits/cesium-test/Packages/com.cesium.unity/native~/vcpkg/triplets/arm64-osx-unity.cmake: info: loaded overlay triplet from here
Downloading facebook-zstd-v1.5.6.tar.gz
Successfully downloaded facebook-zstd-v1.5.6.tar.gz.
-- Extracting source /Users/augmentit/.ezvcpkg/2024.11.16/downloads/facebook-zstd-v1.5.6.tar.gz
-- Applying patch no-static-suffix.patch
-- Applying patch fix-emscripten-and-clang-cl.patch
-- Applying patch fix-windows-rc-compile.patch
-- Using source at /Users/augmentit/.ezvcpkg/2024.11.16/buildtrees/zstd/src/v1.5.6-6d2acef635.clean
-- Configuring arm64-osx-unity
-- Building arm64-osx-unity-dbg
-- Building arm64-osx-unity-rel
-- Fixing pkgconfig file: /Users/augmentit/.ezvcpkg/2024.11.16/packages/zstd_arm64-osx-unity/lib/pkgconfig/libzstd.pc
-- Fixing pkgconfig file: /Users/augmentit/.ezvcpkg/2024.11.16/packages/zstd_arm64-osx-unity/debug/lib/pkgconfig/libzstd.pc
-- Installing: /Users/augmentit/.ezvcpkg/2024.11.16/packages/zstd_arm64-osx-unity/share/zstd/usage
-- Performing post-build validation
Stored binaries in 1 destinations in 180 ms.
Elapsed time to handle zstd:arm64-osx-unity: 7.3 s
zstd:arm64-osx-unity package ABI: 65c1eefdc2b048ec4cc6df169552a6cacb090086106dff99fc4670ed354a86a5
Installing 2/2 ktx:arm64-osx-unity@4.3.2...
Building ktx:arm64-osx-unity@4.3.2...
/Users/augmentit/gits/cesium-test/Packages/com.cesium.unity/native~/vcpkg/triplets/arm64-osx-unity.cmake: info: loaded overlay triplet from here
/Users/augmentit/gits/cesium-test/Packages/com.cesium.unity/native~/vcpkg/ports/ktx: info: installing overlay port from here
-- Fetching https://github.com/KhronosGroup/KTX-Software.git v4.3.2...
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
    Command failed: /opt/homebrew/bin/git -c core.autocrlf=false archive 91ace88675ac59a97e55d0378a6602a9ae6b98bd -o /Users/augmentit/.ezvcpkg/2024.11.16/downloads/temp/ktx-91ace88675ac59a97e55d0378a6602a9ae6b98bd.tar.gz
    Working Directory: /Users/augmentit/.ezvcpkg/2024.11.16/downloads/git-tmp
    Error code: 128
    See logs for more information:
      /Users/augmentit/.ezvcpkg/2024.11.16/buildtrees/ktx/git-archive-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_from_git.cmake:167 (vcpkg_execute_required_process)
  /Users/augmentit/gits/cesium-test/Packages/com.cesium.unity/native~/vcpkg/ports/ktx/portfile.cmake:1 (vcpkg_from_git)
  scripts/ports.cmake:196 (include)


error: building ktx:arm64-osx-unity 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:arm64-osx-unity: 9.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+arm64-osx-unity&body=Copy+issue+body+from+%2FUsers%2Faugmentit%2F.ezvcpkg%2F2024.11.16%2Finstalled%2Fvcpkg%2Fissue_body.md


*** Content of log file: /Users/augmentit/.ezvcpkg/2024.11.16/buildtrees/ktx/git-archive-err.log:
Downloading lib/basisu/OpenCL/lib/OpenCL.lib (28 KB)
Error downloading object: lib/basisu/OpenCL/lib/OpenCL.lib (78fa1d0): Smudge error: Error downloading lib/basisu/OpenCL/lib/OpenCL.lib (78fa1d029af6cf82dadfdfefab82a53720780aa7e04cb20a9385d78fab8a2a1f): batch request: missing protocol: ""

Errors logged to '/Users/augmentit/.ezvcpkg/2024.11.16/downloads/git-tmp/.git/lfs/logs/20250528T161533.272058.log'.
Use `git lfs logs last` to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: lib/basisu/OpenCL/lib/OpenCL.lib: smudge filter lfs failed

CMake Error at extern/cesium-native/cmake/ezvcpkg/ezvcpkg.cmake:102 (message):
Call Stack (most recent call first):
  extern/cesium-native/cmake/ezvcpkg/ezvcpkg.cmake:194 (EZVCPKG_CHECK_RESULTS)
  extern/cesium-native/cmake/ezvcpkg/ezvcpkg.cmake:286 (EZVCPKG_BUILD)
  extern/cesium-native/cmake/ezvcpkg/ezvcpkg.cmake:300 (EZVCPKG_FETCH_IMPL)
  extern/cesium-native/CMakeLists.txt:103 (ezvcpkg_fetch)


-- Configuring incomplete, errors occurred!

/Users/augmentit/.ezvcpkg/2024.11.16/buildtrees/ktx/git-archive-err.log

Downloading lib/basisu/OpenCL/lib/OpenCL.lib (28 KB)
Error downloading object: lib/basisu/OpenCL/lib/OpenCL.lib (78fa1d0): Smudge error: Error downloading lib/basisu/OpenCL/lib/OpenCL.lib (78fa1d029af6cf82dadfdfefab82a53720780aa7e04cb20a9385d78fab8a2a1f): batch request: missing protocol: ""

Errors logged to '/Users/augmentit/.ezvcpkg/2024.11.16/downloads/git-tmp/.git/lfs/logs/20250528T161533.272058.log'.
Use `git lfs logs last` to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: lib/basisu/OpenCL/lib/OpenCL.lib: smudge filter lfs failed

/Users/augmentit/.ezvcpkg/2024.11.16/downloads/git-tmp/.git/lfs/logs/20250528T161533.272058.log

git-lfs/3.4.0 (GitHub; darwin arm64; go 1.20.5; git d06d6e9e)

git version 2.44.0

$ git-lfs filter-process

Error downloading object: lib/basisu/OpenCL/lib/OpenCL.lib (78fa1d0): Smudge error: Error downloading lib/basisu/OpenCL/lib/OpenCL.lib (78fa1d029af6cf82dadfdfefab82a53720780aa7e04cb20a9385d78fab8a2a1f): batch request: missing protocol: ""

missing protocol: ""

github.com/git-lfs/git-lfs/v3/errors.New

github.com/git-lfs/git-lfs/v3/errors/errors.go:62

github.com/git-lfs/git-lfs/v3/lfshttp.(*Client).NewRequest

github.com/git-lfs/git-lfs/v3/lfshttp/client.go:135

github.com/git-lfs/git-lfs/v3/lfsapi.(*Client).NewRequest

github.com/git-lfs/git-lfs/v3/lfsapi/client.go:13

github.com/git-lfs/git-lfs/v3/tq.(*tqClient).Batch

github.com/git-lfs/git-lfs/v3/tq/api.go:86

github.com/git-lfs/git-lfs/v3/tq.Batch

github.com/git-lfs/git-lfs/v3/tq/api.go:45

github.com/git-lfs/git-lfs/v3/tq.(*TransferQueue).enqueueAndCollectRetriesFor

github.com/git-lfs/git-lfs/v3/tq/transfer_queue.go:581

github.com/git-lfs/git-lfs/v3/tq.(*TransferQueue).collectBatches.func1

github.com/git-lfs/git-lfs/v3/tq/transfer_queue.go:470

runtime.goexit

runtime/asm_arm64.s:1172

batch request

github.com/git-lfs/git-lfs/v3/errors.newWrappedError

github.com/git-lfs/git-lfs/v3/errors/types.go:229

github.com/git-lfs/git-lfs/v3/errors.Wrap

github.com/git-lfs/git-lfs/v3/errors/errors.go:74

github.com/git-lfs/git-lfs/v3/tq.(*tqClient).Batch

github.com/git-lfs/git-lfs/v3/tq/api.go:88

github.com/git-lfs/git-lfs/v3/tq.Batch

github.com/git-lfs/git-lfs/v3/tq/api.go:45

github.com/git-lfs/git-lfs/v3/tq.(*TransferQueue).enqueueAndCollectRetriesFor

github.com/git-lfs/git-lfs/v3/tq/transfer_queue.go:581

github.com/git-lfs/git-lfs/v3/tq.(*TransferQueue).collectBatches.func1

github.com/git-lfs/git-lfs/v3/tq/transfer_queue.go:470

runtime.goexit

runtime/asm_arm64.s:1172

Error downloading lib/basisu/OpenCL/lib/OpenCL.lib (78fa1d029af6cf82dadfdfefab82a53720780aa7e04cb20a9385d78fab8a2a1f)

github.com/git-lfs/git-lfs/v3/errors.newWrappedError

github.com/git-lfs/git-lfs/v3/errors/types.go:229

github.com/git-lfs/git-lfs/v3/errors.Wrapf

github.com/git-lfs/git-lfs/v3/errors/errors.go:85

github.com/git-lfs/git-lfs/v3/lfs.(*GitFilter).downloadFile

github.com/git-lfs/git-lfs/v3/lfs/gitfilter_smudge.go:128

github.com/git-lfs/git-lfs/v3/lfs.(*GitFilter).Smudge

github.com/git-lfs/git-lfs/v3/lfs/gitfilter_smudge.go:79

github.com/git-lfs/git-lfs/v3/commands.smudge

github.com/git-lfs/git-lfs/v3/commands/command_smudge.go:128

github.com/git-lfs/git-lfs/v3/commands.filterCommand

github.com/git-lfs/git-lfs/v3/commands/command_filter_process.go:131

github.com/spf13/cobra.(*Command).execute

github.com/spf13/cobra@v1.6.0/command.go:920

github.com/spf13/cobra.(*Command).ExecuteC

github.com/spf13/cobra@v1.6.0/command.go:1040

github.com/spf13/cobra.(*Command).Execute

github.com/spf13/cobra@v1.6.0/command.go:968

github.com/git-lfs/git-lfs/v3/commands.Run

github.com/git-lfs/git-lfs/v3/commands/run.go:154

main.main

./git-lfs.go:34

runtime.main

runtime/proc.go:250

runtime.goexit

runtime/asm_arm64.s:1172

Smudge error

github.com/git-lfs/git-lfs/v3/errors.newWrappedError

github.com/git-lfs/git-lfs/v3/errors/types.go:229

github.com/git-lfs/git-lfs/v3/errors.NewSmudgeError

github.com/git-lfs/git-lfs/v3/errors/types.go:315

github.com/git-lfs/git-lfs/v3/lfs.(*GitFilter).Smudge

github.com/git-lfs/git-lfs/v3/lfs/gitfilter_smudge.go:96

github.com/git-lfs/git-lfs/v3/commands.smudge

github.com/git-lfs/git-lfs/v3/commands/command_smudge.go:128

github.com/git-lfs/git-lfs/v3/commands.filterCommand

github.com/git-lfs/git-lfs/v3/commands/command_filter_process.go:131

github.com/spf13/cobra.(*Command).execute

github.com/spf13/cobra@v1.6.0/command.go:920

github.com/spf13/cobra.(*Command).ExecuteC

github.com/spf13/cobra@v1.6.0/command.go:1040

github.com/spf13/cobra.(*Command).Execute

github.com/spf13/cobra@v1.6.0/command.go:968

github.com/git-lfs/git-lfs/v3/commands.Run

github.com/git-lfs/git-lfs/v3/commands/run.go:154

main.main

./git-lfs.go:34

runtime.main

runtime/proc.go:250

runtime.goexit

runtime/asm_arm64.s:1172

Current time in UTC:

2025-05-28 14:15:33

Environment:

LocalWorkingDir=/Users/augmentit/.ezvcpkg/2024.11.16/downloads/git-tmp

LocalGitDir=/Users/augmentit/.ezvcpkg/2024.11.16/downloads/git-tmp/.git

LocalGitStorageDir=/Users/augmentit/.ezvcpkg/2024.11.16/downloads/git-tmp/.git

LocalMediaDir=/Users/augmentit/.ezvcpkg/2024.11.16/downloads/git-tmp/.git/lfs/objects

LocalReferenceDirs=

TempDir=/Users/augmentit/.ezvcpkg/2024.11.16/downloads/git-tmp/.git/lfs/tmp

ConcurrentTransfers=8

TusTransfers=false

BasicTransfersOnly=false

SkipDownloadErrors=false

FetchRecentAlways=false

FetchRecentRefsDays=7

FetchRecentCommitsDays=0

FetchRecentRefsIncludeRemotes=true

PruneOffsetDays=3

PruneVerifyRemoteAlways=false

PruneRemoteName=origin

LfsStorageDir=/Users/augmentit/.ezvcpkg/2024.11.16/downloads/git-tmp/.git/lfs

AccessDownload=none

AccessUpload=none

DownloadTransfers=basic,lfs-standalone-file,ssh

UploadTransfers=basic,lfs-standalone-file,ssh

GIT_CEILING_DIRECTORIES=/Users/augmentit/.ezvcpkg/2024.11.16/buildtrees

GIT_CONFIG_PARAMETERS='core.autocrlf'='false'

GIT_PREFIX=

GIT_ASKPASS=/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh

GIT_EXEC_PATH=/opt/homebrew/opt/git/libexec/git-core

Client IP addresses:

fe80::146d:e49c:ed93:55ea 2a04:ee41:80:d28c:1cb2:957e:bf2c:ac27 2a04:ee41:80:d28c:8cb9:4cd1:6aae:305d 192.168.1.208

fe80::b05e:b7ff:fe1f:bd61

fe80::b05e:b7ff:fe1f:bd61

fe80::25df:1cbb:4196:5941

fe80::4a46:c8b7:cba5:353d

fe80::bb4b:e58:b4f:10c7

fe80::ce81:b1c:bd2c:69e

Found a workaround here:

As I don’t want to run test, etc I set the variable in my shell:

export GIT_LFS_SKIP_SMUDGE=1

And was able to build :slight_smile:

Thanks if you read me

Cheers

2 Likes

Hi,
The building process for the editor seems to work. Now from within Unity I’m trying to compile for the the platform (Vision OS). It fails and provided the following error in the build.log:

/Users/augmentit/gits/cesium-test/Packages/com.cesium.unity/native~/build-VisionOS/CesiumForUnityNative.xcodeproj: error: Signing for "CesiumForUnityNative-Runtime" requires a development team. Select a development team in the Signing & Capabilities editor. (in target 'CesiumForUnityNative-Runtime' from project 'CesiumForUnityNative')

I did set the Automatically Sing and Signing Team Id and in Unity PreferencesExternal ToolsXCode Default Settings

Unity console error says:

An error occurred while building CesiumForUnityNative. See /Users/augmentit/gits/cesium-test/Packages/com.cesium.unity/native~/build-VisionOS/build.log for details. The command-line was:
/Applications/CMake.app/Contents/bin/cmake --build "/Users/augmentit/gits/cesium-test/Packages/com.cesium.unity/native~/build-VisionOS" --config RelWithDebInfo --parallel 9 --target install
UnityEngine.Debug:LogError (object)
CesiumForUnity.CompileCesiumForUnityNative:RunAndLog (System.Diagnostics.ProcessStartInfo,System.IO.StreamWriter,string) (at ./Packages/com.cesium.unity/Editor/CompileCesiumForUnityNative.cs:593)
CesiumForUnity.CompileCesiumForUnityNative:BuildNativeLibrary (CesiumForUnity.CompileCesiumForUnityNative/LibraryToBuild) (at ./Packages/com.cesium.unity/Editor/CompileCesiumForUnityNative.cs:559)
CesiumForUnity.CompileCesiumForUnityNative:OnPostBuildPlayerScriptDLLs (UnityEditor.Build.Reporting.BuildReport) (at ./Packages/com.cesium.unity/Editor/CompileCesiumForUnityNative.cs:248)
UnityEditor.EditorApplication:Internal_CallDelayFunctions () (at /Users/bokken/build/output/unity/unity/Editor/Mono/EditorApplication.cs:399)

Any idea what I might be missing ?

How is the output from CesiumForUnityNative.xcodeproj signed? I think the error message means that the signing method for libCesiumForUnityNative-Runtime.a should match the Unity project signing.

I don’t know how it is signed. The build is triggered by Cesium scripts which links to Unity build events.
I’m trying to figure out where this is done. My guess is, this is done in the CompileCesiumForUnityNative.cs script.
Here is the full log if this helps:

-- The CXX compiler identification is AppleClang 17.0.0.17000013
-- The C compiler identification is AppleClang 17.0.0.17000013
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode-16.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode-16.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
CMake Deprecation Warning at extern/tidy-html5/CMakeLists.txt:20 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.


CMake Warning (dev) at extern/tidy-html5/CMakeLists.txt:26 (project):
  Policy CMP0048 is not set: project() command manages VERSION variables.
  Run "cmake --help-policy CMP0048" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The following variable(s) would be set to empty:

    PROJECT_VERSION
    PROJECT_VERSION_MAJOR
    PROJECT_VERSION_MINOR
    PROJECT_VERSION_PATCH
This warning is for project developers.  Use -Wno-dev to suppress it.

-> TIDY_SO_VERSION = 59. This is an ODD (development) release.
CMake Warning (dev) at extern/tidy-html5/CMakeLists.txt:96 (option):
  Policy CMP0077 is not set: option() honors normal variables.  Run "cmake
  --help-policy CMP0077" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  For compatibility with older versions of CMake, option is clearing the
  normal variable 'BUILD_SHARED_LIB'.
This warning is for project developers.  Use -Wno-dev to suppress it.
-- *** Debug Logging is NOT enabled.

CMake Warning (dev) at extern/tidy-html5/CMakeLists.txt:145 (option):
  Policy CMP0077 is not set: option() honors normal variables.  Run "cmake
  --help-policy CMP0077" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.
-- *** Also building DLL library SHARED, ver
  For compatibility with older versions of CMake, option is clearing the
  normal variable 'SUPPORT_CONSOLE_APP'.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- *** Generating man tidy.1 custom commands...
CMake Warning (dev) at extern/tidy-html5/CMakeLists.txt:528 (add_custom_command):
  Exactly one of PRE_BUILD, PRE_LINK, or POST_BUILD must be given.  Assuming
  POST_BUILD to preserve backward compatibility.

  Policy CMP0175 is not set: add_custom_command() rejects invalid arguments.
  Run "cmake --help-policy CMP0175" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at extern/tidy-html5/CMakeLists.txt:536 (add_custom_command):
  Exactly one of PRE_BUILD, PRE_LINK, or POST_BUILD must be given.  Assuming
  POST_BUILD to preserve backward compatibility.

  Policy CMP0175 is not set: add_custom_command() rejects invalid arguments.
  Run "cmake --help-policy CMP0175" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at extern/tidy-html5/CMakeLists.txt:544 (add_custom_command):
  The following keywords are not supported when using
  add_custom_command(TARGET): DEPENDS.

  Policy CMP0175 is not set: add_custom_command() rejects invalid arguments.
  Run "cmake --help-policy CMP0175" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at extern/tidy-html5/CMakeLists.txt:544 (add_custom_command):
  Exactly one of PRE_BUILD, PRE_LINK, or POST_BUILD must be given.  Assuming
  POST_BUILD to preserve backward compatibility.

  Policy CMP0175 is not set: add_custom_command() rejects invalid arguments.
  Run "cmake --help-policy CMP0175" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- VCPKG_TRIPLET arm64-osx-unity
-- VCPKG_TARGET_TRIPLET 
-- VCPKG_OVERLAY_PORTS /Users/augmentit/gits/cesium-test/Packages/com.cesium.unity/native~/vcpkg/ports;/Users/augmentit/gits/cesium-test/Packages/com.cesium.unity/native~/extern/cesium-native/extern/vcpkg/ports
-- VCPKG_OVERLAY_TRIPLETS /Users/augmentit/gits/cesium-test/Packages/com.cesium.unity/native~/vcpkg/triplets
-- EZVCPKG v0.1 starting up
	Website: https://github.com/jherico/ezvcpkg
-- EZVCPKG_BASEDIR envrionment variable not found and basedir not set, using default /Users/augmentit/.ezvcpkg
-- EZVCPKG initializing
	commit:     2024.11.16
	repository: https://github.com/microsoft/vcpkg.git
	local dir:  /Users/augmentit/.ezvcpkg/2024.11.16
-- EZVCPKG Building/Verifying package asyncplusplus using triplet arm64-osx-unity
-- EZVCPKG Building/Verifying package expected-lite using triplet arm64-osx-unity
-- EZVCPKG Building/Verifying package fmt using triplet arm64-osx-unity
-- EZVCPKG Building/Verifying package glm using triplet arm64-osx-unity
-- EZVCPKG Building/Verifying package rapidjson using triplet arm64-osx-unity
-- EZVCPKG Building/Verifying package spdlog using triplet arm64-osx-unity
-- EZVCPKG Building/Verifying package stb using triplet arm64-osx-unity
-- EZVCPKG Building/Verifying package ada-url using triplet arm64-osx-unity
-- EZVCPKG Building/Verifying package abseil using triplet arm64-osx-unity
-- EZVCPKG Building/Verifying package draco using triplet arm64-osx-unity
-- EZVCPKG Building/Verifying package ktx using triplet arm64-osx-unity
-- EZVCPKG Building/Verifying package modp-base64 using triplet arm64-osx-unity
-- EZVCPKG Building/Verifying package meshoptimizer using triplet arm64-osx-unity
-- EZVCPKG Building/Verifying package openssl using triplet arm64-osx-unity
-- EZVCPKG Building/Verifying package s2geometry using triplet arm64-osx-unity
-- EZVCPKG Building/Verifying package libjpeg-turbo using triplet arm64-osx-unity
-- EZVCPKG Building/Verifying package sqlite3 using triplet arm64-osx-unity
-- EZVCPKG Building/Verifying package tinyxml2 using triplet arm64-osx-unity
-- EZVCPKG Building/Verifying package libwebp using triplet arm64-osx-unity
-- EZVCPKG Building/Verifying package zlib-ng using triplet arm64-osx-unity
-- EZVCPKG Building/Verifying package picosha2 using triplet arm64-osx-unity
-- EZVCPKG Building/Verifying package earcut-hpp using triplet arm64-osx-unity
-- EZVCPKG Building/Verifying package cpp-httplib[core] using triplet arm64-osx-unity
-- EZVCPKG Building/Verifying package libmorton using triplet arm64-osx-unity
-- EZVCPKG Building/Verifying package zstd using triplet arm64-osx-unity
-- EZVCPKG Building/Verifying package doctest using triplet arm64-osx-unity
-- EZVCPKG done
-- CMAKE_TOOLCHAIN_FILE /Users/augmentit/.ezvcpkg/2024.11.16/scripts/buildsystems/vcpkg.cmake
-- PACKAGE_BASE_DIR /Users/augmentit/.ezvcpkg/2024.11.16/packages
-- PACKAGE_BUILD_DIR /Users/augmentit/.ezvcpkg/2024.11.16/installed/arm64-osx-unity
CMake Warning at extern/cesium-native/cmake/macros/setup_clang_tidy.cmake:47 (message):
  Could not find clang-tidy in your path.  clang-tidy targets will not be
  created
Call Stack (most recent call first):
  extern/cesium-native/CMakeLists.txt:238 (setup_clang_tidy)


-- Found zlib-ng: /Users/augmentit/.ezvcpkg/2024.11.16/installed/arm64-osx-unity/lib/libz-ng.a
-- Found modp_b64: /Users/augmentit/.ezvcpkg/2024.11.16/installed/arm64-osx-unity/lib/liblibmodpbase64.a
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found httplib: /Users/augmentit/.ezvcpkg/2024.11.16/installed/arm64-osx-unity/include/httplib.h (found version "0.18.0")
-- Found OpenSSL: /Users/augmentit/.ezvcpkg/2024.11.16/installed/arm64-osx-unity/lib/libcrypto.a (found version "3.4.0")
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
-- Configuring done (30.4s)
-- Generating done (0.3s)
CMake Warning:
  Manually-specified variables were not used by the project:

    OSX_DEPLOYMENT_TARGET


-- Build files have been written to: /Users/augmentit/gits/cesium-test/Packages/com.cesium.unity/native~/build-VisionOS


 BCommand line invocation:
    /Applications/Xcode-16.4.0.app/Contents/Developer/usr/bin/xcodebuild -project CesiumForUnityNative.xcodeproj build -target install -parallelizeTargets -configuration RelWithDebInfo -jobs 9 -hideShellScriptEnvironment

Build Preparation
Build task concurrency set to 9 via user default IDEBuildOperationMaxNumberOfConcurrentCompileTasks

ComputePackagePrebuildTargetDependencyGraph

CreateBuildRequest

SendProjectDescription

CreateBuildOperation

ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (25 targets)
    Target 'install' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'ALL_BUILD' in project 'CesiumForUnityNative'
    Target 'ALL_BUILD' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumRasterOverlays' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'Cesium3DTilesSelection' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumClientCommon' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'Cesium3DTilesReader' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'Cesium3DTilesWriter' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'Cesium3DTilesContent' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumIonClient' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumITwinClient' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumQuantizedMeshTerrain' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumForUnityNative-Runtime' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'ZERO_CHECK' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGeometry' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumUtility' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGltf' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGeospatial' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumJsonReader' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumJsonWriter' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGltfContent' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGltfReader' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGltfWriter' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumAsync' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'Cesium3DTiles' in project 'CesiumForUnityNative'
    Target 'CesiumGltfWriter' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumUtility' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGltf' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumJsonWriter' in project 'CesiumForUnityNative'
    Target 'CesiumForUnityNative-Runtime' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumRasterOverlays' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'Cesium3DTilesSelection' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumClientCommon' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'Cesium3DTilesReader' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'Cesium3DTilesContent' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumIonClient' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumQuantizedMeshTerrain' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'tidy-static' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'ZERO_CHECK' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGeometry' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumUtility' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGltf' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGeospatial' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumJsonReader' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumJsonWriter' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGltfContent' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGltfReader' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumAsync' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'Cesium3DTiles' in project 'CesiumForUnityNative'
    Target 'ZERO_CHECK' in project 'CesiumForUnityNative' (no dependencies)
    Target 'tidy-static' in project 'CesiumForUnityNative' (no dependencies)
    Target 'CesiumITwinClient' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumClientCommon' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGeometry' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumUtility' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGeospatial' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumAsync' in project 'CesiumForUnityNative'
    Target 'CesiumIonClient' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumClientCommon' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGeometry' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumUtility' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGeospatial' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumAsync' in project 'CesiumForUnityNative'
    Target 'Cesium3DTilesWriter' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumUtility' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumJsonWriter' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'Cesium3DTiles' in project 'CesiumForUnityNative'
    Target 'CesiumClientCommon' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumUtility' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumAsync' in project 'CesiumForUnityNative'
    Target 'Cesium3DTilesSelection' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumRasterOverlays' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'Cesium3DTilesReader' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'Cesium3DTilesContent' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumQuantizedMeshTerrain' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGeometry' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumUtility' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGltf' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGeospatial' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumJsonReader' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumJsonWriter' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGltfContent' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGltfReader' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumAsync' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'Cesium3DTiles' in project 'CesiumForUnityNative'
    Target 'CesiumQuantizedMeshTerrain' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGeometry' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumUtility' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGltf' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGeospatial' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumJsonReader' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumJsonWriter' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGltfContent' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGltfReader' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumAsync' in project 'CesiumForUnityNative'
    Target 'CesiumJsonWriter' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumUtility' in project 'CesiumForUnityNative'
    Target 'Cesium3DTilesContent' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'Cesium3DTilesReader' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGeometry' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumUtility' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGltf' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGeospatial' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumJsonReader' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGltfContent' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGltfReader' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumAsync' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'Cesium3DTiles' in project 'CesiumForUnityNative'
    Target 'Cesium3DTilesReader' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumUtility' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumJsonReader' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumAsync' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'Cesium3DTiles' in project 'CesiumForUnityNative'
    Target 'Cesium3DTiles' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumUtility' in project 'CesiumForUnityNative'
    Target 'CesiumRasterOverlays' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGeometry' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumUtility' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGltf' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGeospatial' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumJsonReader' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGltfContent' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGltfReader' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumAsync' in project 'CesiumForUnityNative'
    Target 'CesiumGltfContent' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGeometry' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumUtility' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGltf' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGeospatial' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumJsonReader' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGltfReader' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumAsync' in project 'CesiumForUnityNative'
    Target 'CesiumGltfReader' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumUtility' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGltf' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumJsonReader' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumAsync' in project 'CesiumForUnityNative'
    Target 'CesiumAsync' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumUtility' in project 'CesiumForUnityNative'
    Target 'CesiumJsonReader' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumUtility' in project 'CesiumForUnityNative'
    Target 'CesiumGeospatial' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumGeometry' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumUtility' in project 'CesiumForUnityNative'
    Target 'CesiumGltf' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumUtility' in project 'CesiumForUnityNative'
    Target 'CesiumGeometry' in project 'CesiumForUnityNative'
        ??? Explicit dependency on target 'CesiumUtility' in project 'CesiumForUnityNative'
    Target 'CesiumUtility' in project 'CesiumForUnityNative' (no dependencies)

GatherProvisioningInputs

CreateBuildDescription

ExecuteExternalTool /Applications/Xcode-16.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -arch arm64 -isysroot /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.5.sdk -x c++ -c /dev/null

ExecuteExternalTool /Applications/Xcode-16.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -arch arm64 -isysroot /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.5.sdk -x c -c /dev/null

ExecuteExternalTool /Applications/Xcode-16.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -isysroot /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS2.5.sdk -x c -c /dev/null

ExecuteExternalTool /Applications/Xcode-16.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -V

ExecuteExternalTool /Applications/Xcode-16.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld -version_details

Build description signature: b8df955d0da215c65a4e5556366b474d
Build description path: /Users/augmentit/gits/cesium-test/Packages/com.cesium.unity/native~/build-VisionOS/build/XCBuildData/b8df955d0da215c65a4e5556366b474d.xcbuilddata
note: Run script build phase 'Generate CMakeFiles/ZERO_CHECK' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'ZERO_CHECK' from project 'CesiumForUnityNative')
/Users/augmentit/gits/cesium-test/Packages/com.cesium.unity/native~/build-VisionOS/CesiumForUnityNative.xcodeproj: error: Signing for "CesiumForUnityNative-Runtime" requires a development team. Select a development team in the Signing & Capabilities editor. (in target 'CesiumForUnityNative-Runtime' from project 'CesiumForUnityNative')
note: Run script build phase 'CMake PostBuild Rules' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'CesiumForUnityNative-Runtime' from project 'CesiumForUnityNative')
note: Run script build phase 'CMake PostBuild Rules' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'install' from project 'CesiumForUnityNative')
note: Run script build phase 'Generate CMakeFiles/ALL_BUILD' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'ALL_BUILD' from project 'CesiumForUnityNative')
** BUILD FAILED **



 B

 B

From the logs above, I see the wrong triplets is used in vcpkg. It uses arm64-osx-unity where it should use the one I generated arm64-visionos-unity.

From what I can say, the issue come from the /native~/extern/cesium-native/cmake/detect-vcpkg-triplet.cmake which doesn’t have a definition for vision os, hence using osx. I’m currently trying to understand where the IOS, APPLE, etc preprocessor are defined.

Any help would be welcome :slight_smile:

Thanks for reading !

Hi @Merichbier,
Glad to see you were able to find solutions to some of your earlier problems!
It’s true that detect-vcpkg-triplet.cmake won’t detect VisionOS correctly, because it’s not a supported platform. Your best bet is probably to explicitly set the triplet via the VCPKG_TRIPLET environment variable.

As for IOS and APPLE, those are defined by CMake itself.