rust-gamedev-kit
rust-gamedev-kit copied to clipboard
CMake Error: The source directory does not appear to contain CMakeLists.txt
It seems like the build files for glfw
is not being pulled in properly.
simon@localhost:~/projects/rust-gamedev-kit$ ./build-libraries.sh
++ dirname ./build-libraries.sh
+ cd .
++ pwd -P
+ RUST_GAMEDEV_KIT_ROOT=/home/simon/projects/rust-gamedev-kit
++ rustc -v
++ grep '^host:'
++ cut -d ' ' -f 2
+ TARGET=x86_64-unknown-linux-gnu
+ LIBDIR=/home/simon/projects/rust-gamedev-kit/install/lib/rustlib/x86_64-unknown-linux-gnu/lib
+ mkdir -p /home/simon/projects/rust-gamedev-kit/install/lib/rustlib/x86_64-unknown-linux-gnu/lib
+ set -eux
+ rm -rf glfw/build
+ mkdir glfw/build
+ cd glfw/build
+ cmake -DCMAKE_INSTALL_PREFIX:PATH=/home/simon/projects/rust-gamedev-kit/install -DBUILD_SHARED_LIBS:BOOL=ON -DGLFW_BUILD_EXAMPLES:BOOL=OFF -DGLFW_BUILD_TESTS:BOOL=OFF -DGLFW_BUILD_DOCS:BOOL=OFF ..
CMake Error: The source directory "/home/simon/projects/rust-gamedev-kit/glfw" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
Does running git submodule update --init
fix it?
Oops. I didn't know about Git submodules. Yes, that did indeed fix the issue.
But I get can't find crate for glfw
when trying to compile cubeland. I don't know what to do about that.
I ended up doing ./build.sh
instead and using the rustc
one gets from that. Worked is expected :+1: