Closed evktalo closed 11 years ago
I've seen this problem before but in MinGW; not sure what the cause was. This is a long shot but try different ways of running make.sh
: ./make.sh
, or sh make.sh
, or bash make.sh
.
Reproduced in mint; the problem is the cmake execute_process
which is invoking sdl-config using sh. Removing the sh
argument fixes this particular problem, but I'm not sure if this will break mingw build.
Thanks! This worked, and another problem surfaced - I'll make a new issue.
--Eino
I'm following the build instructions on the wiki for Linux (Xubuntu 12.10). I have the dependencies and I've initialized and updated the submodules. When I run make.sh, there appears to be a problem with finding sdl-config (output below):
-- The C compiler identification is GNU 4.7.2 -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- 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/lib/x86_64-linux-gnu/libSDLmain.a;/usr/lib/x86_64-linux-gnu/libSDL.so;-lpthread
-- Found SDLMIXER: /usr/lib/x86_64-linux-gnu/libSDL_mixer.so
sh: 0: Can't open sdl-config sh: 0: Can't open sdl-config -- Configuring done -- Generating done -- Build files have been written to: /home/evktalo/devaus/cdogs-sdl make: *\ No targets specified and no makefile found. Stop.
I can run sdl-config from command line so it seems to be present in the system.
--Eino