Skip to content

Can't build from master & 1.3.1 due to opus not found using pkg-config #2690

@doronbehar

Description

@doronbehar

Problem description:

I get this error when I run make in ./build/:

 --extra-cflags="-mfpmath=sse -msse2 -I/var/src/HandBrake/build/contrib/include -DNDEBUG" --enable-nvenc --enable-encoder=h264_nvenc --enable-encoder=hevc_nvenc
ERROR: opus not found using pkg-config

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
[email protected] mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.
make: *** [../contrib/ffmpeg/module.rules:2: contrib/ffmpeg/.stamp.ffmpeg.configure] Error 1

HandBrake version:

1.3.1, (master as well).

Operating system and version (e.g., Ubuntu 19.10, macOS 10.15 Catalina, Windows 10 1909):

NixOS.

Error message text and/or screenshot:

Provided at top.

HandBrake Activity Log:

Irrelevant.

More info

I have libopus installed and I can see it in the following command:

$ pkg-config --list-all | grep opus
opus                   Opus - Opus IETF audio codec (floating-point, custom modes build)

And:

$ pkg-config --libs opus
-L/nix/store/ibv46470wpx4pdb78gdfs8rlq1v98ysk-libopus-1.3.1/lib -lopus

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions