savonet / ocaml-faad

OCaml bindings for the libfaad AAC decoder library.
GNU General Public License v2.0
2 stars 0 forks source link

The compilation of conf-faad.1 failed #5

Open mylselgan opened 1 year ago

mylselgan commented 1 year ago

Ubuntu 20.04 LTS ocaml-base-compiler.4.12.0

I tried to install liquidsoap and other dependencies via opam opam install taglib mad lame vorbis cry samplerate fdkaac liquidsoap.2.0.7 ffmpeg faad

It failed with following error.

The compilation of conf-faad.1 failed at "pkg-config --exists faad2".

#=== ERROR while compiling conf-faad.1 ========================================#
# context     2.1.5 | linux/x86_64 | ocaml-base-compiler.4.12.0 | https://opam.ocaml.org#5b84ca61
# path        ~/.opam/4.12.0/.opam-switch/build/conf-faad.1
# command     ~/.opam/opam-init/hooks/sandbox.sh build pkg-config --exists faad2
# exit-code   1
# env-file    ~/.opam/log/conf-faad-94529-54e58a.env
# output-file ~/.opam/log/conf-faad-94529-54e58a.out

I found that it tries to install faad.0.5.1 which also requires "conf-faad 1" (which causes compilation error)

So I specified 0.5.0 which not depends "conf-faad 1" and the installation was successful

summary: installation failed with: opam install taglib mad lame vorbis cry samplerate fdkaac liquidsoap.2.0.7 ffmpeg faad

succeed with: opam install taglib mad lame vorbis cry samplerate fdkaac liquidsoap.2.0.7 ffmpeg faad.0.5.0