交叉编译ffmpeg

交叉编译ffmpeg
./configure --enable-cross-compile --cross-prefix=mipsel-linux- --arch=mips --target-os=linux --prefix=/home/sf6/jieen/myworks/third/ffmpeg/ff_mipsel
make
make install
提示:
WARNING: mipsel-linux-pkg-config not found, library detection may fail.
从http://pkgconfig.freedesktop.org/releases/?C=M;O=D下载了pkg-config-0.26.tar.gz
尝试交叉编译
./configure --program-prefix=mipsel-linux- --host=mips --prefix=/home/sf6/jieen/broadcom/toolchains/stbgcc-4.4.5-2.0
make
make install
 
mipsel-linux-gcc testffmp3.c -o testffmp3 -Llib -lavcodec -lavutil -lm -lpthread -I.
 
gcc test.c -L/usr/local/lib -lavcodec -lavutil -lz -lm -lpthread
gcc test.c -L/usr/local/lib -lavcodec -lavutil -lpthread -lm -lz
gcc test.c -L/usr/local/lib -lavcodec -lavformat -lavutil -lpthread -lm -ldl -lz

你可能感兴趣的:(linux,gcc,library)