最近做交叉編譯真是做的死去活來,不過 最後還是成功了,在此總結一下。
若此處出錯:
configure: error: libgcryptnot found. Install libgcrypt or use --disable-libgcrypt. Have a nice day.
解決方法見最後總結第2步。
遇到主要問題總結:
1.版本問題:一定要注意找對應自己vlc版本的工具,不然沒戲。
2.若出現libcrypt not found的錯誤,就要安裝libcrypt,全部安裝完若還是出現這個問題就把第三步2和第四步1做的刪掉再重來這兩步。
libgcrypt依賴於libgpg-error。首先下載libgpg-error和libgcrypt。
需要到ftp://ftp.gnupg.org/gcrypt/libgpg-error/下載目前最新版本
libgpg-error-1.17.tar.gz,若有更高版本,請自行下載
到ftp://ftp.gnupg.org/gcrypt/libgcrypt/下載目前最新版本libgcrypt-1.6.2.tar.gz, 若有更高版本,請自行下載
在linux下安裝:點擊打開鏈接 點擊打開鏈接 這是最新版本libgpg-error和libgcrypt-1.6.2安裝方法的鏈接。
網址爲:http://www.linuxfromscratch.org/blfs/view/svn/general/libgpg-error.html
和http://www.linuxfromscratch.org/blfs/view/svn/general/libgcrypt.html
libgpg-error-1.17安裝:
Install libgpg-error by running the following commands: ./configure --prefix=/usr --disable-static && make To test the results, issue: make check. Now, as the root user: make install && install -v -m644 -D README /usr/share/doc/libgpg-error-1.17/README
libgcrypt-1.6.2安裝(實驗中執行了紅字部分):
Install libgcrypt by running the following commands: ./configure --prefix=/usr && make Only info documentation is shipped in the package tarball. If you wish to build alternate formats of the documentation, (you must have texlive-20130530 installed to build the PDF and PostScript documentation), then issue the following commands: make -C doc pdf ps html && makeinfo --html --no-split -o doc/gcrypt_nochunks.html doc/gcrypt.texi && makeinfo --plaintext -o doc/gcrypt.txt doc/gcrypt.texi To test the results, issue: make check. Now, as the root user: make install && install -v -dm755 /usr/share/doc/libgcrypt-1.6.2 && install -v -m644 README doc/{README.apichanges,fips*,libgcrypt*} \ /usr/share/doc/libgcrypt-1.6.2 If you built the additional documentation, install it by issuing the following commands as the root user: install -v -dm755 /usr/share/doc/libgcrypt-1.6.2/html && install -v -m644 doc/gcrypt.html/* \ /usr/share/doc/libgcrypt-1.6.2/html && install -v -m644 doc/gcrypt_nochunks.html \ /usr/share/doc/libgcrypt-1.6.2 && install -v -m644 doc/gcrypt.{pdf,ps,dvi,txt,texi} \ /usr/share/doc/libgcrypt-1.6.2
3.出現錯誤libqt4_plugin_la-dialogs_provider.lo
解決方法:把../extras/package/win32/configure.sh --host=i686-w64-mingw32 改爲
../extras/package/win32/configure.sh
--host=i686-w64-mingw32 --disable-qt4 --disable-skins2
4.moc:無法執行二進制文件的錯誤
rcc:無法執行二進制文件的錯誤
uic:無法執行二進制文件的錯誤
解決方法:根據提示找到moc所在位置,然後刪除moc、rcc和uic,不要刪除moc.exe、rcc.exe和uic.exe。然後重新執行第四大步。
5.stdole2.idl錯誤
sudo apt-get install wine-dev 或者是sudo apt-get install wine1.4-dev
6.npvlc.dll.manifest找不到
我自己拷貝了一個進去,拷貝的是win32下vlc源碼裏的
7.test.html找不到
和上一步一樣就是拷貝了一個