ffmpeg库的交叉编译记录
类别:LINUX 作者:码皇 来源:互联网 点击:
ffmpeg库的交叉编译记录系统信息:Ubuntu Release 10 04主机编译器版本:liwei@liwei:~$ gcc -vUsing built-in specs Target: i486-linux-gnu… … … …gcc version 4 4 3 (Ubuntu 4 4 3-4ubuntu
ffmpeg库的交叉编译记录 系统信息:Ubuntu Release 10.04主机编译器版本:liwei@liwei:~$ gcc -vUsing built-in specs.Target: i486-linux-gnu… … … …gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)交叉编译器版本:liwei@liwei:~$ arm-linux-gcc -vUsing built-in specs.Target: arm-linux-uclibc… … … …gcc version 4.2.11.进入到ffmpeg目录中用以下方式配置:$ ./configure --arch=arm --target-os=linux --cc=arm-linux-gcc --enable-cross-compile --enable-shared --disable-network --disable-armv6 --disable-armv6t2 --disable-ffmpeg --disable-ffplay --disable-ffserver --enable-avfilter --enable-gpl --enable-swscale --enable-postproc --enable-gpl --enable-pthreads出现如下问题:Must specify target arch and OS when cross-compilingIf you think configure made a mistake, make sure you are using the latestversion from Git. If the latest version fails, report the problem to theffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.Include the log file "config.log" produced by configure as this will helpsolving the problem.通过./configure –help找到相关配置选项,传递linux给此选项,配置通过2.拷贝目标文件:拷贝如下头文件到/home/liwei/ffmpeg_install/include(实际为安装解码库时安装到系统目录下的头文件)/usr/local/include/*拷贝如下动态库文件到/home/liwei/ffmpeg_install/lib:ffmpeg/libavcodec/libavcodec.so.53ffmpeg/libavfilter/libavfilter.so.2ffmpeg/libpostproc/libpostproc.so.52ffmpeg/libavformat/libavformat.so.53ffmpeg/libswresample/libswresample.so.0ffmpeg/libavdevice/libavdevice.so.53ffmpeg/libavutil/libavutil.so.51ffmpeg/libswscale/libswscale.so.2拷贝如下静态库文件到/home/liwei/ffmpeg_install/lib:ffmpeg/libavcodec/libavcodec.affmpeg/libavfilter/libavfilter.affmpeg/libpostproc/libpostproc.affmpeg/libavformat/libavformat.affmpeg/libswresample/libswresample.affmpeg/libavdevice/libavdevice.affmpeg/libavutil/libavutil.affmpeg/libswscale/libswscale.a用arm-linux-strip工具去除动态库中的调试信息:$cd /home/liwei/ffmpeg_install/lib/$ arm-linux-strip *.so
相关热词搜索:
ffmpeg 交叉 编译