I'm not sure what could be causing that. Did you have sure that your opam
environment is properly synced? Maybe just execute:
  eval `opam config env`
once before installing?

Le mar. 13 nov. 2018 à 15:22, Xavier Cazin <xavier.ca...@gmail.com> a
écrit :

> Hi Romain,
>
> Thank you for your quick response! I just followed your advice, but after
> I removed ocaml-ffmpeg, reinstallation brings new issues:
>
> xavier@bao:~$ *sudo apt install libswresample-dev*
> [sudo] password for xavier:
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> libswresample-dev is already the newest version (10:3.3.8-dmo1+deb9u1).
> libswresample-dev set to manually installed.
> 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
> xavier@bao:~$ *opam reinstall ffmpeg*
> [WARNING] ffmpeg is not installed.
> Install ? [Y/n] The following actions will be performed:
>   ∗  install ffmpeg 0.2.0
>
> =-=- Gathering sources
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> [ffmpeg] Archive in cache
>
> =-=- Processing actions
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> [ffmpeg: ./configure] Command started
> [ffmpeg: make] Command started
> [ERROR] The compilation of ffmpeg failed at "make".
> [ffmpeg: ocamlfind remove] Command started
>
> #=== ERROR while installing ffmpeg.0.2.0
> ======================================#
> # opam-version         1.2.2
> # os                   linux
> # command              make
> # path                 /home/xavier/.opam/4.07.0/build/ffmpeg.0.2.0
> # compiler             4.07.0
> # exit-code            2
> # env-file
> /home/xavier/.opam/4.07.0/build/ffmpeg.0.2.0/ffmpeg-5275-d2c37b.env
> # stdout-file
> /home/xavier/.opam/4.07.0/build/ffmpeg.0.2.0/ffmpeg-5275-d2c37b.out
> # stderr-file
> /home/xavier/.opam/4.07.0/build/ffmpeg.0.2.0/ffmpeg-5275-d2c37b.err
> ### stdout ###
> # make -C src all
> # make[1]: Entering directory
> '/home/xavier/.opam/4.07.0/build/ffmpeg.0.2.0/src'
> # /home/xavier/.opam/4.07.0/bin/ocamlopt -c gen_code_stubs.c
> # /home/xavier/.opam/4.07.0/bin/ocamlopt str.cmxa gen_code_stubs.o
> gen_code.ml -o gen_code
> # Makefile:65: recipe for target 'gen-code' failed
> # make[1]: Leaving directory
> '/home/xavier/.opam/4.07.0/build/ffmpeg.0.2.0/src'
> # Makefile:9: recipe for target 'all' failed
> ### stderr ###
> # [...]
> # /usr/bin/ld:
> /home/xavier/.opam/4.07.0/lib/ocaml/libasmrun.a(globroots.o): relocation
> R_X86_64_32 against symbol `caml_global_roots' can not be used when making
> a shared object; recompile with -fPIC
> # /usr/bin/ld:
> /home/xavier/.opam/4.07.0/lib/ocaml/libasmrun.a(backtrace.o): relocation
> R_X86_64_32 against symbol `caml_backtrace_last_exn' can not be used when
> making a shared object; recompile with -fPIC
> # /usr/bin/ld:
> /home/xavier/.opam/4.07.0/lib/ocaml/libasmrun.a(bigarray.o): relocation
> R_X86_64_32S against `.rodata' can not be used when making a shared object;
> recompile with -fPIC
> # /usr/bin/ld: /home/xavier/.opam/4.07.0/lib/ocaml/libasmrun.a(startup.o):
> relocation R_X86_64_32S against symbol `caml_data_segments' can not be used
> when making a shared object; recompile with -fPIC
> # /usr/bin/ld: final link failed: Nonrepresentable section on output
> # collect2: error: ld returned 1 exit status
> # File "caml_startup", line 1:
> # Error: Error during linking
> # make[1]: *** [gen-code] Error 2
> # make: *** [all] Error 2
> =-=- Error report
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> The following actions failed
>   ∗  install ffmpeg 0.2.0
> No changes have been performed
>
> =-=- ffmpeg.0.2.0 troobleshooting
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> => This package relies on external (system) dependencies that may be
> missing.
>    `opam depext ffmpeg.0.2.0' may help you find the correct installation
> for
>    your system.
> xavier@bao:~$ *opam depext ffmpeg.0.2.0*
> # Detecting depexts using flags: x86_64 linux debian
> # The following system packages are needed:
> #  - libavformat-dev
> #  - libavutil-dev
> #  - libswscale-dev
> #  - m4
> #  - pkg-config
> # All required OS packages found.
>
> Embarrassingly, I can't figure out how to correct these errors. A conflict
> with lib files that reside in /usr/lib/ocaml maybe?
>
> Regards,
> -- Xavier Cazin
>
>
> On Tue, Nov 13, 2018 at 3:58 PM Romain Beauxis <romain.beau...@gmail.com>
> wrote:
>
>> Hi Xavier,
>>
>> It looks like libswresample-dev is missing from the ocaml-ffmpeg depext.
>> You should try to install libswresample-dev and then reinstall ocaml-ffmpeg.
>>
>> I'll push an updated version on opam soon.
>>
>> Romain
>>
>> Le mar. 13 nov. 2018 à 08:11, Xavier Cazin <xavier.ca...@gmail.com> a
>> écrit :
>>
>>> Hello everyone,
>>>
>>> I've installed liquidsoap 1.3.4 successfully with opam (ocamlc 4.07.0)
>>> on MacOSX, but I fail to install it on my Debian (stretch) server. At least
>>> not with the ffmpeg module. Here is a log of my attempt:
>>>
>>> xavier@bao:~$ *opam depext taglib mad lame vorbis cry samplerate
>>> gstreamer opus ffmpeg faad liquidsoap.1.3.4*
>>> # Detecting depexts using flags: x86_64 linux debian
>>> # The following system packages are needed:
>>> #  - libavformat-dev
>>> #  - libavutil-dev
>>> #  - libfaad-dev
>>> #  - libgstreamer-plugins-base1.0-dev
>>> #  - libgstreamer1.0-dev
>>> #  - libmad0-dev
>>> #  - libmp3lame-dev
>>> #  - libogg-dev
>>> #  - libopus-dev
>>> #  - libpcre3-dev
>>> #  - libsamplerate0-dev
>>> #  - libswscale-dev
>>> #  - libtag1-dev
>>> #  - libvorbis-dev
>>> #  - m4
>>> #  - pkg-config
>>> # All required OS packages found.
>>> xavier@bao:~$ *opam install taglib mad lame vorbis cry samplerate
>>> gstreamer opus ffmpeg faad liquidsoap.1.3.4*
>>> [NOTE] Package taglib is already installed (current version is 0.3.3).
>>> [NOTE] Package mad is already installed (current version is 0.4.5).
>>> [NOTE] Package lame is already installed (current version is 0.3.3).
>>> [NOTE] Package vorbis is already installed (current version is 0.7.1).
>>> [NOTE] Package cry is already installed (current version is 0.6.2).
>>> [NOTE] Package samplerate is already installed (current version is
>>> 0.1.4).
>>> [NOTE] Package gstreamer is already installed (current version is 0.3.0).
>>> [NOTE] Package opus is already installed (current version is 0.1.2).
>>> [NOTE] Package ffmpeg is already installed (current version is 0.2.0).
>>> [NOTE] Package faad is already installed (current version is 0.4.0).
>>> The following actions will be performed:
>>>   ∗  install liquidsoap 1.3.4
>>> Do you want to continue ? [Y/n] y
>>> =-=- Gathering sources
>>> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>>> [liquidsoap] Archive in cache
>>>
>>> =-=- Processing actions
>>> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>>> [liquidsoap: ./configure] Command started
>>> [liquidsoap: make] Command started
>>> [ERROR] The compilation of liquidsoap failed at "make".
>>> [liquidsoap: rm] Command started
>>>
>>> #=== ERROR while installing liquidsoap.1.3.4
>>> ==================================#
>>> # opam-version         1.2.2
>>> # os                   linux
>>> # command              make
>>> # path                 /home/xavier/.opam/4.07.0/build/liquidsoap.1.3.4
>>> # compiler             4.07.0
>>> # exit-code            2
>>> # env-file
>>> /home/xavier/.opam/4.07.0/build/liquidsoap.1.3.4/liquidsoap-28499-d2c37b.env
>>> # stdout-file
>>> /home/xavier/.opam/4.07.0/build/liquidsoap.1.3.4/liquidsoap-28499-d2c37b.out
>>> # stderr-file
>>> /home/xavier/.opam/4.07.0/build/liquidsoap.1.3.4/liquidsoap-28499-d2c37b.err
>>> ### stdout ###
>>> # [...]
>>> # OCAMLOPT -c decoder/image_decoder.ml
>>> # OCAMLOPT -c decoder/image/ppm_decoder.ml
>>> # OCAMLOPT -c decoder/external_decoder.ml
>>> # OCAMLOPT -c decoder/raw_audio_decoder.ml
>>> # OCAMLOPT -c decoder/ffmpeg_decoder.ml
>>> # ../Makefile.rules:192: recipe for target 'decoder/ffmpeg_decoder.cmx'
>>> failed
>>> # make[2]: Leaving directory
>>> '/home/xavier/.opam/4.07.0/build/liquidsoap.1.3.4/src'
>>> # ../Makefile.rules:67: recipe for target 'all-auto-ocaml-prog' failed
>>> # make[1]: Leaving directory
>>> '/home/xavier/.opam/4.07.0/build/liquidsoap.1.3.4/src'
>>> # Makefile.rules:27: recipe for target 'all-subdirs' failed
>>> ### stderr ###
>>> # File "decoder/ffmpeg_decoder.ml", line 40, characters 47-70:
>>> # Error: Unbound module FFmpeg.Swresample
>>> # make[2]: *** [decoder/ffmpeg_decoder.cmx] Error 2
>>> # make[1]: *** [all-auto-ocaml-prog] Error 2
>>> # make: *** [all-subdirs] Error 2
>>>
>>> =-=- Error report
>>> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>>> The following actions failed
>>>   ∗  install liquidsoap 1.3.4
>>> No changes have been performed
>>>
>>> I don't quite understand the binding process, so any clues on how to
>>> solve this would be very welcome.
>>>
>>> Thanks in advance.
>>> -- Xavier Cazin
>>> _______________________________________________
>>> Savonet-users mailing list
>>> Savonet-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/savonet-users
>>>
>> _______________________________________________
>> Savonet-users mailing list
>> Savonet-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/savonet-users
>>
> _______________________________________________
> Savonet-users mailing list
> Savonet-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/savonet-users
>
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to