SDL doesn't want to insall proprely ;-(

I do as INSTALL file describes :
configure ; make ; make install - everything seems to be ok - no errors.
but when I try to compile “test” it puts errors :

[cut]
checking for sdl-config… /usr/local/bin/sdl-config
checking for SDL - version >= 1.2.3… 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.3 not found!

According to FAQ:

Q: I installed SDL from source but can’t build or run SDL
applications

 line:

/usr/local/lib

cat /etc/ld.so.conf

/usr/local/lib
/usr/X11R6/lib
/usr/i386-slackware-linux/lib
/opt/gnome/lib

As root, run /sbin/ldconfig

/sbin/ldconfig

Make sure /usr/local/bin is in your execution path:
export PATH=$PATH:/usr/local/bin/

 Make sure that there aren't any other versions of SDL on your
 system, and that you have removed any file named "config.cache"
 from the directory of the software that refuses to build.

I also did it.

If all of the above still don’t work, send e-mail to the SDL
mailing list with the output from the following commands run from
the directory of the software that refuses to build:
* which sdl-config

which sdl-config

/usr/local/bin/sdl-config

  • sdl-config --version

sdl-config --version

1.2.3

  • locate libSDL

locate libSDL

/root/SDL-1.2.3/src/.libs/libSDL-1.2.so.0
/root/SDL-1.2.3/src/.libs/libSDL-1.2.so.0.0.3
/root/SDL-1.2.3/src/.libs/libSDL.a
/root/SDL-1.2.3/src/.libs/libSDL.la
/root/SDL-1.2.3/src/.libs/libSDL.lai
/root/SDL-1.2.3/src/.libs/libSDL.so
/root/SDL-1.2.3/src/libSDL.la
/root/SDL-1.2.3/src/main/libSDLmain.a
/usr/local/lib/libSDL-1.2.so.0
/usr/local/lib/libSDL-1.2.so.0.0.3
/usr/local/lib/libSDL.a
/usr/local/lib/libSDL.la
/usr/local/lib/libSDL.so
/usr/local/lib/libSDLmain.a

  • tail config.log

tail config.log

#include “SDL.h”

int main(int argc, char *argv[])
{ return 0; }
#undef main
#define main K_and_R_C_main

int main() {
return 0;
; return 0; }

Where is the problem? - what do I do wrong?
Thanks for help.A: Edit the file /etc/ld.so.conf, and make sure it contains the

I wrote an article on exactly this problem. It might help you too.

http://www.jimmysworld.org/techSupport/compilingSDL-1.2.0-badLink.htmlOn Mon, 2002-02-18 at 18:15, Lukasz Drop wrote:

I do as INSTALL file describes :
configure ; make ; make install - everything seems to be ok - no errors.
but when I try to compile “test” it puts errors :

[cut]
checking for sdl-config… /usr/local/bin/sdl-config
checking for SDL - version >= 1.2.3… 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.3 not found!

According to FAQ:

Q: I installed SDL from source but can’t build or run SDL
applications

 A: Edit the file /etc/ld.so.conf, and make sure it contains the
 line:

/usr/local/lib

cat /etc/ld.so.conf

/usr/local/lib
/usr/X11R6/lib
/usr/i386-slackware-linux/lib
/opt/gnome/lib

As root, run /sbin/ldconfig

/sbin/ldconfig

Make sure /usr/local/bin is in your execution path:
export PATH=$PATH:/usr/local/bin/

 Make sure that there aren't any other versions of SDL on your
 system, and that you have removed any file named "config.cache"
 from the directory of the software that refuses to build.

I also did it.

If all of the above still don’t work, send e-mail to the SDL
mailing list with the output from the following commands run from
the directory of the software that refuses to build:
* which sdl-config

which sdl-config

/usr/local/bin/sdl-config

  • sdl-config --version

sdl-config --version

1.2.3

  • locate libSDL

locate libSDL

