| rem5 |
au configure de winex pas moyen de lui faire accepter accepter le SDL :
[c une mdk 8.2 avec le package libSDL1.2-devel installé...]
ligne de commande exécuté :
./configure --with-x --enable-sdldrv --enable-opengl --disable-trace --disable-debug
résultat :
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!
resultat dans le log :
configure:6842: checking Checking if the sdldrv should be built
configure:6847: result: yes
configure:6894: checking for sdl-config
configure:6912: found /usr/bin/sdl-config
configure:6925: result: /usr/bin/sdl-config
configure:6933: checking for SDL - version >= 1.2.0
configure:7020: gcc -o conftest -g -O2 -I/usr/include/SDL -D_REENTRANT -I/usr/X11R6/include conftest.c -lm -L/usr/lib -lSDL -lpthread -lm -lasound -L/usr/lib -ldl -lartsc -lpthread -L/usr/lib -lesd -laudiofile -lm -L/usr/X11R6/lib -lX11 -lXext -lXxf86vm -lXxf86dga -lXv -lXinerama -ldl >&5
/usr/bin/ld: cannot find -lesd
collect2: ld returned 1 exit status
configure:7023: $? = 1
configure: program exited with status 1
configure: failed program was:
#line 6957 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "SDL.h"
char*
my_strdup (char *str)
{
char *new_str;
if (str)
{
new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
strcpy (new_str, str);
}
else
new_str = NULL;
return new_str;
}
int main (int argc, char *argv[])
{
int major, minor, micro;
char *tmp_version;
/* This hangs on some systems (?)
system ("touch conf.sdltest" );
*/
{ FILE *fp = fopen("conf.sdltest", "a" ); if ( fp ) fclose(fp); }
/* HP/UX 9 (%@#!) writes to sscanf strings */
tmp_version = my_strdup("1.2.0" );
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
printf("%s, bad version string\n", "1.2.0" );
exit(1);
}
if ((1 > major) ||
((1 == major) && (2 > minor)) ||
((1 == major) && (2 == minor) && (3 >= micro)))
{
return 0;
}
else
{
printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", 1, 2, 3);
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;
}
}
Parce que bon j'ai une solution toute trouvé , je récupére les sources de SDL puis les compile et la j'aurais plus de prb mais comme le rpm est inclu je voit pas pq ca marche pas , et le prb se limite pas a winex mais a tt les prg qui cherchent SDL-devel
Mais j'aimerais eviter de compiler les sources, parce ca risque quand meme de foutre un peu la merde je pense meme si au final ca marche
Merci d'avance |