hardcoded paths in macOS GStreamer

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

hardcoded paths in macOS GStreamer

John Cortell

Hi, I had read that there had been a fix to the macOS build so that the distribution would work from any location. But it seems GStreamer 1.16 (the latest) still expects things to be in the default installation location.

As you can see below, If I rename the directory where GStreamer is installed, things don't work:
$ cd /Library/Frameworks $ GStreamer.framework/Commands/gst-play-1.0 some.mp3

<this works fine>

$ sudo mv GStreamer.framework GStreamer.framework.backup

$ GStreamer.framework.backup/Commands/gst-play-1.0 some.mp3

dyld: Library not loaded: /Library/Frameworks/GStreamer.framework/Versions/1.0/lib/libgstpbutils-1.0.0.dylib

 Referenced from: /Library/Frameworks/GStreamer.framework.backup/Commands/gst-play-1.0

 Reason: image not found

Trace/BPT trap: 5


I was planning to redistribute GStreamer with my application, but this will prevent me from doing that.

Any advice/insight?
John

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: hardcoded paths in macOS GStreamer

John Cortell
Found that what I need to do is all nicely documented: https://gstreamer.freedesktop.org/documentation/deploying/mac-osx.html

Now to see if I can make it work...

John

On Mon, May 6, 2019 at 4:49 PM John Cortell <[hidden email]> wrote:

Hi, I had read that there had been a fix to the macOS build so that the distribution would work from any location. But it seems GStreamer 1.16 (the latest) still expects things to be in the default installation location.

As you can see below, If I rename the directory where GStreamer is installed, things don't work:
$ cd /Library/Frameworks $ GStreamer.framework/Commands/gst-play-1.0 some.mp3

<this works fine>

$ sudo mv GStreamer.framework GStreamer.framework.backup

$ GStreamer.framework.backup/Commands/gst-play-1.0 some.mp3

dyld: Library not loaded: /Library/Frameworks/GStreamer.framework/Versions/1.0/lib/libgstpbutils-1.0.0.dylib

 Referenced from: /Library/Frameworks/GStreamer.framework.backup/Commands/gst-play-1.0

 Reason: image not found

Trace/BPT trap: 5


I was planning to redistribute GStreamer with my application, but this will prevent me from doing that.

Any advice/insight?
John

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel