日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 运维知识 > linux >内容正文

linux

linux arm ffmpeg configure文件,ffmpeg库的交叉编译记录

發(fā)布時(shí)間:2025/3/11 linux 20 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux arm ffmpeg configure文件,ffmpeg库的交叉编译记录 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

系統(tǒng)信息:Ubuntu

Release 10.04

主機(jī)編譯器版本:

liwei@liwei:~$

gcc -v

Using

built-in specs.

Target:

i486-linux-gnu

… … … …

gcc

version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)

交叉編譯器版本:

liwei@liwei:~$

arm-linux-gcc -v

Using

built-in specs.

Target:

arm-linux-uclibc

… … … …

gcc

version 4.2.1

1.進(jìn)入到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

出現(xiàn)如下問(wèn)題:

Must

specify target arch and OS when cross-compiling

If

you think configure made a mistake, make sure you are using the

latest

version

from Git. If the latest version fails, report the problem to the

ffmpeg-user@ffmpeg.org

mailing list or IRC #ffmpeg on irc.freenode.net.

Include

the log file "config.log" produced by configure as this

will help

solving

the problem.

通過(guò)./configure

–help找到相關(guān)配置選項(xiàng),傳遞linux給此選項(xiàng),配置通過(guò)

2.拷貝目標(biāo)文件:

拷貝如下頭文件到/home/liwei/ffmpeg_install/include(實(shí)際為安裝解碼庫(kù)時(shí)安裝到系統(tǒng)目錄下的頭文件)

/usr/local/include/*

拷貝如下動(dòng)態(tài)庫(kù)文件到/home/liwei/ffmpeg_install/lib:

ffmpeg/libavcodec/libavcodec.so.53

ffmpeg/libavfilter/libavfilter.so.2

ffmpeg/libpostproc/libpostproc.so.52

ffmpeg/libavformat/libavformat.so.53

ffmpeg/libswresample/libswresample.so.0

ffmpeg/libavdevice/libavdevice.so.53

ffmpeg/libavutil/libavutil.so.51

ffmpeg/libswscale/libswscale.so.2

拷貝如下靜態(tài)庫(kù)文件到/home/liwei/ffmpeg_install/lib:

ffmpeg/libavcodec/libavcodec.a

ffmpeg/libavfilter/libavfilter.a

ffmpeg/libpostproc/libpostproc.a

ffmpeg/libavformat/libavformat.a

ffmpeg/libswresample/libswresample.a

ffmpeg/libavdevice/libavdevice.a

ffmpeg/libavutil/libavutil.a

ffmpeg/libswscale/libswscale.a

用arm-linux-strip工具去除動(dòng)態(tài)庫(kù)中的調(diào)試信息:

$cd

/home/liwei/ffmpeg_install/lib/

$

arm-linux-strip *.so

總結(jié)

以上是生活随笔為你收集整理的linux arm ffmpeg configure文件,ffmpeg库的交叉编译记录的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。