Opened 3 years ago

Closed 2 years ago

#9475 closed defect (invalid)

Building ffmpeg libraries for Windows : libxml2 not found

Reported by: Thomas Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

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!

Change History (1)

comment:1 by Marton Balint, 2 years ago

Resolution: invalid
Status: newclosed

You should ask for help for build issues at ffmpeg-user@ffmpeg.org or try various methods listed at https://trac.ffmpeg.org/wiki/CompilationGuide

Note: See TracTickets for help on using tickets.