GNOME Bugzilla – Bug 761581
gst-uninstalled: fails to load plugins because of wrong rpath
Last modified: 2016-12-15 10:09:01 UTC
Build is fine but gst-inspect-1.0 leads to: "(gst-plugin-scanner:79479): GStreamer-WARNING **: Failed to load plugin" for all dynamic plugins. This this due to a wrong rpath: otool -L gst/.libs/libgstreamer-1.0.dylib : /usr/local/lib/libgstreamer-1.0.0.dylib (compatibility version 702.0.0, current version 702.0.0) /opt/local/lib/libgobject-2.0.0.dylib (compatibility version 4401.0.0, current version 4401.1.0) /opt/local/lib/libgmodule-2.0.0.dylib (compatibility version 4401.0.0, current version 4401.1.0) /opt/local/lib/libglib-2.0.0.dylib (compatibility version 4401.0.0, current version 4401.1.0) /opt/local/lib/libintl.8.dylib (compatibility version 10.0.0, current version 10.3.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0) libtool generates Makefile that contains: -rpath $(libdir) Unfortunately ./configure --disable-rpath does not work, see http://savannah.gnu.org/bugs/?func=detailitem&item_id=29151 (the bug is open for 6 years now) So a solution can be to run some post-build commands, using "install_name_tool" tool to fix this rpath. A WIP path will follow.
Created attachment 320483 [details] [review] WIP: change rpath on osx if using gst-uninstalled env On OS X, gst-uninstalled can useful when using MacPorts
hey, if I'm not mistaken, this problem stems from the fact that currently all GST libs use absolute linker paths on OSX. I just wrote up a separate bug entry for that here: https://bugzilla.gnome.org/show_bug.cgi?id=762140 By the way, it's a bit confusing that @rpath (as used by OSX's dyld), and libtool's rpath are completely different things, are they not? :)
Comment on attachment 320483 [details] [review] WIP: change rpath on osx if using gst-uninstalled env I am not sure this is something we want to maintain in our build tbh :)
So should this be marked as dup of bug #762140 then?
*** This bug has been marked as a duplicate of bug 762140 ***