I compiled SDL-1.2.1 and installed it flawlessly, only when I try to
compile smpeg or even a test program it complains of not being able to
find SDL >= 1.2.0. Here is the results of the required commands as on the
FAQ page
*** Thanks in advance for all your help!
Sincerely,
Mark
[mduckworth at pikachu smpeg-0.4.3]$ rm config.cache
[mduckworth at pikachu smpeg-0.4.3]$
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 version 1.2.0 not found!
[mduckworth at pikachu smpeg-0.4.3]$ sdl-config --version
1.2.1
[mduckworth at pikachu smpeg-0.4.3]$ locate libSDL
/home/mduckworth/SDL-1.2.1/src/libSDL.la
/home/mduckworth/SDL-1.2.1/src/.libs/libSDL-1.2.so.0
/home/mduckworth/SDL-1.2.1/src/.libs/libSDL-1.2.so.0.0.1
/home/mduckworth/SDL-1.2.1/src/.libs/libSDL.a
/home/mduckworth/SDL-1.2.1/src/.libs/libSDL.la
/home/mduckworth/SDL-1.2.1/src/.libs/libSDL.lai
/home/mduckworth/SDL-1.2.1/src/.libs/libSDL.so
/home/mduckworth/SDL-1.2.1/src/main/libSDLmain.a
/usr/lib/libSDL-1.2.so.0
/usr/lib/libSDL-1.2.so.0.0.1
/usr/lib/libSDL.a
/usr/lib/libSDL.la
/usr/lib/libSDLmain.a
/usr/lib/libSDL.so
[mduckworth at pikachu smpeg-0.4.3]$
[mduckworth at pikachu smpeg-0.4.3]$ tail config.log
configure: failed program was:
#line 2258 “configure”
#include “confdefs.h”
#include <stdio.h>
#include “SDL.h”
int main() {
return 0;
; return 0; }
[mduckworth at pikachu smpeg-0.4.3]$
sdl-config is used for getting the library settings, sdl version…
It seems that you had sdl install in /usr/bin and you’ve installed sdl
1.2.1 in /usr/local/bin. When you run you build your apps it uses the old
sdl-config from /usr/bin. To fix it do the following:
mv /usr/bin/sdl-config /usr/bin/sdl-config.old
ln -s /usr/local/bin/sdl-config /usr/bin/sdl-config
OR
install sdl with PREFIX /usr not /usr/localOn Mon, 9 Jul 2001 mduckworth at pikachu.dynup.net wrote:
I compiled SDL-1.2.1 and installed it flawlessly, only when I try to
compile smpeg or even a test program it complains of not being able to
find SDL >= 1.2.0. Here is the results of the required commands as on the
FAQ page
*** Thanks in advance for all your help!
Sincerely,
Mark
[mduckworth at pikachu smpeg-0.4.3]$ rm config.cache
[mduckworth at pikachu smpeg-0.4.3]$
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 version 1.2.0 not found!
[mduckworth at pikachu smpeg-0.4.3]$ sdl-config --version
1.2.1
[mduckworth at pikachu smpeg-0.4.3]$ locate libSDL
/home/mduckworth/SDL-1.2.1/src/libSDL.la
/home/mduckworth/SDL-1.2.1/src/.libs/libSDL-1.2.so.0
/home/mduckworth/SDL-1.2.1/src/.libs/libSDL-1.2.so.0.0.1
/home/mduckworth/SDL-1.2.1/src/.libs/libSDL.a
/home/mduckworth/SDL-1.2.1/src/.libs/libSDL.la
/home/mduckworth/SDL-1.2.1/src/.libs/libSDL.lai
/home/mduckworth/SDL-1.2.1/src/.libs/libSDL.so
/home/mduckworth/SDL-1.2.1/src/main/libSDLmain.a
/usr/lib/libSDL-1.2.so.0
/usr/lib/libSDL-1.2.so.0.0.1
/usr/lib/libSDL.a
/usr/lib/libSDL.la
/usr/lib/libSDLmain.a
/usr/lib/libSDL.so
[mduckworth at pikachu smpeg-0.4.3]$
[mduckworth at pikachu smpeg-0.4.3]$ tail config.log
configure: failed program was:
#line 2258 “configure”
#include “confdefs.h”
#include <stdio.h>
#include “SDL.h”
int main() {
return 0;
; return 0; }
[mduckworth at pikachu smpeg-0.4.3]$
[mduckworth at pikachu smpeg-0.4.3]$ tail config.log
configure: failed program was:
#line 2258 “configure”
#include “confdefs.h”
#include <stdio.h>
#include “SDL.h”
int main() {
return 0;
; return 0; }
[mduckworth at pikachu smpeg-0.4.3]$
What we actually need from config.log is the error message that
tells what the problem was. Once you look at at that, you may be
able to figure out the problem yourself.
See ya!
-Sam Lantinga, Lead Programmer, Loki Software, Inc.