07-19-2012 08:34 AM
I have compiled ffmpeg for playbook. But for encoding with H164 it uses external library x264. How can that be cross compiled? The configure script has no support for QNX. However it does support ARM. Any suggestion about how to cross compile libx264?
I tried to compile the code in the momentics ide. But it is not C99 compliant and that causes huge amount of trouble. Please help.
08-09-2012 03:08 PM - edited 08-09-2012 03:22 PM
@falcon you might want to try searching first. There are at least two other threads about ffmpeg.
./configure --enable-cross-compile --cross-prefix=arm-unknown-nto-qnx8.0.0eabi- --arch=armv7 --disable-debug --enable-optimizations --enable-asm --disable-static --enable-shared --target-os=qnx --disable-ffplay --disable-ffserver --disable-ffprobe --prefix=`pwd`/target
Re: FFMpeg compile:
08-09-2012 11:22 PM
So here is a configuration which seems to work for me. I havnt tested the actual compiled library it but it compiles libx264.
./configure --enable-shared --host=arm-linux --cross-prefix=arm-unknown-nto-qnx6.5.0eabi- --disable-asm --disable-cli
08-10-2012 06:25 AM
So after playing around for a bit the final config which seems to work is
./configure --enable-shared --host=arm-linux --cross-prefix=arm-unknown-nto-qnx6.5.0eabi- --disable-cli
After checking what exactly -linux option does is that it only includes a <malloc.h> file which is already availble in the NDK so I am very hopeful it will work.