ZSNES doesn't realize i have SDL installed when i run ./configure
Linux - GamesThis forum is for all discussion relating to gaming in Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
ZSNES doesn't realize i have SDL installed when i run ./configure
One of the requirements for building the zsnes source is that you have SDL installed. Zsnes gave me this error message when i ran ./configure to compile zsnes:
loading cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc -pipe -I. -Wall ) works... yes
checking whether the C compiler (gcc -pipe -I. -Wall ) is a cross-compiler... nochecking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for nasm... /usr/bin/nasm
checking for a BSD compatible install... /usr/bin/ginstall -c
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking how to run the C preprocessor... gcc -E
checking for X... libraries /usr/X11/lib, headers
checking for sdl-config... /usr/local/bin/sdl-config
checking for SDL - version >= 1.2.0... no
*** Could not run SDL test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means SDL was incorrectly installed
*** or that you have moved SDL since it was installed. In the latter case, you
*** may want to edit the sdl-config script: /usr/local/bin/sdl-config
configure: error: SDL >= 1.2.0 is required
here's where sdl installed itself: (I didn't do anything fancy when building SDL, just ./configure, make, make install)
bash-2.05b# whereis SDL
SDL: /usr/include/SDL
is there some variable i need to alter in some file that tells zsnes where to look? shouldn't it look in the default directory where SDL installs itself? Apparently it doesn't because I didn't do anything.
my version is 1.2.6, so i dont think that's the problem. looking in config.log, it looks like the problem is it can't find SDL.h. this file is in /usr/local/include/SDL. do i need to move it somewhere?
configure:1081: checking for X
configure:1148: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1224: gcc -o conftest -pipe -I. -Wall -D__LINUX__ conftest.c -lXt 1>&5
configure: In function `main':
configure:1220: warning: implicit declaration of function `XtMalloc'
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/../../../../i486-slackware-linux/bin/ld: cannot find -lXt
collect2: ld returned 1 exit status
configure: failed program was:
#line 1217 "configure"
#include "confdefs.h"
configure:1421:17: SDL.h: No such file or directory
configure: failed program was:
#line 1416 "configure"
#include "confdefs.h"
{
printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", 1, 2, 6);
printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
printf("*** best to upgrade to the required version.\n");
printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
printf("*** to point to the correct copy of sdl-config, and remove the file\n");
printf("*** config.cache before re-running configure\n");
return 1;
}
}
configure:1526: gcc -o conftest -pipe -I. -Wall -D__LINUX__ -I -I/usr/local/include/SDL -D_REENTRANT -L/usr/X11/lib conftest.c -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -lpthread 1>&5
configure:1514:17: SDL.h: No such file or directory
configure: failed program was:
#line 1511 "configure"
#include "confdefs.h"
#include <stdio.h>
#include "SDL.h"
int main(int argc, char *argv[])
{ return 0; }
#undef main
#define main K_and_R_C_main
Originally posted by LavaDevil94 you DO have the devel. headers installed, right? i think the command to get help for the options w/ configure is ./configure --help
Will doing a "make install" on SDL install the headers in the right place?
i've been having the same problem. if it helps, i was able to get around the ./configure problem by finding the lines that said #include "SDL.h" and putting the full path in there (/usr/include/SDL/SDL.h). but now it aborts when trying to make... it's like my machine doesn't know to look in that directory for header files or something.
....
gcc -pipe -I. -Wall -D__LINUX__ -I -I/usr/local/include/SDL -D_REENTRANT -D__OPENGL__ -Os -ffast-math -fomit-frame-pointer -fschedule-insns2 -s -march=pentiumpro -o chips/dsp1emu.o -c chips/dsp1emu.c
In file included from chips/dsp1emu.c:20:
gblhdr.h:95:25: SDL.h: No such file or directory
make: *** [chips/dsp1emu.o] Error 1
is there someplace that you can tell bash/gcc what paths to find header files in?
got around the configure problem by installing the SDL development headers....they're a separate package after all, available from the sdl site....www.libsdl.org. now i have another problem:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.