rust-gamedev-kit icon indicating copy to clipboard operation
rust-gamedev-kit copied to clipboard

CMake Error: The source directory does not appear to contain CMakeLists.txt

Open paldepind opened this issue 11 years ago • 3 comments

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.

paldepind avatar Feb 26 '14 07:02 paldepind

Does running git submodule update --init fix it?

rlane avatar Feb 26 '14 07:02 rlane

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.

paldepind avatar Feb 26 '14 08:02 paldepind

I ended up doing ./build.sh instead and using the rustc one gets from that. Worked is expected :+1:

paldepind avatar Mar 05 '14 15:03 paldepind