ERROR: opus not found

Support for HandBrake on Linux, Solaris, and other Unix-like platforms
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
brakenit
Posts: 10
Joined: Thu Nov 13, 2014 6:01 pm

ERROR: opus not found

Post by brakenit » Sat Nov 19, 2016 10:16 pm

Using Handbrake Git master. Something changed a few months ago to where the build now fails when compiling the libav-11.3 contrib portion of the build. Note, this is on Debian Sid (which has built Handbrake binaries with no problems until this issue for a long time).

Configure:

Code: Select all

./configure --disable-gtk
Output from libav portion:

Code: Select all

/bin/tar xfC ../download/libav-11.3.tar.gz ./contrib/ffmpeg/
touch contrib/ffmpeg/.stamp.extract
/usr/bin/patch -t -N -p1 -d ./contrib/ffmpeg/libav-11.3/ < ../contrib/ffmpeg/A00-qsv.patch
patching file configure
patching file libavcodec/Makefile
patching file libavcodec/allcodecs.c
patching file libavcodec/qsv.c
patching file libavcodec/qsv.h
patching file libavcodec/qsv_h264.c
patching file libavcodec/qsv_h264.h
patching file libavutil/pixfmt.h
/usr/bin/patch -t -N -p1 -d ./contrib/ffmpeg/libav-11.3/ < ../contrib/ffmpeg/A01-mkv-forced-flag.patch
patching file libavformat/matroskaenc.c
Hunk #1 succeeded at 765 with fuzz 2 (offset -4 lines).
/usr/bin/patch -t -N -p1 -d ./contrib/ffmpeg/libav-11.3/ < ../contrib/ffmpeg/A02-strptime.patch
patching file configure
Hunk #1 succeeded at 1469 (offset 2 lines).
Hunk #2 succeeded at 4060 (offset 5 lines).
patching file libavformat/utils.c
patching file libavutil/parseutils.c
patching file libavutil/parseutils.h
/usr/bin/patch -t -N -p1 -d ./contrib/ffmpeg/libav-11.3/ < ../contrib/ffmpeg/A03-dxva2-hevc.patch
patching file libavcodec/dxva2_h264.c
patching file libavcodec/dxva2_mpeg2.c
patching file libavcodec/dxva2_vc1.c
patching file libavcodec/dxva2.h
patching file libavcodec/dxva2_internal.h
patching file libavcodec/hevc.c
patching file libavcodec/hevc.c
patching file libavcodec/hevc.h
patching file libavcodec/hevc.c
patching file libavcodec/hevc.h
patching file libavcodec/hevc.c
patching file libavcodec/hevc.h
patching file libavcodec/hevc_refs.c
patching file libavcodec/hevc.c
patching file libavcodec/hevc_refs.c
patching file configure
Hunk #1 succeeded at 1496 (offset 1 line).
Hunk #2 succeeded at 1943 (offset 4 lines).
Hunk #3 succeeded at 4107 (offset 4 lines).
patching file libavcodec/Makefile
Hunk #1 succeeded at 550 (offset 3 lines).
patching file libavcodec/allcodecs.c
patching file libavcodec/dxva2_hevc.c
patching file libavcodec/hevc.c
patching file libavcodec/dxva2_hevc.c
/usr/bin/patch -t -N -p1 -d ./contrib/ffmpeg/libav-11.3/ < ../contrib/ffmpeg/A04-dxtory.patch
patching file libavcodec/dxtory.c
/usr/bin/patch -t -N -p1 -d ./contrib/ffmpeg/libav-11.3/ < ../contrib/ffmpeg/A05-matroskaenc-track-lang.patch
patching file libavformat/matroskaenc.c
Hunk #1 succeeded at 990 (offset 2 lines).
/usr/bin/patch -t -N -p1 -d ./contrib/ffmpeg/libav-11.3/ < ../contrib/ffmpeg/A06-vc1-decode.patch
patching file libavcodec/vc1dec.c
/usr/bin/patch -t -N -p1 -d ./contrib/ffmpeg/libav-11.3/ < ../contrib/ffmpeg/A07-matroskaenc-pgs-duration.patch
patching file libavformat/matroskaenc.c
/usr/bin/patch -t -N -p1 -d ./contrib/ffmpeg/libav-11.3/ < ../contrib/ffmpeg/A08-mov-audio-fallback.patch
patching file libavcodec/avcodec.h
patching file libavformat/avformat.h
patching file libavformat/movenc.c
patching file libavformat/utils.c
Hunk #1 succeeded at 3119 (offset -7 lines).
/usr/bin/patch -t -N -p1 -d ./contrib/ffmpeg/libav-11.3/ < ../contrib/ffmpeg/A09-atmos-substream.patch
patching file libavcodec/mlp_parser.c
patching file libavcodec/mlp_parser.h
patching file libavcodec/mlpdec.c
patching file libavcodec/mlp.h
patching file libavcodec/mlpdec.c
/usr/bin/patch -t -N -p1 -d ./contrib/ffmpeg/libav-11.3/ < ../contrib/ffmpeg/A10-dcadec-false-overread.patch
patching file libavcodec/dcadec.c
/usr/bin/patch -t -N -p1 -d ./contrib/ffmpeg/libav-11.3/ < ../contrib/ffmpeg/A11-vf-pad.patch
patching file libavfilter/vf_pad.c
Hunk #1 succeeded at 168 with fuzz 1 (offset 1 line).
Hunk #2 succeeded at 204 (offset 2 lines).
/usr/bin/patch -t -N -p1 -d ./contrib/ffmpeg/libav-11.3/ < ../contrib/ffmpeg/A12-avfilter-framerate.patch
patching file doc/filters.texi
patching file libavfilter/avfilter.c
patching file libavfilter/avfilter.h
Hunk #1 succeeded at 683 (offset 308 lines).
patching file libavfilter/buffersrc.c
Hunk #2 succeeded at 296 (offset 104 lines).
Hunk #3 succeeded at 414 (offset 104 lines).
patching file libavfilter/setpts.c
patching file libavfilter/vf_fps.c
patching file libavfilter/vf_framepack.c
patching file libavfilter/vf_frei0r.c
patching file libavfilter/vf_interlace.c
Hunk #1 succeeded at 113 with fuzz 2 (offset 4 lines).
patching file libavfilter/vf_showinfo.c
patching file libavfilter/vf_yadif.c
Hunk #1 succeeded at 462 with fuzz 2.
patching file libavfilter/vsrc_color.c
patching file libavfilter/vsrc_testsrc.c
/usr/bin/patch -t -N -p1 -d ./contrib/ffmpeg/libav-11.3/ < ../contrib/ffmpeg/A13-avi-dv.patch
patching file libavformat/avidec.c
Hunk #1 succeeded at 959 (offset -36 lines).
Hunk #2 succeeded at 971 (offset -36 lines).
/usr/bin/patch -t -N -p1 -d ./contrib/ffmpeg/libav-11.3/ < ../contrib/ffmpeg/A14-eac3-request-sample.patch
patching file libavcodec/ac3dec.h
patching file libavcodec/eac3dec.c
patching file libavcodec/ac3dec.c
/usr/bin/patch -t -N -p1 -d ./contrib/ffmpeg/libav-11.3/ < ../contrib/ffmpeg/A15-vp9.patch
patching file libavcodec/libvpxenc.c
touch contrib/ffmpeg/.stamp.patch
set -e; cd ./contrib/ffmpeg/libav-11.3/; CC=/usr/bin/gcc CFLAGS="-I/home/wls/git/hb-trunk/build/contrib/include -std=gnu99 -mfpmath=sse -msse2" CXX=/usr/bin/g++ CXXFLAGS="-I/home/wls/git/hb-trunk/build/contrib/include -mfpmath=sse -msse2" CPPFLAGS="-I/home/wls/git/hb-trunk/build/contrib/include -mfpmath=sse -msse2" LDFLAGS="-L/home/wls/git/hb-trunk/build/contrib/lib " PKG_CONFIG_PATH="/home/wls/git/hb-trunk/build/contrib/lib/pkgconfig" PATH="/home/wls/git/hb-trunk/build/contrib/bin:/home/wls/git/hb-trunk/build/contrib/bin:/home/wls/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/wls/.fzf/bin::/home/wls/bin:/home/wls/go/bin" ./configure --prefix=/home/wls/git/hb-trunk/build/contrib/ --disable-shared --enable-static --enable-gpl --disable-doc --disable-bsfs --enable-bsf=aac_adtstoasc --disable-avconv --disable-avplay --disable-avprobe --disable-avdevice --disable-muxers --disable-network --disable-hwaccels --disable-encoders --enable-libmp3lame --enable-encoder=aac --enable-encoder=ac3 --enable-encoder=eac3 --enable-encoder=flac --enable-encoder=mpeg2video --enable-encoder=mpeg4 --enable-encoder=libmp3lame --enable-libopus --enable-encoder=libopus --enable-libvpx --enable-encoder=libvpx_vp8 --disable-decoder=libvpx_vp8 --enable-encoder=libvpx_vp9 --disable-decoder=libvpx_vp9 --enable-zlib --enable-bzlib --enable-pthreads --cc="/usr/bin/gcc" --extra-ldflags="-mfpmath=sse -msse2 -L/home/wls/git/hb-trunk/build/contrib/lib" --enable-muxer=matroska --enable-muxer=webm --enable-muxer=mov --enable-muxer=mp4 --enable-muxer=psp --enable-muxer=ipod --disable-debug --extra-cflags="-mfpmath=sse -msse2 -I/home/wls/git/hb-trunk/build/contrib/include -DNDEBUG"
ERROR: opus not found

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
libav-tools@libav.org mailing list or IRC #libav on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.
../contrib/ffmpeg/module.rules:2: recipe for target 'contrib/ffmpeg/.stamp.configure' failed
make: *** [contrib/ffmpeg/.stamp.configure] Error 1

Note: I can change into the directory manually and compile it just fine. Opus dev pacakges and libraries are installed on the system:

Code: Select all

wls@rivendell:~/git/hb-trunk/build$ dpkg -l | grep opus
ii  libopus-dev:amd64                                           1.1.3-1                              amd64        Opus codec library development files
ii  libopus0:amd64                                              1.1.3-1                              amd64        Opus codec runtime library
ii  libopus0:i386                                               1.1.3-1                              i386         Opus codec runtime library
ii  libopusfile-dev                                             0.8-1                                amd64        High-level API for basic manipulation of Ogg Opus audio streams
ii  libopusfile0                                                0.8-1                                amd64        High-level API for basic manipulation of Ogg Opus audio streams
Just wondering if anyone else has run into this? And, if so, what was your solution?

Thanks in advance

User avatar
Rodeo
HandBrake Team
Posts: 12209
Joined: Tue Mar 03, 2009 8:55 pm

Re: ERROR: opus not found

Post by Rodeo » Sun Nov 20, 2016 8:30 am

Shouldn't Opus be built as a contrib anyway? Did you try a clean checkout with ./configure --launch --disable-gtk ?

User avatar
JohnAStebbins
HandBrake Team
Posts: 5442
Joined: Sat Feb 09, 2008 7:21 pm

Re: ERROR: opus not found

Post by JohnAStebbins » Sun Nov 20, 2016 5:02 pm

Rodeo wrote:Shouldn't Opus be built as a contrib anyway? Did you try a clean checkout with ./configure --launch --disable-gtk ?
On linux systems, we use the system's opus lib.

@brakenit, please read doc/BUILD-Linux for the full list of prerequisites.

Post Reply