After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 678789 - Compiliation error when compiling gst-rtsp-server in a build directory...
Compiliation error when compiling gst-rtsp-server in a build directory...
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-rtsp-server
git master
Other Linux
: Normal normal
: 0.11.x
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-06-25 12:52 UTC by Sebastian Rasmussen
Modified: 2012-06-27 09:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch for fixing compilation error. (1.53 KB, patch)
2012-06-25 12:52 UTC, Sebastian Rasmussen
none Details | Review

Description Sebastian Rasmussen 2012-06-25 12:52:11 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.
Comment 1 Sebastian Rasmussen 2012-06-25 12:52:54 UTC
Created attachment 217192 [details] [review]
Proposed patch for fixing compilation error.
Comment 2 Wim Taymans 2012-06-27 09:42:52 UTC
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