arturoc / ofxGStreamer

openFrameworks addon to use gstreamer under osx and windows. This addon has no code and instead uses the addon_config.mk file to add the needed files from the core + the flags needed to compile using gstreamer
56 stars 28 forks source link

Linking fails with gstreamer 1.15.2 on oF 0.10.1 #23

Open woutgg opened 5 years ago

woutgg commented 5 years ago

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
arturoc commented 5 years ago

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

woutgg commented 5 years ago

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.