cxong / cdogs-sdl

Classic overhead run-and-gun game
https://cxong.github.io/cdogs-sdl/
GNU General Public License v2.0
891 stars 114 forks source link

src/tests/cbehave/CMakeList.txt missing #114

Closed qubodup closed 11 years ago

qubodup commented 11 years ago

Hello,

a cmake file seems to be missing:

$ ./make.sh 
-- The C compiler identification is GNU 4.8.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found SDL: /usr/lib64/libSDLmain.a;/usr/lib64/libSDL.so;-lpthread (found version "1.2.15") 
-- Found SDL_mixer: /usr/lib64/libSDL_mixer.so (found version "1.2.12") 
CMake Error at tests/CMakeLists.txt:8 (add_subdirectory):
  The source directory

    /home/qubodup/src/git/cdogs-sdl/src/tests/cbehave

  does not contain a CMakeLists.txt file.

-- Configuring incomplete, errors occurred!
make: *** No targets specified and no makefile found.  Stop.

Current git, arch linux 64bit

cxong commented 11 years ago

cbehave is a submodule; did you perform a git submodule update when cloning? Your git client may also have an option to do that during the clone. Is cdogs-sdl/src/tests/cbehave completely empty or just missing the CMakeLists.txt?

qubodup commented 11 years ago

I did not. I'm not familiar with this command. How should I run it? Just executing the command git submodule update in git clone root doesn't seem to achieve anything.

The directory is empty except for an empty CMakeFiles directory.

cxong commented 11 years ago

try cd into cdogs-sdl/src/test/cbehave and performing a git pull. If that works you should see files such as cbehave.h, CMakeLists.txt, examples/.

qubodup commented 11 years ago

Thanks, there was a command missing: git submodule init. The following works:

git clone https://github.com/cxong/cdogs-sdl.git
cd cdogs-sdl
git submodule init
git submodule update
./make.sh

EDIT: perhaps add these commands to the building documentation?

I get an error at the end of make ( http://codepad.org/suMvP2TW ) but this looks like an OS-related issue and I'll check Arch's forums before reporting it.

cxong commented 11 years ago

There's a wiki page for getting started with development; it should have the git submodule init instructions. Which documentation were you following? How can the documentation be improved?

ghost commented 11 years ago

Maybe he meant ./make.sh instead of make.sh.