I’ve installed SDL several times from source and SMPEG keeps complaining that
SDL isn’t installed properly…:
<snip!>
checking for sdl-config… /usr/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/bin/sdl-config
configure: error: *** SDL version 1.2.0 not found!
The stupid thing is I can run sdl-config from the command line and do
sdl-config --version and it returns 1.2.0… I can do sdl-config --cflags
and get the propery -I/usr/include/SDL etc…
What the heck is the problem?
(And yes i’m doing ./configure --prefix=/usr on both!)
-Shawn
checking for sdl-config… /usr/bin/sdl-config
[…]
The stupid thing is I can run sdl-config from the command line and do
sdl-config --version and it returns 1.2.0… I can do sdl-config --cflags
and get the propery -I/usr/include/SDL etc…
Make sure that /usr/bin/sdl-config isn’t from an older (1.0, 1.1) SDL.
Your 1.2 build might have (accidentally, even) dumped sdl-config into
/usr/local/bin, so when you run it, you’re getting the sdl-config in your
path, and not the one configure is running.
Just a guess, though.
–ryan.
Also, if you ever tried to comile the tree with an older version
there is a good chance that the configuration has been cached.
Hence removing the config.cache file might help …–
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
David J. Goehrig #include <stdclaimer.h> dave at cthulhu-burger.com
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Nah, I didn’t have SDL on my system at all until i just compiled and installed
1.2, i’ve double checked that the /usr/bin/sdl-config when ran with --version
returned 1.2.0 sdl-config is not /usr/local/bin it’s only in /usr/bin…
The configure script says it found the sdl-config but when it runs it it claims
it isn’t 1.2…
-ShawnOn Mon, May 21, 2001 at 12:56:46PM -0700, Ryan C. Gordon wrote:
checking for sdl-config… /usr/bin/sdl-config
[…]
The stupid thing is I can run sdl-config from the command line and do
sdl-config --version and it returns 1.2.0… I can do sdl-config --cflags
and get the propery -I/usr/include/SDL etc…
Make sure that /usr/bin/sdl-config isn’t from an older (1.0, 1.1) SDL.
Your 1.2 build might have (accidentally, even) dumped sdl-config into
/usr/local/bin, so when you run it, you’re getting the sdl-config in your
path, and not the one configure is running.
Just a guess, though.
–ryan.
Nah, i’ve never had an older version on this machine…
I’ve also tried deleting the config.cache…I know of this trick :)On Mon, May 21, 2001 at 10:47:55AM -0700, David Goehrig wrote:
Also, if you ever tried to comile the tree with an older version
there is a good chance that the configuration has been cached.
Hence removing the config.cache file might help …
–
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
David J. Goehrig #include <stdclaimer.h> dave at cthulhu-burger.com
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Also, if you ever tried to comile the tree with an older version
there is a good chance that the configuration has been cached.
Hence removing the config.cache file might help …
Sometimes removing config.cache is not enought…
Better to rm -r the whole source tree and decompress the archive again.
(And yes i’m doing ./configure --prefix=/usr on both!)
./configure --prefix=/usr/local is preferred.
Keep the /usr dir for the distribution packages only.
Anyway maybe your Linux distribution comes with an OLD
SDL package already installed.
check by doing :
ls -l /usr/bin/sdl-config
/usr/bin/sdl-config --version
ls -l /usr/lib/libSDL*
Cya,
G.GabrieleOn 21 May 2001 10:47:55 -0700, David Goehrig wrote:
EvilTypeGuy wrote:
Nah, I didn’t have SDL on my system at all until i just compiled and installed
1.2, i’ve double checked that the /usr/bin/sdl-config when ran with --version
returned 1.2.0 sdl-config is not /usr/local/bin it’s only in /usr/bin…
The configure script says it found the sdl-config but when it runs it it claims
it isn’t 1.2…
-Shawn
checking for sdl-config… /usr/bin/sdl-config
[…]
The stupid thing is I can run sdl-config from the command line and do
sdl-config --version and it returns 1.2.0… I can do sdl-config --cflags
and get the propery -I/usr/include/SDL etc…
Make sure that /usr/bin/sdl-config isn’t from an older (1.0, 1.1) SDL.
Your 1.2 build might have (accidentally, even) dumped sdl-config into
/usr/local/bin, so when you run it, you’re getting the sdl-config in your
path, and not the one configure is running.
Just a guess, though.
–ryan.
Maybe your /usr/local/bin is not included in your PATH, which is the
case on a Mandrake distribution 8 for example
Check this…
Bye
Lawouach> On Mon, May 21, 2001 at 12:56:46PM -0700, Ryan C. Gordon wrote: