Hi all! When compiling the program using opusfile the #include <opus/opusfile.h> generates error that # include <opus_multistream.h> is not found. Actually it should be included as # include <opus/opus_multistream.h> just like the ogg.h in the previous line. A small patch attached. -- Best regards, Alexander -------------- next part -------------- A non-text attachment was scrubbed... Name: patch.diff Type: text/x-patch Size: 325 bytes Desc: not available URL: <http://lists.xiph.org/pipermail/opus/attachments/20170831/81d49615/attachment-0001.bin>
Actually, you're supposed to add /usr/include/opus to your include path. That's why the includes don't have the "opus/" prefix. Cheers, Jean-Marc On 31/08/17 05:20 AM, Alexander Panchenko wrote:> Hi all! > When compiling the program using opusfile the > > #include <opus/opusfile.h> > > generates error that > > # include <opus_multistream.h> > > is not found. Actually it should be included as > > # include <opus/opus_multistream.h> > > just like the ogg.h in the previous line. > > A small patch attached. > > > > _______________________________________________ > opus mailing list > opus at xiph.org > http://lists.xiph.org/mailman/listinfo/opus >
>>> Jean-Marc Valin <jmvalin at jmvalin.ca> schrieb am 16.09.2017 um 08:12 inNachricht <29959506-9f3b-2ad1-fc02-2aea7c53c084 at jmvalin.ca>:> Actually, you're supposed to add /usr/include/opus to your include path. > That's why the includes don't have the "opus/" prefix.Hi! But that's uncommon: You also don't put /usr/include/sys into your include path, but you still write #include <sys/stat.h> (for example). Regards, Ulrich> > Cheers, > > Jean-Marc > > On 31/08/17 05:20 AM, Alexander Panchenko wrote: >> Hi all! >> When compiling the program using opusfile the >> >> #include <opus/opusfile.h> >> >> generates error that >> >> # include <opus_multistream.h> >> >> is not found. Actually it should be included as >> >> # include <opus/opus_multistream.h> >> >> just like the ogg.h in the previous line. >> >> A small patch attached. >> >> >> >> _______________________________________________ >> opus mailing list >> opus at xiph.org >> http://lists.xiph.org/mailman/listinfo/opus >> > _______________________________________________ > opus mailing list > opus at xiph.org > http://lists.xiph.org/mailman/listinfo/opus
Hi, in this case it should be the same situation with the previous line where ogg.h is included, i.e. opusfile should add /usr/include/ogg to it's include path and then use #include<ogg.h> instead of #include<ogg/ogg.h> Obviously, it's not a good idea to include a separate search path for every library used in the project since all these libraries are installed into /usr/include/ and you just can use #include<library1/header1.h> #include<library2/header2.h> etc. Best regards, Alexander 16.09.2017 09:12, Jean-Marc Valin wrote:> Actually, you're supposed to add /usr/include/opus to your include path. > That's why the includes don't have the "opus/" prefix. > > Cheers, > > Jean-Marc > > On 31/08/17 05:20 AM, Alexander Panchenko wrote: >> Hi all! >> When compiling the program using opusfile the >> >> #include <opus/opusfile.h> >> >> generates error that >> >> # include <opus_multistream.h> >> >> is not found. Actually it should be included as >> >> # include <opus/opus_multistream.h> >> >> just like the ogg.h in the previous line. >> >> A small patch attached. >> >> >> >> _______________________________________________ >> opus mailing list >> opus at xiph.org >> http://lists.xiph.org/mailman/listinfo/opus >>