[gpodder] Setting DYLD_LIBRARY_PATH on macOS gpodder

  • From: Adrian Petrescu <adrian@xxxxxxxxx>
  • To: gpodder@xxxxxxxxxxxxx
  • Date: Mon, 6 Jan 2020 11:39:15 -0500

Hi all,

I was attempting to set IINA (https://iina.io/) as my audio/video player
in gpodder. I put in the full path to the executable, and tried to Play.
IINA immediately crashed with a stack trace that included the following:

```
Application Specific Information:
dyld: launch, loading dependent libraries
DYLD_LIBRARY_PATH=/Applications/gPodder.app/Contents/Resources/lib

Dyld Error Message:
  Library not loaded: @rpath/libjpeg.9.dylib
  Referenced from: /Applications/IINA.app/Contents/MacOS/IINA
  Reason: Incompatible library version: IINA requires version 13.0.0 or later, 
but libjpeg.9.dylib provides version 12.0.0
```

So, as far as I can tell, gpodder is launching its external players with
an overridden library path (on Linux I assume it would be overriding
LD_LIBRARY_PATH, but I haven't actually tried it out; DYLD_LIBRARY_PATH
is just the macOS equivalent of that).

As it happens, gpodder's library path includes an outdated version of
libjpg that IINA can't link with, but this is merely one of many
possible symptoms. Overriding the external players' dynlibs can only
cause problems and I can't understand what benefits it could possibly
bring (unless gpodder is modifying these libraries in order to be able
to intercept things like listen state in order to sync that back up to
gpodder.net or something? That would be cool, but I doubt that is what
is happening).

Does anyone have any recommendations to work around this? And could this
behaviour be changed in a future release of gpodder?


--
Adrian

Other related posts:

  • » [gpodder] Setting DYLD_LIBRARY_PATH on macOS gpodder - Adrian Petrescu