> On Mon, May 14, 2018 at 12:28:13 +0200, Thomas Schmiedl wrote:
>> I'm only an end-user, maybe someone could help me?
> Perhaps someone at the freetz site?
>> I got this error: 'ERROR: libxml-2.0 not found using pkg-config'. But
>> the freetz-toolchain does not contain pkg-config. Is it possible to use
>> pkg-config from the Debian 9 host system?
> Hmm, this file from freetz at least mentions the pkg-config file:
> https://github.com/Freetz/freetz/blob/c763e9066d06d21bcd815e15b3f8fa494b3b2007/make/libs/libxml2/libxml2.mk >
> But yes, if you know hwo pkg-config works, you can easily "fake" a
> libxml-2.0.pc file and have ffmpeg use it.
>> When calling ffmpeg's configure without '--enable-libxml2', there is no
>> pkg-config error. But a warning: 'mips-linux-pkg-config not found,
>> library detection may fail.'
> Hmm, that means you don't have a pkg-config tool for cross build
> either? I would also fake this, but there may be a better way.
On Ubuntu there is a package "pkg-config-mips-linux-gnu" which provides
/usr/bin/mips-linux-gnu-pkg-config (actually just a symlink to
/usr/share/pkg-config-crosswrapper). Don't know how this is handled on
Please remember that only current FFmpeg git head is supported here.
> I got this error: 'ERROR: libxml-2.0 not found using pkg-config'.
The reason is apparently that FFmpeg cannot know in advance
where the necessary headers are installed.
I will likely send a patch that would fix the issue for you (with
--extra-cflags=/path/to/libxml) but there is a high chance that
it will be rejected: Building for less common systems is
unfortunately not welcome;-(
My suggestion is you simply patch away the check from
configure or edit config.h and config.mak after running
configure to enable libxml2 and add the necessary path.