Skip to content
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

Closed
wants to merge 8 commits into from
Closed

Conversation

sdroege
Copy link
Contributor

@sdroege sdroege commented Oct 2, 2014

These will have to be tested with the build scripts on all platforms

…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])
Copy link
Contributor

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.

Copy link
Contributor Author

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

Copy link
Contributor

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.

@superdump
Copy link
Contributor

The build flag changes are fine.

@sdroege
Copy link
Contributor Author

sdroege commented Oct 3, 2014

Updated to check for GStreamer >= 1.4

@sdroege
Copy link
Contributor Author

sdroege commented Oct 3, 2014

This should now be good to merge, it should build with your build scripts too

@superdump
Copy link
Contributor

I will land it as soon as I have tested it.

@sdroege
Copy link
Contributor Author

sdroege commented Oct 3, 2014

Builds for me on OSX and iOS when using my buildscript fixes

@superdump
Copy link
Contributor

Landed all these, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants