2012-02-15 85 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:对不起,我最坏的格式