[FFmpeg-trac] #9475(undetermined:new): Building ffmpeg libraries for Windows : libxml2 not found

FFmpeg trac at avcodec.org
Mon Oct 25 18:18:49 EEST 2021


#9475: Building ffmpeg libraries for Windows : libxml2 not found
-------------------------------------+-------------------------------------
             Reporter:  Thomas       |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Hello,

 I have spent the last 3 days trying to build the ffmpeg 4.4 libraries
 (avcodec.dll, avutil.dll, ...) for Windows.

 I want to be able to build them for Windows 32 bits and for Windows 64
 bits.

 I want to build them with the maximum of libs included in it but I want to
 stay within the LGPL license.

 In particular, I want the libs to be able to decode AV1 and demux MPEG-
 DASH.

 In msys 1 and in msys 2 (I tried both), I have used this command line:
 {{{

 ./configure --target-os=win64 --arch=x86_64 --toolchain=msvc --enable-
 shared --enable-demuxer=dash

 }}}

 But I get this error message:

 WARNING: Disabled dash_demuxer because not all dependencies are satisfied:
 libxml2

 I have tried many things to install libxml2.

 In msys 1.0, I have added the package
 "msys-libxml2-dev"

 In msys 2.0, I have tried to install libxml2 like this:
 pacman -Sy mingw-w64-x86_64-libxml2

 In  have also seen a file called libxml-2.0.pc in /mingw64/lib/pkgconfig/
 so I have copied it as libxml2.pc:
 cp /mingw64/lib/pkgconfig/libxml-2.0.pc /mingw64/lib/pkgconfig/libxml2.pc

 but none of these attempts worked.

 I keep having this error:

 WARNING: Disabled dash_demuxer because not all dependencies are satisfied:
 libxml2


 I have also tried to build these libraries under Debian 9.8
 But under Debian, when I use the command

 {{{

 ./configure --target-os=win64 --arch=x86_64 --toolchain=msvc --enable-
 shared --enable-demuxer=dash --enable-cross-compile

 }}}

 I get the error: lib.exe not found.

 I think that the scripts expects to find the MSVC compiler/linker and
 since we are now on Debian, they don't exist.

 I have tried to remplace the "--target-os=win64" option by "--target-
 os=mingw32" like this:
 {{{

 ./configure --target-os=mingw32 --arch=x86_64 --toolchain=msvc --enable-
 shared --enable-demuxer=dash --enable-cross-compile

 }}}

 But it does not work either?


 So, could someone please help me to build these 32-bit and 64-bit
 libraries for Windows ? I can do it under Windows or under Linux.

 Thanks in advance!
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9475>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list