Hello,

I try to cross-compile ffmpeg for my router using this toolchain https://github.com/Freetz/freetz. It is an alternative firmware for AVM routers (https://web.archive.org/web/20171105112501/http://freetz.org:80/wiki/help/howtos/common/newbie.en). I need support for 'https' and 'dash' (libxml2).

I tested with ffmpeg-4.0.tar.bz2, libxml2-2.9.8.tar.gz and openssl-1.0.2o.tar.gz.

openssl:
./configure --host=mips-linux-gnu --target=mips-linux CC=mips-linux-gcc AR=mips-linux-ar LD=mips-linux-ld RANLIB=mips-linux-ranlib --prefix=/home/user/ffmpeg-mips --without-zlib --without-python

make
make install

libxml2:
./Configure linux-generic32 shared --cross-compile-prefix=mips-linux- --prefix=/home/user/ffmpeg-mips

make
make install

ffmpeg:
./configure --prefix=/home/user/ffmpeg-mips --enable-cross-compile --cross-prefix=mips-linux- --arch=mips --target-os=linux --enable-openssl --enable-libxml2 --extra-cflags='-I/home/user/ffmpeg-mips/include -Wl,-rpath=/home/user/ffmpeg-mips/lib' --extra-ldflags='-L/home/user/ffmpeg-mips/lib -Wl,-rpath=/home/user/ffmpeg-mips/lib' --extra-cxxflags='-I/home/user/ffmpeg-mips/include -Wl,-rpath=/home/user/ffmpeg-mips/lib' --disable-mips32r2 --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu

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?

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.'

I'm only an end-user, maybe someone could help me?

Thanks,
Thomas
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to