ofxGStreamer icon indicating copy to clipboard operation
ofxGStreamer copied to clipboard

Linking fails with gstreamer 1.15.2 on oF 0.10.1

Open woutgg opened this issue 5 years ago • 2 comments

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

woutgg avatar Apr 05 '19 20:04 woutgg

That's strange cause supposedly the framework should have everything needed in it but can you send a PR anyway with this changes?

arturoc avatar Apr 06 '19 09:04 arturoc

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.

woutgg avatar Apr 06 '19 15:04 woutgg