android2.3.4 fsl imx51编译遇到的问题总结
来源:互联网 发布:识别图片的软件 编辑:程序博客网 时间:2024/06/06 03:06
1,
Checking build tools versions...build/core/main.mk:76: ************************************************************build/core/main.mk:77: You are attempting to build on a 32-bit system.build/core/main.mk:78: Only 64-bit build environments are supported beyond froyo/2.2.build/core/main.mk:79: ************************************************************build/core/main.mk:80: *** stop. Stop.
解决方法:
修改build/core/main.mk
#ifneq (64,$(findstring 64,$(build_arch)))
ifneq (i686,$(findstring i686,$(build_arch)))
2,
build/core/base_rules.mk:78: *** Module name: libasoundbuild/core/base_rules.mk:79: *** Makefile location: external/alsa-libbuild/core/base_rules.mk:80: * build/core/base_rules.mk:81: * Each module must use a LOCAL_MODULE_TAGS in itsbuild/core/base_rules.mk:82: * Android.mk. Possible tags declared by a module:build/core/base_rules.mk:83: * build/core/base_rules.mk:84: * optional, debug, eng, tests, samplesbuild/core/base_rules.mk:85: * build/core/base_rules.mk:86: * If the module is expected to be in all buildsbuild/core/base_rules.mk:87: * of a product, then it should use thebuild/core/base_rules.mk:88: * "optional" tag: build/core/base_rules.mk:89: * build/core/base_rules.mk:90: * Add "LOCAL_MODULE_TAGS := optional" in thebuild/core/base_rules.mk:91: * Android.mk for the affected module, and addbuild/core/base_rules.mk:92: * the LOCAL_MODULE value for that componentbuild/core/base_rules.mk:93: * into the PRODUCT_PACKAGES section of productbuild/core/base_rules.mk:94: * makefile(s) where it's necessary, ifbuild/core/base_rules.mk:95: * appropriate.build/core/base_rules.mk:96: * build/core/base_rules.mk:97: * If the component should be in EVERY build of ALLbuild/core/base_rules.mk:98: * products, then add its LOCAL_MODULE value to thebuild/core/base_rules.mk:99: * PRODUCT_PACKAGES section ofbuild/core/base_rules.mk:100: * build/target/product/core.mkbuild/core/base_rules.mk:101: * build/core/base_rules.mk:102: *** user tag detected on new module - user tags are only supported on legacy modules. Stop.
解决方法:
修改hardware/alsa_sound/Android.mk
在android.mk文件中添加 LOCAL_MODULE_TAGS := optional
注意:是在每个 include $(BUILD_SHARED_LIBRARY) 的前面添加LOCAL_MODULE_TAGS := optional
共需要添加四处。
附:
user: 指该模块只在user版本下才编译
eng: 指该模块只在eng版本下才编译
tests: 指该模块只在tests版本下才编译
optional:指该模块在所有版本下都编译
the BUILDTYPE is one of the following:Buildtype Use
3,
/usr/include/gnu/stubs.h:9:27: error: gnu/stubs-64.h: No such file or directory
解决方法:
A,编译环境为32位系统的:在external/clearsilver/java-jni/Android.mk 文件中
注译掉这两句:
#LOCAL_CFLAGS += -m64
#LOCAL_LDFLAGS += -m64
B,64位系统+java1.6环境
安装:
apt-get install libc6-dev-amd64
apt-get install g++-multilib lib64stdc++6
apt-get install lib64z1-dev
C,修改你的编译环境 32位+java1.5
4,
Could not load 'clearsilver-jni'
解决方法:
修改以下文件
external/clearsilver/cgi/Android.mk
external/clearsilver/util/Android.mk
external/clearsilver/cs/Android.mk
注译掉这两句:
#LOCAL_CFLAGS += -m64
#LOCAL_LDFLAGS += -m64
5,在imx51 patch_R10.3包中的default.xml文件有:
<project path="external/alsa-lib" name="platform/external/alsa-lib" revision="refs/heads/master" /> <project path="hardware/alsa_sound" name="platform/hardware/alsa_sound" revision="refs/heads/master" /> <project path="external/alsa-utils" name="platform/external/alsa-utils" revision="refs/heads/master" /> <project path="external/mtd-utils" name="platform/external/mtd-utils" revision="refs/heads/master" />
而原来的git地址:./repo init -u git://android.git.kernel.org/platform/manifest.git -bgingerbread 已不能下载了。
现在的下载地下为:repo init -u https://android.googlesource.com/platform/manifest -b android-2.3.4_r1
上面的那些平台相关包:alsa-lib alsa_sound ...都不能下载了。只能用原来android2.2上的。
6,
target arm C++: libaudio <= hardware/alsa_sound/ALSAControl.cpptarget arm C: libasound <= external/alsa-lib/src/alisp/alisp.cexternal/alsa-lib/src/alisp/alisp.c: In function 'F_princ':external/alsa-lib/src/alisp/alisp.c:1716: error: format not a string literal and no format arguments
解决方法:
alisp.c 1716
- snd_output_printf(instance->out, p1->value.s);
+ snd_output_printf(instance->out, "%s", p1->value.s);
- android2.3.4 fsl imx51编译遇到的问题总结
- Ubuntu14.04系统下编译Android2.3.4遇到的问题总结
- android2.2源码编译过程遇到的问题
- fsl imx51 android真机调试
- rt3070驱动移植到fsl imx51上
- wxWidgets编译和遇到的问题总结
- csipsimple编译遇到的问题总结
- [总结] wxWidgets遇到的编译问题
- workbench编译platform遇到的问题总结
- linux内核编译遇到的问题总结
- VS2010 DSOFrame 编译遇到的问题总结
- 驱动编程---遇到的编译问题总结
- 关于编译android2.3的问题
- android2.3编译的两个问题
- 编译android2.3时出现的问题
- 编译Android2.3出现的问题
- 转载:Ubuntu11.04 编译Android2.3源码 遇到的错误
- ubuntu 12.04(64位 server)下搭建 android2.3/android4.0开发环境及遇到的编译问题
- postfix如何添加邮箱用户?
- POJ1753(BFS+位压缩)
- DOM
- ExtJS在生成Tree时图片不显示问题
- rails插件
- android2.3.4 fsl imx51编译遇到的问题总结
- 在Centos上安装RabbitMQ流程
- J2EE 一次清除所有的session
- Android UI之ProgressBar(进度条)
- simple model fitting using R
- 【吼吼睡cocos2d学习笔记】第六章 - cocos2d中的层以及层之间的传值
- oracle 单表流复制 stream
- MFC Activex Control
- 常用uri