ofxGStreamer
ofxGStreamer copied to clipboard
Linking fails with gstreamer 1.15.2 on oF 0.10.1
The error occurs in a project created with the project generator (i.c.w. Xcode 8), without any modification:
ld: file not found: @rpath/lib/libgstcontroller-1.0.0.dylib for architecture x86_64
.
I am not sure what the proper fix would be, but applying the patch below provides at least a temporary solution.
--- addon_config.mk.org 2019-04-05 22:49:35.000000000 +0200
+++ addon_config.mk 2019-04-05 22:53:03.000000000 +0200
@@ -110,6 +110,7 @@
osx:
ADDON_LDFLAGS = -F/Library/Frameworks -framework GStreamer
+ ADDON_LDFLAGS += -L/Library/Frameworks/GStreamer.framework/Versions/Current/lib
ADDON_INCLUDES += /Library/Frameworks/GStreamer.framework/Headers
ADDON_SOURCES += $(OF_ROOT)/libs/openFrameworks/video/ofGstUtils.h
ADDON_SOURCES += $(OF_ROOT)/libs/openFrameworks/video/ofGstUtils.cpp
That's strange cause supposedly the framework should have everything needed in it but can you send a PR anyway with this changes?
Strange indeed, as it works with 1.7 but not with 1.15. I found at least one other person reporting the same issue. See PR #24.