GNOME Bugzilla – Bug 678789
Compiliation error when compiling gst-rtsp-server in a build directory...
Last modified: 2012-06-27 09:42:52 UTC
When I try to compile gst-rtsp-server in a build directory after just having cloned it I get errors when building the unit tests: git clone git://anongit.freedesktop.org/gstreamer/gst-rtsp-server cd gst-rtsp-server ./autogen.sh --noconfigure mkdir -p build cd build ../configure make check [...] make[3]: Entering directory `/home/sebrn/src/upstream/gst-rtsp-server/build/tests/check' CC gst_rtspserver-rtspserver.o ../../../tests/check/gst/rtspserver.c:25:41: fatal error: gst/rtsp-server/rtsp-server.h: No such file or directory compilation terminated. make[3]: *** [gst_rtspserver-rtspserver.o] Error 1 The attached patch fixes this issue. The unit tests have been successfully built and tested both in the source directory and in an alternative build directory as outlined above. Moreover this patch is based on how the problem of including headers installed by the current package needed by a unit test is solved for gst-plugins-good/tests/check/elements/baseaudiovisualizer.c.
Created attachment 217192 [details] [review] Proposed patch for fixing compilation error.
commit 4743624bb51b72fb1c566c2b7b8950cedd922409 Author: Sebastian Rasmussen <sebrn@axis.com> Date: Mon Jun 25 14:28:10 2012 +0200 Have unit test get header from source dir, not installed dir This makes compilation of unit tests work in a build directory other than the source directory. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=678789