Uninstalled build on mac OS

Jérôme Laheurte jerome at jeromelaheurte.net
Sun Oct 1 14:27:02 UTC 2017


> Le 30 sept. 2017 à 16:18, Jérôme Laheurte <jerome at jeromelaheurte.net> a écrit :
> 
> My problem now is that gst-inspect fails to load basic plugins. Messages look like
> 
> (gst-plugin-scanner:30688): GStreamer-WARNING **: Failed to load plugin '/Users/fraca7/gst/master/gst-plugins-base/gst/typefind/.libs/libgsttypefindfunctions.so': dlopen(/Users/fraca7/gst/master/gst-plugins-base/gst/typefind/.libs/libgsttypefindfunctions.so, 2): Library not loaded: /usr/local/lib/libgstpbutils-1.0.0.dylib
>  Referenced from: /Users/fraca7/gst/master/gst-plugins-base/gst/typefind/.libs/libgsttypefindfunctions.so
>  Reason: image not found

For what it’s worth, running the following script after building « fixes » the issues:

#!/bin/bash

GST=$HOME/gst/master

find . -name "*.so" -o -name "*.dylib" | while read name; do
    otool -L "$name" | grep /usr/local/lib/libgst | sed -e 's/^ *$//' | cut -f1 -d\  | while read depname; do
	base=`basename $depname`
	realpath=`find . -name "$base"`
	install_name_tool -change $depname $realpath $name
    done
done

Not very subtle, and it would be nice to set the install name of .so and .dylib files to their uninstalled path in this mode, but I have no idea how to do it, so…

Best regards
Jérôme Laheurte

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20171001/0f4b260c/attachment.sig>


More information about the gstreamer-devel mailing list