Uninstalled build on mac OS

Nicolas Dufresne nicolas at ndufresne.ca
Sun Oct 1 23:03:30 UTC 2017


Le 1 oct. 2017 10:35 AM, "Jérôme Laheurte" <jerome at jeromelaheurte.net> a
écrit :


> 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…


--prefix should do, but it is not ideal. On OSX you can use relative path
if I remember well.


Best regards
Jérôme Laheurte


_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20171001/b92bab4d/attachment.html>


More information about the gstreamer-devel mailing list