2012-02-15 83 views
1

我要從源代碼構建Android圖像,但具有智能卡API支持。構建android源碼

我列出了我做過的步驟以及我面對的錯誤。請幫助我解決這個問題。

Patching Smart card API with android source 

1. Downloaded android source 「android-2.3.5_r1」 from the 「source.android.com」 
$ mkdir ~/bin 
$ PATH=~/bin:$PATH 
$ mkdir ANDROID2.3.5_r1 
$ cd ANDROID2.3.5_r1 
$ repo init -u https://android.googlesource.com/platform/manifest -b android-2.3.5_r1 
$ repo sync 

The download was successful and complete 

2. Downloaded the Smart card patch 「smartcard-api-2_3_0.tgz」 from 「code.google.com/p/seek-for-android/downloads」 

3. Applying the patches 
$ cd <ANDROID_ROOT_DIR> 
$ patch -p1 < <path_to_my_patches>/smartcard-api-2_3_0/smartcard-api.patch 
$ patch -p1 < <path_to_my_patches>/smartcard-api-2_3_0/uicc.patch 
$ patch -p1 < <path_to_my_patches>/smartcard-api-2_3_0/emulator.patch 
$ patch -p1 < <path_to_my_patches>/smartcard-api-2_3_0/cts.patch 
$ make update-api 

All the patches were successfully applied with no errors and hunk failures 

4. Building the Source 
$ source build/envsetup.sh 
$ lunch full-eng 
$ make -j2 

在出現的錯誤如下

target thumb C: SRecTestAudio <= external/srec/srec/test/SRecTestAudio/src/SRecTestAudio.c 
system/media/opensles/tests/automated/BufferQueue_test.cpp:34:29: error: SLES/OpenSLESUT.h: No such file or directory 
system/media/opensles/tests/automated/BufferQueue_test.cpp: In function 'void CheckErr(SLresult)': 
system/media/opensles/tests/automated/BufferQueue_test.cpp:55: error: 'slesutResultToString' was not declared in this scope 
make: *** [out/target/product/generic/obj/EXECUTABLES/BufferQueue_test_intermediates/BufferQueue_test.o] Error 1 

kindlty幫助我的問題,我已經極大地停留在這個問題上的很長一段時間,並且需要非常詳細的幫助..

謝謝提前..

+0

我不會downvote這一點,但它不屬於這裏嘗試http://android.stackexchange.com/也許XDA論壇anddroid標籤上寫着'Android是谷歌的移動設備的軟件棧。請使用Android專用標籤,例如[android-intent],而不是[intent]。對於非開發人員的問題,請參閱http:// android.stackexchange.com' – Selvin 2012-02-15 12:47:04

+0

對不起selvin。我會很好的幫助,如果你找到相關的文章,並讓我知道.. – Britto 2012-02-15 13:14:38

回答

0

我得到了類似的錯誤,並跟着this鏈接,它解決了這個問題。

我將解釋什麼它說,

  • cd到你的AOSP目錄

    CD /路徑/到/ UR/AOSP

  • 打開文件系統/媒體/ opensles /測試例如,使用任何編輯器/automated/BufferQueue_test.cpp。

    VI系統/媒體/ opensles /測試/自動化/ BufferQueue_test.cpp

  • 現在加上包括在鏈接描述文件,並將該文件保存BufferQueue_test.cpp

  • 現在使用這些命令

    須藤updatedb的

    定位OpenSLESUT.h /家庭/ UR AOSP路徑/系統/媒體/ opensles/libopensles/OpenSLESUT.h

    CP /家庭/ UR AOSP路徑/系統/媒體/ opensles/libopensles/OpenSLESUT.h /home//system/media/opensles/include/SLES/OpenSLESUT.h

注意:UR aosp路徑是您的aosp android項目的路徑。

PS:對不起,我最壞的格式