[vbox-dev] Virtualbox detect script for videorec/opus libraries

Jung-uk Kim jkim at FreeBSD.org
Tue Jul 17 19:13:36 UTC 2018

On 04/23/2018 11:02, Gianfranco Costamagna wrote:
> Hello, I crafted a patch to detect system libraries to enable again videorec when OSE is enabled and the system version 
> of opus is found.
> MIT attached patch

It seems the patch was introduced in 5.2.16.  Unfortunately, it broke
FreeBSD port.  I found couple of problems from this change.

+#include <opus/opus.h>

It must be "#include <opus.h>" because "pkg-config -cflags" says
"-I${includedir}/opus", i.e.,


Actually, src/VBox/Main/src-client/DrvAudioVideoRec.cpp does it, too.


+  check_libopus

We should check whether libopus is needed in the first place.  I think
something like this should do:

  [ $OSE -eq 0 -a "$OS" != "win" ] && check_libopus

Jung-uk Kim

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20180717/93d8a217/attachment.sig>

More information about the vbox-dev mailing list