Merci d'aider un peu un newbie de l'unix!
la lib en question c'est sdl, je l'ai dl et compilee mais je peux pas faire de make install en simple user bien sur
je suis sous solaris 8 sur ultrasparc (a la fac ) et je voudrais faire tourner un emulateur megadrive (il s'appelle generator)
deja l'install de l'emu est vachement user friendly (m'enfin rien de dramatique du tout, suffit de lire le fichier INSTALL)
./configure --with-gtk --with-cmz80
la il m'a peter a la gueule en reclamant la lib sdl
un petit setenv SDL_CONFIG /users/iupsi/si1g13/sdl/SDL-1.2.6/sdl-config et ca va mieux
maintenant c'est
blah-blah-blah
....
....
checking for ANSI C header files... yes
checking for gtk-config... /usr/local/bin/gtk-config
checking for GTK - version >= 1.2.0... yes
checking for sdl-config... /users/iupsi/si1g13/sdl/SDL-1.2.6/sdl-config
checking for SDL - version >= 1.1.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: /users/iupsi/si1g13/sdl/SDL-1.2.6/sdl-config
configure: error: Generator needs sdk 1.1.0 or later
|
editer le sdl-config.. sont bien marrants!
au risque de surcharger la page :
#!/bin/sh
prefix=/usr/local
exec_prefix=${prefix}
exec_prefix_set=no
usage="\
Usage: sdl-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--cflags] [--libs] [--static-libs]"
if test $# -eq 0; then
echo "${usage}" 1>&2
exit 1
fi
while test $# -gt 0; do
case "$1" in
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) optarg= ;;
esac
case $1 in
--prefix=*)
prefix=$optarg
if test $exec_prefix_set = no ; then
exec_prefix=$optarg
fi
;;
--prefix)
echo $prefix
;;
--exec-prefix=*)
exec_prefix=$optarg
exec_prefix_set=yes
;;
--exec-prefix)
echo $exec_prefix
;;
--version)
echo 1.2.6
;;
--cflags)
echo -I${prefix}/include/SDL -D_REENTRANT
# The portable way of including SDL is #include "SDL.h"
#if test ${prefix}/include != /usr/include ; then
# # Handle oddities in Win32 path handling (assumes prefix)
# prefix=`echo ${prefix} | sed 's,^//\([A-Z]\),\1:,'`
#
# includes=-I${prefix}/include
#fi
#echo $includes -I${prefix}/include/SDL -D_REENTRANT
;;
--libs)
libdirs="-L${exec_prefix}/lib -R${exec_prefix}/lib"
echo $libdirs -lSDL -lpthread -lposix4 ;;
--static-libs)
# --libs|--static-libs)
libdirs="-L${exec_prefix}/lib -R${exec_prefix}/lib"
echo $libdirs -lSDL -lpthread -lposix4 -lm -ldl -L/usr/openwin/lib -R/usr/openwin/lib -lX11 -lXext
;;
*)
echo "${usage}" 1>&2
exit 1
;;
esac
shift
done
|