Opened 7 years ago

Closed 6 years ago

#53271 closed defect (fixed)

libsdl2 + X11 fails to initialize X11 video driver

Reported by: DominusExult (Dominik Reichardt) Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: libsdl2

Description

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

Change History (3)

comment:1 Changed 7 years ago by DominusExult (Dominik Reichardt)

it's make testsprite2 and ./testsprite2

comment:2 Changed 7 years ago by mf2k (Frank Schima)

Cc: jmr@… removed
Keywords: libsdl2 x11 removed
Owner: set to jmroot
Status: newassigned

comment:3 Changed 6 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: assignedclosed

Presumably fixed since version 2.0.6.

Note: See TracTickets for help on using tickets.