在centos上編譯和安裝vlc

來源:互聯網
上載者:User

軟體:vlc (videolan) ,從官網下載

版本:2.1.15

主機:Centos6.5

預備軟體: ffmpeg, 版本:2.2.14,從ffmpeg.org下載

其他預備軟體如果缺少,通過增加rpmforge庫,將對應devel庫加入。

yasm使用yum install -y yasm

步驟:

1 編譯ffmpeg

./configure --enable-pic

1.1 在Make之前需要修改Makefile

將其中一句話加上-fPIC

加入後的內容是:

$$(OBJS-$(1)): CFLAGS  += $(CFLAGS-$(1)) -fPIC

加入目的是因為後面vlc編譯時間候會報告串連libavformat.a錯,並且要求加入-fPIC選項

1.2

make
su
make install

2 編譯vlc

./bootstrap

./configure --with-pic

make

su

make install



參考:

1 對於libavformat連結錯誤的處理

Temporary workaround fix for compiling libav-0.8.1:
./configure --enable-pic && make
su
make install
<then proceed to ./configure && make VLC>

https://trac.videolan.org/vlc/ticket/6729#comment:3


相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.