GNOME Bugzilla – Bug 688511
Windows compilers without pthreads still have testrtpool.c being built in tests
Last modified: 2012-11-17 10:56:12 UTC
Created attachment 229208 [details] [review] Patch to allow cross compile for windows build without pthreads Affects: v1.0.2, branch 1.0, and master I have attached a patch that allows me to successfully build. I can not verify that it doesn't break things for people who use pthreads. Make output: make -C manual make[4]: Entering directory `/home/src/git/gst/gstreamer/tests/examples/manual' make all-am make[5]: Entering directory `/home/src/git/gst/gstreamer/tests/examples/manual' CC elementcreate.o CCLD elementcreate.exe ... ... CC testrtpool-testrtpool.o testrtpool.c:30:21: fatal error: pthread.h: No such file or directory compilation terminated. make[5]: *** [testrtpool-testrtpool.o] Error 1 make[5]: Leaving directory `/home/src/git/gst/gstreamer/tests/examples/manual' make[4]: *** [all] Error 2 make[4]: Leaving directory `/home/src/git/gst/gstreamer/tests/examples/manual' make[3]: *** [manual] Error 2 make[3]: Leaving directory `/home/src/git/gst/gstreamer/tests/examples' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/src/git/gst/gstreamer/tests' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/src/git/gst/gstreamer' make: *** [all] Error 2
Many thanks for the patch, will be fixed in the next release. Please set your real name in the bugzilla preferences as well, so we can attribute your contributions properly (for non-trivial patches this is a requirement), thanks! commit 82c7b2da5133052198d40aa8fe7ed277e0db958a Author: Tim-Philipp Müller <tim@centricular.net> Date: Sat Nov 17 10:27:11 2012 +0000 examples: don't compile testrtpool example if pthreads are not available like on win32 Based on patch by: italarab@gmail.com https://bugzilla.gnome.org/show_bug.cgi?id=688511