Opened 4 years ago

Last modified 3 years ago

#61943 assigned defect

libsdl2 @2.0.14 +x11: Doesn't work properly without upstream XQuartz.app installed/with only MacPorts' `xorg-server` — at Version 1

Reported by: larb0b (Larkin) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: haspatch Cc:
Port: libsdl2

Description (last modified by larb0b (Larkin))

MacPorts' libsdl2 X11 variant doesn't work with only MacPorts' xorg-server installed. When trying to actually use it, you get:

Failed to create window: Failed loading /opt/X11/lib/libGL.1.dylib: dlopen(/opt/X11/lib/libGL.1.dylib, 10): image not found!

This is because that path is hardcoded within src/video/x11/SDL_x11opengl.c in libsdl2. This could be rectified by changing the path to MacPorts' libGL.1.dylib (installed by the mesa port). mesa should probably also be made a dependency when building the x11 variant of libsdl2.

Change History (3)

comment:1 Changed 4 years ago by larb0b (Larkin)

Description: modified (diff)
Summary: libsdl2 @2.0.14 +x11: Doesn't build against MacPorts' GLlibsdl2 @2.0.14 +x11: Doesn't work properly without upstream XQuartz.app installed/with only MacPorts' `xorg-server`

Changed 4 years ago by larb0b (Larkin)

Attachment: Portfile-libsdl2.diff added

Patch adding mesa to the x11 variant's depends_lib

Changed 4 years ago by larb0b (Larkin)

Attachment: use-macports-gl.patch added

Patch changing the default GL dylib from XQuartz' to MacPorts'

Note: See TracTickets for help on using tickets.