➜ stardust-xr-server git:(main) ✗ cargo build
Compiling stardust-xr-schemas v0.1.0
Compiling stereokit-sys v1.0.4
error: failed to run custom build command for stereokit-sys v1.0.4
Caused by:
process didn't exit successfully: /home/lkong/workspace/rice/stardust-xr-server/target/debug/build/stereokit-sys-c1e4de3a8832151d/build-script-build (exit status: 101)
--- stdout
CMAKE_TOOLCHAIN_FILE_x86_64-unknown-linux-gnu = None
CMAKE_TOOLCHAIN_FILE_x86_64_unknown_linux_gnu = None
HOST_CMAKE_TOOLCHAIN_FILE = None
CMAKE_TOOLCHAIN_FILE = None
CMAKE_GENERATOR_x86_64-unknown-linux-gnu = None
CMAKE_GENERATOR_x86_64_unknown_linux_gnu = None
HOST_CMAKE_GENERATOR = None
CMAKE_GENERATOR = None
CMAKE_PREFIX_PATH_x86_64-unknown-linux-gnu = None
CMAKE_PREFIX_PATH_x86_64_unknown_linux_gnu = None
HOST_CMAKE_PREFIX_PATH = None
CMAKE_PREFIX_PATH = None
CMAKE_x86_64-unknown-linux-gnu = None
CMAKE_x86_64_unknown_linux_gnu = None
HOST_CMAKE = None
CMAKE = None
running: "cmake" "/home/lkong/.cargo/registry/src/github.com-1ecc6299db9ec823/stereokit-sys-1.0.4/StereoKit" "-DSK_BUILD_SHARED_LIBS=OFF" "-DSK_BUILD_TESTS=OFF" "-DSK_LINUX_EGL=ON" "-DSK_PHYSICS=OFF" "-DCMAKE_INSTALL_PREFIX=/home/lkong/workspace/rice/stardust-xr-server/target/debug/build/stereokit-sys-21e5226600d182e3/out" "-DCMAKE_C_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_C_COMPILER=/usr/bin/cc" "-DCMAKE_CXX_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_CXX_COMPILER=/usr/bin/c++" "-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_ASM_COMPILER=/usr/bin/cc" "-DCMAKE_BUILD_TYPE=Debug"
-- Configuring incomplete, errors occurred!
See also "/home/lkong/workspace/rice/stardust-xr-server/target/debug/build/stereokit-sys-21e5226600d182e3/out/build/CMakeFiles/CMakeOutput.log".
--- stderr
CMake Error at CMakeLists.txt:90 (CPMAddPackage):
Unknown CMake command "CPMAddPackage".
thread 'main' panicked at '
command did not execute successfully, got: exit status: 1
build script failed, must exit now', /home/lkong/.cargo/registry/src/github.com-1ecc6299db9ec823/cmake-0.1.48/src/lib.rs:975:5
note: run with RUST_BACKTRACE=1
environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: build failed
stereokit 0.20 is about 2yrs old on crates.io. maybe bump it will solve the issue?