rlane / rust-gamedev-kit

Collection of libraries for game development in Rust
54 stars 2 forks source link

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

Open paldepind opened 10 years ago

paldepind commented 10 years ago

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.
rlane commented 10 years ago

Does running git submodule update --init fix it?

paldepind commented 10 years ago

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 commented 10 years ago

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