Partage
  • Partager sur Facebook
  • Partager sur Twitter

[OpenGL 3.3 / SDL 2.0] probleme d'installation

    1 septembre 2017 à 21:12:52

    Bonjour à tous,

    voilà, je suis sous linux et au moment de faire le make pour installer SDL 2.0 conformément au cours de Boouh, je tombe sur cette erreur :

    /bin/bash build-scripts/updaterev.sh
    /bin/bash ./libtool --mode=compile gcc -g -O3 -DUSING_GENERATED_CONFIG_H -I./include  -mmmx -m3dnow -msse -msse2 -fvisibility=hidden  -D_REENTRANT  -D_REENTRANT -DHAVE_LINUX_VERSION_H -Wall -MMD -MT build/SDL_x11dyn.lo -c src/video/x11/SDL_x11dyn.c -o build/SDL_x11dyn.lo
    libtool: compile:  gcc -g -O3 -DUSING_GENERATED_CONFIG_H -I./include -mmmx -m3dnow -msse -msse2 -fvisibility=hidden -D_REENTRANT -D_REENTRANT -DHAVE_LINUX_VERSION_H -Wall -MMD -MT build/SDL_x11dyn.lo -c src/video/x11/SDL_x11dyn.c  -fPIC -DPIC -o build/.libs/SDL_x11dyn.o
    src/video/x11/SDL_x11sym.h:202:17: error: conflicting types for '_XData32'
     SDL_X11_SYM(int,_XData32,(Display *dpy,register long *data,unsigned len),(dpy,data,len),return)
                     ^
    src/video/x11/SDL_x11dyn.c:112:5: note: in definition of macro 'SDL_X11_SYM'
      rc fn params { ret p##fn args ; }
         ^~
    In file included from src/video/x11/SDL_x11dyn.h:37:0,
                     from src/video/x11/SDL_x11dyn.c:27:
    /usr/include/X11/Xlibint.h:673:12: note: previous declaration of '_XData32' was here
     extern int _XData32(
                ^~~~~~~~
    Makefile:543 : la recette pour la cible « build/SDL_x11dyn.lo » a échouée
    make: *** [build/SDL_x11dyn.lo] Erreur 1
    

    j'ai cru comprendre sur internet qu'il fallait mettre un patch, mais je ne vois pas bien comment proceder. une idée?

    Merci

    • Partager sur Facebook
    • Partager sur Twitter
      22 septembre 2017 à 12:00:31

      J'ai rencontré le même problème, je l'ai résolu en ouvrant le fichier src/video/x11/SDL_x11sym.h et en commentant le paragraphe suivant vers la ligne 202 :

      #ifdef LONG64
      SDL_X11_MODULE(IO_32BIT)
      #if SDL_VIDEO_DRIVER_X11_CONST_PARAM_XDATA32
      SDL_X11_SYM(int,_XData32,(Display *dpy,register _Xconst long *data,unsigned len),(dpy,data,len),return)
      #else
      SDL_X11_SYM(int,_XData32,(Display *dpy,register long *data,unsigned len),(dpy,data,len),return)
      #endif
      SDL_X11_SYM(void,_XRead32,(Display *dpy,register long *data,long len),(dpy,data,len),)
      #endif



      • Partager sur Facebook
      • Partager sur Twitter

      [OpenGL 3.3 / SDL 2.0] probleme d'installation

      × Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
      × Attention, ce sujet est très ancien. Le déterrer n'est pas forcément approprié. Nous te conseillons de créer un nouveau sujet pour poser ta question.
      • Editeur
      • Markdown