[MacPorts] #53271: libsdl2 + X11 fails to initialize X11 video driver

MacPorts noreply at macports.org
Mon Jan 9 23:41:35 UTC 2017


#53271: libsdl2 + X11 fails to initialize X11 video driver
--------------------------+---------------------
 Reporter:  DominusExult  |      Owner:
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:
 Keywords:  libsdl2 x11   |       Port:  libsdl2
--------------------------+---------------------
 libsdl2 2.0.5 is defective and needs SDL mercury revision 10781
 https://hg.libsdl.org/SDL/rev/7c19d6525105 to properly work.

 {{{
 Testcase:
 export MACOSX_DEPLOYMENT_TARGET=10.12
 export
 PATH=/opt/local/bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11R6/bin
 export CC="/usr/bin/clang"
 export CXX="/usr/bin/clang++"
 export CPPFLAGS='-I/opt/local/include'
 export CFLAGS='-I/opt/local/include'
 export CXXFLAGS='-I/opt/local/include'
 export LDFLAGS='-L/opt/local/lib'
 export PKG_CONFIG_PATH="/opt/local/lib/pkgconfig"
 export PKG_CONFIG=/opt/local/bin/pkg-config
 ./autogen.sh
 ./configure --prefix=/users/testuser/code/test/sdl2
 make clean
 make install
 cd test
 /.autogen.sh
 ./configure --with-sdl-prefix=/users/testuser/code/test/sdl2
 make clean
 make testsprite
 export SDL_VIDEODRIVER=x11
 ./testsprite
 }}}
 with SDL revision 10780 it will error with "Couldn't create window: No
 OpenGL support in video driver". Rev 10781 fixes that.
 My proposal is that MacPorts adds that revision as a patch until the next
 release of SDL2

--
Ticket URL: <https://trac.macports.org/ticket/53271>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list