【问题标题】:Building android source构建安卓源码
【发布时间】:2012-02-15 12:40:01
【问题描述】:

我要从源代码构建一个 Android 映像,但要支持智能卡 api。

我已经列出了我已经完成的步骤和我面临的错误。

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

【问题讨论】:

  • 我不会对此投反对票,但它不属于这里尝试 android.stackexchange.com 或者 xda 论坛 android 标签说 Android is Google's software stack for mobile devices. Please use the Android-specific tags such as [android-intent], not [intent]. For non-developer questions, see http://android.stackexchange.com
  • 对不起,塞尔文。如果你能找到与此相关的文章并告诉我,我会很有帮助的..

标签: android makefile smartcard android-source android-build


【解决方案1】:

我遇到了类似的错误,并按照this 链接解决了问题。

我会解释它说什么,

  • cd 到你的 aosp 目录

    cd /path/to/ur/aosp
    
  • 例如使用任何编辑器打开文件系统/media/opensles/tests/automated/BufferQueue_test.cpp。

    vi system/media/opensles/tests/automated/BufferQueue_test.cpp 
    
  • 现在添加链接中描述的包含文件并保存文件 BufferQueue_test.cpp

  • 现在使用这些命令

    sudo updatedb
    
    locate OpenSLESUT.h /home/ur aosp path/system/media/opensles/libopensles/OpenSLESUT.h 
    
    cp /home/ur aosp path/system/media/opensles/libopensles/OpenSLESUT.h /home/<ur aosp path>/system/media/opensles/include/SLES/OpenSLESUT.h
    

注意:您的 aosp 路径是您的 aosp android 项目的路径。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-05-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-03-29
    相关资源
    最近更新 更多