2012-02-15 10 views
1

私はソースからAndroidスマートカードAPIをサポートしています。Building android source

私は、私がやり遂げたステップと私が直面しているエラーをリストアップしました。親切に私にこの問題を助けてください。

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は '言うGoogleの所属モバイルデバイス用のソフトウェアスタック[意図]ではなく[アンドロイドインテント]などのAndroid固有のタグを使用してください。開発者以外の質問については、http:// android.stackexchange.com' – Selvin

+0

Sorry selvinを参照してください。この記事に関連する記事を見つけたら教えてください。 – Britto

答えて

0

私も同様のエラーが発生し、問題を解決したthisリンクに従っています。

私はそれが言うことを説明します、あなたのAOSPディレクトリ

CD /パス/に/ UR/AOSP

  • を開き、ファイルシステム/メディア/ opensles /テストに

    • CD /automated/BufferQueue_test.cppを編集します。

      VIシステム/メディア/ opensles /テスト/自動化/ BufferQueue_test.cpp今

    • 今、これらのコマンドを使用し

    • BufferQueue_test.cpp

      をリンクに記述されているファイルを含め追加し、ファイルを保存します

      にsudo updatedbを

      見つけOpenSLESUT.h /ホーム/ウルAOSPパス/システム/メディア/ opensles/libopensles/OpenSLESUT.h

      CP /ホーム/ウルAOSPパス/システム/メディア/ opensles/libopensles/OpenSLESUT.h /home//system/media/opensles/include/SLES/OpenSLESUT.h

    :ウルaospパスは、あなたのaosp androidプロジェクトへのパスです。

    PS:私の最悪の書式設定のため申し訳ありません