/root/SDL-1.2.3/src/.libs/libSDL-1.2.so.0
/root/SDL-1.2.3/src/.libs/libSDL-1.2.so.0.0.3
/root/SDL-1.2.3/src/.libs/libSDL.a
/root/SDL-1.2.3/src/.libs/libSDL.la
/root/SDL-1.2.3/src/.libs/libSDL.lai
/root/SDL-1.2.3/src/.libs/libSDL.so
/root/SDL-1.2.3/src/libSDL.la
/root/SDL-1.2.3/src/main/libSDLmain.a
/usr/local/lib/libSDL-1.2.so.0
/usr/local/lib/libSDL-1.2.so.0.0.3
/usr/local/lib/libSDL.a
/usr/local/lib/libSDL.la
/usr/local/lib/libSDL.so
/usr/local/lib/libSDLmain.a

  • tail config.log

tail config.log

#include “SDL.h”

int main(int argc, char *argv[])
{ return 0; }
#undef main
#define main K_and_R_C_main

int main() {
return 0;
; return 0; }

Where is the problem? - what do I do wrong?
Thanks for help.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

End of Rant.

Jimmy
JimmysWorld.org
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20020218/573af914/attachment.pgp

Hello,

I have the same problem here (Slackware 8),
but it still doesn’t work.
Your article didn’t help. :frowning:
I did everthing the SDL FAQ said.
ALso this arts lib thing.

Any other ideas?

Jimmy wrote:> I wrote an article on exactly this problem. It might help you too.

http://www.jimmysworld.org/techSupport/compilingSDL-1.2.0-badLink.html

On Mon, 2002-02-18 at 18:15, Lukasz Drop wrote:

I do as INSTALL file describes :
configure ; make ; make install - everything seems to be ok - no errors.
but when I try to compile “test” it puts errors :

[cut]
checking for sdl-config… /usr/local/bin/sdl-config
checking for SDL - version >= 1.2.3… 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.3 not found!

According to FAQ:

Q: I installed SDL from source but can’t build or run SDL
applications

A: Edit the file /etc/ld.so.conf, and make sure it contains the
line:

/usr/local/lib

cat /etc/ld.so.conf

/usr/local/lib
/usr/X11R6/lib
/usr/i386-slackware-linux/lib
/opt/gnome/lib

As root, run /sbin/ldconfig

/sbin/ldconfig

Make sure /usr/local/bin is in your execution path:
export PATH=$PATH:/usr/local/bin/

Make sure that there aren't any other versions of SDL on your
system, and that you have removed any file named "config.cache"
from the directory of the software that refuses to build.

I also did it.

If all of the above still don’t work, send e-mail to the SDL
mailing list with the output from the following commands run from
the directory of the software that refuses to build:
* which sdl-config

which sdl-config

/usr/local/bin/sdl-config

  • sdl-config --version

sdl-config --version

1.2.3

  • locate libSDL

locate libSDL

/root/SDL-1.2.3/src/.libs/libSDL-1.2.so.0
/root/SDL-1.2.3/src/.libs/libSDL-1.2.so.0.0.3
/root/SDL-1.2.3/src/.libs/libSDL.a
/root/SDL-1.2.3/src/.libs/libSDL.la
/root/SDL-1.2.3/src/.libs/libSDL.lai
/root/SDL-1.2.3/src/.libs/libSDL.so
/root/SDL-1.2.3/src/libSDL.la
/root/SDL-1.2.3/src/main/libSDLmain.a
/usr/local/lib/libSDL-1.2.so.0
/usr/local/lib/libSDL-1.2.so.0.0.3
/usr/local/lib/libSDL.a
/usr/local/lib/libSDL.la
/usr/local/lib/libSDL.so
/usr/local/lib/libSDLmain.a

  • tail config.log

tail config.log

#include “SDL.h”

int main(int argc, char *argv[])
{ return 0; }
#undef main
#define main K_and_R_C_main

int main() {
return 0;
; return 0; }

Where is the problem? - what do I do wrong?
Thanks for help.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl