關於Android C++的NDK環境搭建(Win7系統)

來源:互聯網
上載者:User

標籤:

搭建環境需要的組件:

1.Java JDK6

2.Apache ANT構建系統

3.Android SDK

4.Cygwin

5.Android NDK

6.Eclipse IDE

 

第一步:JDK安裝,省略。

第二步:Apache ANT構建系統。

  (1)http://ant.apache.org/bindownload.cgi下載  apache-ant-1.9.4-bin.zip 解壓,將其bin目錄配置到path中。

  (2)檢驗標準:命令列:ant -version 顯示版本號碼。

第三步:SDK安裝,省略。

第四步:Cygwin整合。

  (1)在http://cygwin.com/install.html網站下載Cygwin安裝程式setup.exe。

  (2)Cygwin安裝程式會為使用者提供一個可用包列表,Android NDK要求安裝GNU Make3.8.1及以上版本。選擇Devel-GNU Make包,安裝。

  (3)將Cygwin安裝目錄下的bin配置到path中。

  (4)檢驗標準:命令列:make -version     顯示版本號碼。

第五步:NDK安裝。

  (1)訪問http://developer.android.com/tools/sdk/ndk/index.html找到Download部分,下載android-ndk-r10-windows.zip。

  (2)解壓,將android-ndk-r10-windows目錄配置到path中。

  (3)檢驗標準:命令列 ndk-build 給出 could not...資訊

第六步:Eclipse安裝,省略。

 

關於Android C++的NDK環境搭建(Win7系統)

聯繫我們

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