norihiro / obs-text-pthread

Rich text source plugin for OBS Studio
GNU General Public License v2.0
41 stars 4 forks source link

Paths in dependent libraries not correctly relativized in Apple Silicon version #33

Closed codeman38 closed 2 years ago

codeman38 commented 2 years ago

The current Apple Silicon build of obs-text-pthread fails to load, because some of the library paths in the dependent libraries have not been relativized to \@loader_path and instead point to somewhere in \@@HOMEBREW_CELLAR\@@.

Here are the problematic links from the output of otool -L on the libraries:

libgio-2.0.0.dylib:
    @@HOMEBREW_CELLAR@@/glib/2.72.3/lib/libglib-2.0.0.dylib (compatibility version 7201.0.0, current version 7201.3.0)
    @@HOMEBREW_CELLAR@@/glib/2.72.3/lib/libgobject-2.0.0.dylib (compatibility version 7201.0.0, current version 7201.3.0)
    @@HOMEBREW_CELLAR@@/glib/2.72.3/lib/libgmodule-2.0.0.dylib (compatibility version 7201.0.0, current version 7201.3.0)

libgobject-2.0.0.dylib:
    @@HOMEBREW_CELLAR@@/glib/2.72.3/lib/libglib-2.0.0.dylib (compatibility version 7201.0.0, current version 7201.3.0)

libpangocairo-1.0.0.dylib:
    @@HOMEBREW_CELLAR@@/pango/1.50.8/lib/libpango-1.0.0.dylib (compatibility version 5001.0.0, current version 5001.8.0)
    @@HOMEBREW_CELLAR@@/pango/1.50.8/lib/libpangoft2-1.0.0.dylib (compatibility version 5001.0.0, current version 5001.8.0)

libxcb-render.0.dylib:
    @@HOMEBREW_CELLAR@@/libxcb/1.15/lib/libxcb.1.dylib (compatibility version 3.0.0, current version 3.0.0)

libxcb-shm.0.dylib:
    @@HOMEBREW_CELLAR@@/libxcb/1.15/lib/libxcb.1.dylib (compatibility version 3.0.0, current version 3.0.0)

Edited to add: Also, note that libgmodule and libpangoft2 are not actually included in the lib directory of the prebuilt plugin.

norihiro commented 2 years ago

Thank you for your issue report. I will revise packaging flow to fix the issue.