Intel Mac, program links with 1.20.3 universal but won't load
Nirbheek Chauhan
nirbheek.chauhan at gmail.com
Wed Sep 21 08:31:11 UTC 2022
Hi,
It seems you are linking to the gstreamer macOS package as a
framework. This is supposed to work, but is currently broken as
detailed in this bug:
https://gitlab.freedesktop.org/gstreamer/cerbero/-/issues/338
What you want to do instead, is to link to the individual libraries in
the framework using pkg-config. For example:
$ export PKG_CONFIG_PATH=/Library/Frameworks/GStreamer.framework/Libraries/pkgconfig/
$ export PATH=/Library/Frameworks/GStreamer.framework/Commands/:$PATH
$ pkg-config --libs --cflags gstreamer-1.0
-I/Library/Frameworks/GStreamer.framework/include/gstreamer-1.0
-I/Library/Frameworks/GStreamer.framework/include
-I/Library/Frameworks/GStreamer.framework/include/glib-2.0
-I/Library/Frameworks/GStreamer.framework/lib/glib-2.0/include
-L/Library/Frameworks/GStreamer.framework/lib -lgstreamer-1.0
-Wl,-rpath,/Library/Frameworks/GStreamer.framework/lib -lgobject-2.0
-lglib-2.0 -lintl
Cheers,
Nirbheek
On Sun, Sep 18, 2022 at 6:22 PM Andy Robinson via gstreamer-devel
<gstreamer-devel at lists.freedesktop.org> wrote:
>
> I'm linking my program with the pre-built 1.20.3 universal GStreamer on
> an Intel Mac running the Ventura beta.
>
> It links ok but when I try to run it I get
>
> dyld[15684]: Library not loaded:
> /Users/matt/Projects/cerbero-1.20/build/dist/darwin_universal/x86_64/lib/GStreamer
> Referenced from: <F7FD40F2-F328-3F67-9D9E-7524DA9DD721>
> /Users/andy/TranscribeMacIntel/Transcribe!.app/Contents/MacOS/Transcribe!
> Reason: tried:
> '/Users/matt/Projects/cerbero-1.20/build/dist/darwin_universal/x86_64/lib/GStreamer'
> (no such file),
> '/System/Volumes/Preboot/Cryptexes/OS/Users/matt/Projects/cerbero-1.20/build/dist/darwin_universal/x86_64/lib/GStreamer'
> (no such file),
> '/Users/matt/Projects/cerbero-1.20/build/dist/darwin_universal/x86_64/lib/GStreamer'
> (no such file), '/usr/local/lib/GStreamer' (no such file),
> '/usr/lib/GStreamer' (no such file, not in dyld cache)
>
> Am I doing something wrong? Any suggestions welcome.
>
> Regards,
> Andy Robinson
More information about the gstreamer-devel
mailing list