CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
12
返回列表 发新帖
楼主: 蓝天-彭

Cubieboard2 android编译及制作固件

[复制链接]
发表于 2015-8-12 17:30:50 | 显示全部楼层
SDK最终通过百度云盘下载了,当编译Android时出错:

第一次出错为:eric@eric:android$ make -j8
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.2.2
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.11.0-26-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=JDQ39
OUT_DIR=out
============================================
external/bluetooth/bluedroid/Android.mk:8: NO BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR, using only generic configuration
frameworks/av/media/CedarX-Projects/CedarAndroidLib/Android.mk:9: frameworks/av/media/CedarX-Projects/CedarAndroidLib/LIB_JB42_/Android.mk: 没有那个文件或目录
CEDARX_PRODUCTOR: GENERIC
find: `../../vendor/unbundled_google/libs/gcm/gcm-client/src': 没有那个文件或目录
find: `../../vendor/unbundled_google/libs/gcm/gcm-server/src': 没有那个文件或目录
find: `../../vendor/unbundled_google/libs/gcm/gcm-client/src': 没有那个文件或目录
find: `../../vendor/unbundled_google/libs/gcm/gcm-server/src': 没有那个文件或目录
find: `src': 没有那个文件或目录
*** Overlay change detected, clean shared intermediate files...
*** rm -rf out/target/common/obj/APPS/framework-res_intermediates out/target/common/obj/APPS/SettingsProvider_intermediates
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/Effect_Tick.ogg:system/media/audio/ui/Effect_Tick.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/KeypressStandard_120.ogg:system/media/audio/ui/KeypressStandard.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/KeypressSpacebar_120.ogg:system/media/audio/ui/KeypressSpacebar.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/KeypressDelete_120.ogg:system/media/audio/ui/KeypressDelete.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/KeypressReturn_120.ogg:system/media/audio/ui/KeypressReturn.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/VideoRecord.ogg:system/media/audio/ui/VideoRecord.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/camera_click.ogg:system/media/audio/ui/camera_click.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/LowBattery.ogg:system/media/audio/ui/LowBattery.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/Dock.ogg:system/media/audio/ui/Dock.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/Undock.ogg:system/media/audio/ui/Undock.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/Lock.ogg:system/media/audio/ui/Lock.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/Unlock.ogg:system/media/audio/ui/Unlock.ogg ignored.
make: *** 没有规则可以创建目标“frameworks/av/media/CedarX-Projects/CedarAndroidLib/LIB_JB42_/Android.mk”。 停止。
解决办法:通过修改frameworks/av/media/CedarX-Projects/CedarAndroidLib/Android.mk文件把F51直接替换掉解决。但是一直报以下错误,忽略之也能继续执行。
find: `../../vendor/unbundled_google/libs/gcm/gcm-client/src': 没有那个文件或目录
find: `../../vendor/unbundled_google/libs/gcm/gcm-server/src': 没有那个文件或目录
find: `../../vendor/unbundled_google/libs/gcm/gcm-client/src': 没有那个文件或目录
find: `../../vendor/unbundled_google/libs/gcm/gcm-server/src': 没有那个文件或目录
find: `src': 没有那个文件或目录

第二次出错为:
device/softwinner/common/hardware/libhardware/hwcomposer/hwcomposer.cpp:28:25: fatal error: drv_display.h: No such file or directory
compilation terminated.
device/softwinner/wing-common/hardware/libhardware/display/display.cpp:38:25: fatal error: drv_display.h: No such file or directory
compilation terminated.
target thumb C++: libOmxCore <= hardware/aw/omxcore/src/omx_core_cmp.cpp
make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/hwcomposer._intermediates/hwcomposer.o] 错误 1
make: *** 正在等待未完成的任务....
make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/display.sun7i_intermediates/display.o] 错误 1
解决办法:通过查找丢失的头文件放到制定目录亦能解决。

第三次错误:
target thumb C++: libCedarX <= frameworks/av/media/CedarX-Projects/CedarXAndroid/IceCreamSandwich/CedarXSoftwareRenderer.cpp
frameworks/av/media/CedarX-Projects/CedarXAndroid/IceCreamSandwich/CedarXSoftwareRenderer.cpp:119:6: error: #error "Unknown chip type!"
frameworks/av/media/CedarX-Projects/CedarXAndroid/IceCreamSandwich/CedarXSoftwareRenderer.cpp:330:6: error: #error "Unknown chip type!"
target thumb C++: libCedarX <= frameworks/av/media/CedarX-Projects/CedarXAndroid/IceCreamSandwich/CedarXRecorder.cpp
make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/libCedarX_intermediates/CedarXSoftwareRenderer.o] 错误 1
make: *** 正在等待未完成的任务....
eric@eric:android$
不知解决办法;
当遇到编译出错,该怎么解决,到底是问什么会出错,所有安装包我都安装和更新过了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2015-8-13 09:49:31 | 显示全部楼层
ericwang 发表于 2015-8-12 17:30
SDK最终通过百度云盘下载了,当编译Android时出错:

第一次出错为:eric@eric:android$ make -j8

你使用的是Cubieboard2,在lunch时要选择Cubieboard2对应的那项
回复 支持 反对

使用道具 举报

发表于 2015-8-14 10:29:41 | 显示全部楼层
谢谢版主您,我已经编译好内核了,我有重新删除了,重新解压,重新编译。也许是我的移动硬盘是挂载的,make后出错,重启,重新挂载就出错了。也许是电脑配置太低,编译了好久。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|粤ICP备13051116号|cubie.cc---深刻的嵌入式技术讨论社区

GMT+8, 2024-11-23 05:09 , Processed in 0.020250 second(s), 13 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部