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

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

编译mediastreamer2/ffmpeg/linphone(x86平台)

發布時間:2023/12/10 编程问答 33 豆豆
生活随笔 收集整理的這篇文章主要介紹了 编译mediastreamer2/ffmpeg/linphone(x86平台) 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
--------------------------在x86環境下編譯mediastreamer2的步驟--------------------------------------
1)編譯OGG庫 音頻編解碼 ? http://www.xiph.org/downloads/?
./configure --prefix=/usr ?--disable-static?
2)編譯SPEEX ?音頻編解碼
./configure --prefix=/usr --disable-static --enable-fixed-point --disable-float-api ?--with-ogg=/usr
3)編譯ORTP庫 ? http://download.savannah.gnu.org/releases/linphone/ortp/sources/
./configure --prefix=/usr --disable-static?
--------------------到此即可編譯無視頻支持mediastream-------------------------
編譯mediastream:
./configure --prefix=/usr ?--disable-static ?--enable-macsnd=no --enable-video=no --enable-tests --disable-gsm PKG_CONFIG_PATH=/usr/lib/pkgconfig?


4) 編譯sdl Simple DirectMedia Layer多媒體開發包 :http://www.libsdl.org/
./configure --prefix=/usr --enable-shared?


5) 編譯lame MP3編碼器 :http://lame.sourceforge.net/download.php
./configure --prefix=/usr --enable-shared?


6) 編譯xvid MPEG-4視頻編解碼器:http://www.xvid.org/
? cd xvidcore/build/generic
?./configure --prefix=/usr ?--enable-shared
? make & make install


7)編譯yasm ? NASM assembler x264需要用到的匯編編譯器:http://yasm.tortall.net/http://download.chinaunix.net/download/0013000/12166.shtml
./configure --prefix=/usr ?--enable-shared
? make & make install


8)編譯x264 http://download.videolan.org/pub/videolan/x264/snapshots/
./configure --prefix=/usr ?--enable-shared
? make & make install


9)編譯apr ? ?Apache可移植運行庫,為上層的應用程序提供一個可以跨越多操作系統平臺使用的底層支持接口庫 ?http所需 ?http://apr.apache.org/download.cgi
./configure --prefix=/usr ?--enable-shared
? make & make install


10)編譯 apr_util ? http://apr.apache.org/download.cgi
?./configure --prefix=/usr --with-apr=/usr --enable-shared
make & install


11)編譯pcre ?是一個Perl庫,解決C語言中使用正則表達式的問題 ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
?./configure --prefix=/usr --with-apr=/usr --enable-shared
make & install


12) 編譯apache http ?Web服務器端軟件 ?http://www.apache.org http://mirror.bjtu.edu.cn/apache/httpd/
./configure --with-apr=/usr --with-apr-util=/usr --with-pcre=/usr --enable-shared --prefix=/usr
make & install


運行./http -k start 在瀏覽器輸入http://192.168.1.XXX 測試是否安裝成功,若成功則顯示:It works!
測試完后要關閉 ./http -k stop


13) 編譯 ffmpeg http://ffmpeg.org/download.html
./configure --prefix=/usr --enable-shared --enable-libmp3lame --enable-shared --enable-libxvid --enable-gpl --enable-pthreads --enable-ffserver --enable-ffplay --enable-libx264 --enable-pthreads

--------------------------------至此 ffmpeg編譯完成----------------------------------------------------------------------

14)編譯 mediastream http://mirror.yongbok.net/nongnu/linphone/mediastreamer/?
./configure --prefix=/usr ?--disable-static ? --enable-video=yes --enable-tests --disable-gsm ?--enable-ffmpeg --enable-sdl


--------------------------如若要編linphone,需做如下步驟-------------------------


15) 編譯osip ? libosip2-3.2.0.tar.gz(http://ftp.gnu.org/gnu/osip/)
16) 編譯 libeXosip2-3.3.0.tar.gz(http://ftp.twaren.net/Unix/NonGNU/exosip)


17)編譯linphone (http://www.linphone.org/index.php/eng/download)
無視頻
? ?./configure --prefix=/home/ub/MyInstallProgram --disable-video --with-osip=/home/ub/Mylib
有視頻
? ?root@ubuntu:/usr/src/linphone-3.5.2# ./configure --prefix=/home/ubuntu/myinstallprogram/ --enable-video --enable-alsa --with-osip=/usr --with-readline=/usr --with-ffmpeg=/usr --with-sdl=/usr


-----------------------可能遇到的問題------------------------------------
?
?1、編譯db
? cd ./db-4.5.20/build_unix
? ?../dist/configure --prefix=/usr/local/db-4.5.20
? ?make & make install




2、
error: Package requirements (gtk+-2.0 >= 2.18.0 gthread-2.0) were not met:
:
sudo apt-get install libperl-dev
sudo apt-get install libgtk2.0-dev


3、沒裝g++ ,sudo apt-get install g++
error
configure: error: C++ compiler cannot create executables
configure: error: GNU gettext tools not found; required for intltool
sudo apt-get install g++

總結

以上是生活随笔為你收集整理的编译mediastreamer2/ffmpeg/linphone(x86平台)的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。