GNOME Bugzilla – Bug 585039
rtpool-test can't find pthreads
Last modified: 2009-06-07 20:22:33 UTC
Because -lpthread argument to the linker is missing. I don't know where it comes from on Linux, but on Windows it isn't there (and why would you want to use pthreads instead of gthread anyway?).
Created attachment 136075 [details] [review] A crude patch that fixes the problem. At least - on Windows.
Can't we just disable this example on windows? We are using pthreads here as an example how you can substitute the threading with custom threads (in this case realtime threads for which no GThread API exists)
Why would you? Just add pthreads as a requirement. With the patch it builds just fine (don't really know whether it actually works or not). gst-plugins-bad does it like this: AC_CHECK_HEADERS([pthread.h], HAVE_PTHREAD_H=yes) AM_CONDITIONAL(HAVE_PTHREAD_H, test "x$HAVE_PTHREAD_H" = "xyes") if test "x$HAVE_PTHREAD_H" != "xyes"; then GST_PLUGINS_SELECTED=`echo $GST_PLUGINS_SELECTED | $SED -e s/dccp//` fi I don't see why you can't do the same in core.
Something like this (please reopen if it does not work) commit fbaa49faf4a1122cf2d3fb4f4425a4e028b20460 Author: Wim Taymans <wim.taymans@collabora.co.uk> Date: Sun Jun 7 22:20:54 2009 +0200 tests: conditionally compile the streams example Detect pthreads.h in configure.ac Only compile the streams example when pthreads.h is present. Fixes #585039