windows平臺下vlc編譯之五:vlc-0.9.6的編譯

請移步https://higoge.github.io/,全部下載資料在那個博客都能找到。謝謝。 git

--------------------------------------------------------------------github

    前兩天Jeremiah偶爾用最新的Cygwin編譯了下vlc-0.9.6,好像修改一個錯誤就編譯經過了,很簡單,在這大致寫一下。
shell

   

    1. 安裝最新的Cygwin,圖片見附件(pic.rar)。(如何卸載Cygwin或者使用雙Cygwin,請看下一篇日誌:《Cygwin的卸載與新舊雙版本運行》)bootstrap

Cygwin下載:[url]http://www.cygwin.com/setup.exe[/url]選擇經過網絡安裝。vim

強烈建議經過Jeremiah提供的本地文件安裝:網絡

Cygwin-new(20081208)在個人公共郵箱提供了下載,具體下載方式爲:
1). 登陸http://mail.qq.com
2). 用戶名:jeremiah_vlc
3). 密碼:發郵件給我(jeremiah.vlc@gmail.com),我會告知。
4). 在「個人文件夾」的「Jeremiah_VLC相關資源」有全部資料的超大附件鏈接。
curl

 

 

Archive    
        unzip 
        zip
Devel    
        autoconf 
        automake  
        binutils 
        cvs 
        gcc 
        gcc-core 
        gcc-g++ 
        gcc-mingw 
        gcc-mingw-core 
        gcc-mingw-g++ 
        gdb 
        gettext 
        gettext-devel
        git 
        libiconv
        libgcrypt-devel
        libtool 
        make 
        mingw-runtime
        nasm
        patchutils
        pkg-config 
        subversion
Editor    
        vim
Libs    
        expat
        libgcrypt
Web    
        curl
        wgetide

   

    2. 下載源碼和庫:ui

源碼:[url]http://download.videolan.org/pub/videolan/vlc/0.9.6/vlc-0.9.6.tar.bz2[/url]url

庫:http://www.namipan.com/downfile/contrib-20081021-win32-bin-gcc-4.2.1-sjlj-runtime-3.13-only.tar.bz2/7691f26e0285d472e5642666e3c6cbf94d2bd21d7032ea01

 

    3. 解壓源文件到e:/cygwin/home/yourname/。解壓庫到e:/cygwin/。

刪除E:/cygwin/usr/win32/bin/的moc,rcc,uic。

修改vlc-0.9.6/configure.ac,

修改
AM_GNU_GETTEXT_VERSION([0.17])

AM_GNU_GETTEXT_VERSION([0.15])

或運行

sed -i 's/AM_GNU_GETTEXT_VERSION(0.17)/AM_GNU_GETTEXT_VERSION(0.15)/g' configure.ac

 

    4. 保存腳本configure-vlc01.sh(見附件)。

PATH=/usr/win32/bin:$PATH \
PKG_CONFIG_LIBDIR=/usr/win32/lib/pkgconfig \
CPPFLAGS="-I/usr/win32/include -I/usr/win32/include/ebml" \
LDFLAGS=-L/usr/win32/lib \
CC="gcc -mno-cygwin" CXX="g++ -mno-cygwin" \
./configure \
         --host=i686-pc-mingw32 \
         --enable-nls --enable-sdl --with-sdl-config-path=/usr/win32/bin \
         --enable-avcodec --enable-avformat --enable-swscale \
         --enable-faad --enable-flac --enable-theora \
         --enable-live555 --with-live555-tree=/usr/win32/live.com \
         --enable-caca --with-caca-config-path=/usr/win32/bin \
         --with-xml2-config-path=/usr/win32/bin \
         --with-dvdnav-config-path=/usr/win32/bin \
         --disable-cddax --disable-vcdx --enable-goom \
         --enable-twolame --enable-dvdread \
         --enable-debug    --enable-dca \
         --disable-mkv --disable-taglib

 

    5. 運行./bootstrap && dos2unix ./configure-vlc01.sh && ./configure-vlc01.sh && make。

 

    6. 出錯:

_la-vlm.o input/.libs/libvlccore_la-vlmshell.o misc/.libs/libvlccore_la-revision
.o     |    | /usr/bin/sed -e '/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__
/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //' | sort |
uniq > .libs/libvlccore.exp'
make[4]: *** [libvlccore.la] Error 1
make[4]: Leaving directory `/home/wangwei1/vlc-0.9.6/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/wangwei1/vlc-0.9.6/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/wangwei1/vlc-0.9.6/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/wangwei1/vlc-0.9.6'
make: *** [all] Error 2

打開libtool第144行:

修改
global_symbol_pipe=""

global_symbol_pipe="sed -n -e 's/^.*[     ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[             ][            ]*\\(\\)\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1\\2\\3 \\3/p'"

繼續make && make package-win32-base。

相關文章
相關標籤/搜索