[MacPorts] #61943: libsdl2 @2.0.14 +x11: Doesn't work properly without upstream XQuartz.app installed/with only MacPorts' `xorg-server` (was: libsdl2 @2.0.14 +x11: Doesn't build against MacPorts' GL)

MacPorts noreply at macports.org
Thu Dec 31 03:10:26 UTC 2020


#61943: libsdl2 @2.0.14 +x11: Doesn't work properly without upstream XQuartz.app
installed/with only MacPorts' `xorg-server`
----------------------+--------------------
  Reporter:  larb0b   |      Owner:  (none)
      Type:  defect   |     Status:  new
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:  2.6.4
Resolution:           |   Keywords:
      Port:  libsdl2  |
----------------------+--------------------
Description changed by larb0b:

Old description:

> MacPorts' libsdl2 X11 variant doesn't work with only MacPorts X11
> 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.

New description:

 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.

--

-- 
Ticket URL: <https://trac.macports.org/ticket/61943#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list