-
Notifications
You must be signed in to change notification settings - Fork 535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Various build fixes #7
Conversation
…file And they are only a runtime dependency, no build dependency.
They will fail the build too easily with external headers and don't do what one would expect. Instead let autoconf figure out the right compiler flags for using a standard conformant C compiler.
owr_local_media_source.c: In function 'owr_local_media_source_get_pad': owr_local_media_source.c:119:10: error: 'source' may be used uninitialized in this function [-Werror=maybe-uninitialized] if (!gst_element_link(a, b)) \ ^ owr_local_media_source.c:296:17: note: 'source' was declared here GstElement *source, *capsfilter = NULL, *tee;
@@ -18,11 +19,10 @@ LIBOPENWEBRTC_CFLAGS="-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_32 -DGLIB_VERSI | |||
AC_SUBST(LIBOPENWEBRTC_CFLAGS) | |||
|
|||
PKG_CHECK_MODULES(GLIB, [glib-2.0, gobject-2.0, gmodule-2.0, gthread-2.0]) | |||
PKG_CHECK_MODULES(GSTREAMER, [gstreamer-1.0 >= 1.0.10 gstreamer-rtp-1.0 >= 1.0.10]) | |||
PKG_CHECK_MODULES(NICE, [nice >= 0.1.4]) | |||
PKG_CHECK_MODULES(GSTREAMER, [gstreamer-1.0 >= 1.0.10 gstreamer-rtp-1.0 >= 1.0.10 gstreamer-video-1.0 >= 1.0.10 gstreamer-app-1.0 >= 1.0.10]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably require 1.4.x for glimagesink? I suppose we can conditionally build the OwrVideoRenderer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, if glimagesink is a hard dependency. I don't know if you use other 1.2+ API
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
glimagesink is used on all platforms but only by OwrVideoRenderer. We could make the build of that conditional on the gst version.
The build flag changes are fine. |
Updated to check for GStreamer >= 1.4 |
This should now be good to merge, it should build with your build scripts too |
I will land it as soon as I have tested it. |
Builds for me on OSX and iOS when using my buildscript fixes |
Landed all these, thanks. |
These will have to be tested with the build scripts on all platforms