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 748594 - opus: fix includes and compilation against opus in non-standard prefix
opus: fix includes and compilation against opus in non-standard prefix
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: 1.5.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-04-28 16:13 UTC by Nicola
Modified: 2015-04-28 16:28 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Nicola 2015-04-28 16:13:44 UTC
gst-uninstalled -bad compilation fails with opus plugin

  CC       libgstopus_la-gstopus.lo
In file included from gstopus.c:24:0:
gstopusdec.h:27:35: fatal error: opus/opus_multistream.h: No such file or directory
 #include <opus/opus_multistream.h>
                                   ^
compilation terminated.

the file is in the expected path:

 ls -la /root/gst/master/prefix/include/opus/opus_multistream.h 
-rw-r--r-- 1 root root 33500 Apr 28 16:01 /root/gst/master/prefix/include/opus/opus_multistream.h

but is not automagically picked

pkg-config --libs --cflags opus
-I/root/gst/master/prefix/include/opus  -L/root/gst/master/prefix/lib -lopus  

this can be fixed changing

#include <opus/opus_multistream.h>

in

#include <opus_multistream.h>

not sure if this is a bug in gstreamer opus plugin or in the opus pkgconfig
Comment 1 Tim-Philipp Müller 2015-04-28 16:28:08 UTC
I think it's a bug in the includes that just happens to work if opus is installed in the default prefix.

commit 35808c27fa28c71cad73641b5886d82d2f978301
Author: Tim-Philipp Müller <tim@centricular.com>
Date:   Tue Apr 28 17:24:04 2015 +0100

    opus: fix includes and compilation against opus in non-standard prefix
    
    https://bugzilla.gnome.org/show_bug.cgi?id=748594