vlc-android源碼編譯過程記錄

來源:互聯網
上載者:User
Ubuntu 12.04虛擬機器官方文檔: http://wiki.videolan.org/AndroidCompile#Get_VLC_Source
按照官方說明,安裝系統並更新後,安裝git, apache-ant (or ant), autoconf, automake, autopoint, libtool, gawk (or nawk), gcc, g++, pkg-config, cmake, patch, subversion。然後是設定環境,下載源碼這些都一路安裝說明來。再是編譯:
wayne@wayne-virtual-machine:~/vlc_android/android$ sh compile.shFor an ARMv6 device without FPU, you need a build without FPU:$ export NO_FPU=1For an ARMv5 device or the Android emulator, you need an ARMv5 build:$ export NO_ARMV6=1If you plan to use a release build, run 'compile.sh release'VLC source not found, cloningCloning into 'vlc'...remote: Counting objects: 392605, done.remote: Compressing objects: 100% (77171/77171), done.
出錯:
make: *** [http://www.cnblogs.com/contrib/tarballs/libmpeg2-0.5.1.tar.gz] 錯誤 4
因為videolan的提供的包無法訪問下載,手動下載libmpeg2-0.5.1.tar.gz,放在android/vlc/contrib/android目錄下。
  出錯:
BUILD FAILED
/home/wayne/android/android-sdk-linux/tools/ant/build.xml:539: Unable to resolve project target 'android-17'

Total time: 2 seconds
make: *** [vlc-android/bin/VLC-debug.apk] 錯誤 1

把17改成15,因為安裝sdk api的時候只安裝了15

修改project.properties
修改vlc-android/AndroidManifest.xml
把android:targetSdkVersion="17"改成android:targetSdkVersion="15"
 我在編譯的時候沒有在ubuntu下直接編譯到產生apk,產生了需要的庫就ok,剩下的工作在Windows下完成。 Windows + eclipse

編譯出libvlcjni.so等庫後,就可以在eclipse中匯入三個項目,以產生apk包安裝。

ActionBarSherlock和SlidingMenu項目位於目錄vlc-android\java-libs下。其中ActionBarSherlock和SlidingMenu項目勾選isLibrary屬性

在VLC項目中將ActionBarSherlock和SlidingMenu添加為Library

PS:在VLC項目中需要包含這四個依賴包

在4.0.3模擬器上運行如下,因為是模擬器的緣故,畫面較卡

以上就是vlc-android代碼的編譯過程,歡迎交流!!!

本文連結:http://www.cnblogs.com/dwayne/archive/2012/12/21/vlc_android.html

 

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.