android - 无法编译cwm恢复

标签 android c compilation cyanogenmod

大家好,我正在翻译 CWM 恢复。我下载了cm源码。但是当我输入这个命令时:

制作-j4恢复镜像

我收到太多错误并且编译失败:

    jale@jale-PC:~/android$ make -j4 recoveryimage
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
CM_VERSION=
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.8.0-19-generic-x86_64-with-Ubuntu-13.04-raring
HOST_BUILD_TYPE=release
BUILD_ID=KOT49H
OUT_DIR=/home/jale/android/out
============================================
/home/jale/android/out/target/product/generic/obj/APPS/SignatureTest_intermediates
find: “src”: No file or directory
grep: /build/target/board/generic/recovery.fstab: No file or directory
No private recovery resources for TARGET_DEVICE generic
build/core/tasks/kernel.mk:91: **********************************************************
build/core/tasks/kernel.mk:92: * Kernel source found, but no configuration was defined  *
build/core/tasks/kernel.mk:93: * Please add the TARGET_KERNEL_CONFIG variable to your   *
build/core/tasks/kernel.mk:94: * BoardConfig.mk file                                    *
build/core/tasks/kernel.mk:95: **********************************************************
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-ld: error: /home/jale/android/out/target/product/generic/obj/lib/crtbrand.o: file is empty
make: *** [/home/jale/android/out/target/product/generic/obj/lib/crtbegin_static.o] Hata 1
make: *** Waiting for unfinished operations....
target thumb C++: libc <= bionic/libc/bionic/pthread_debug.cpp
target thumb C++: libc <= bionic/libc/bionic/libc_init_dynamic.cpp
cc1plus: warning: command line option '-std=gnu99' is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option '-std=gnu99' is valid for C/ObjC but not for C++ [enabled by default]
bionic/libc/bionic/libc_init_dynamic.cpp:95:17: warning: unused parameter 'onexit' [-Wunused-parameter]
bionic/libc/bionic/pthread_debug.cpp:545:13: warning: 'void hashmap_removeEntry(HashTable*, HashEntry*)' defined but not used [-Wunused-function]
jale@jale-PC:~/android$

谢谢。

最佳答案

我认为您需要按照说明选择要为其构建源代码的设备并首先构建内核。

关于android - 无法编译cwm恢复,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21498538/

相关文章:

android - 如何在 Kotlin 中比较图像文件名和字符串?

使用变量参数时 GCC 编译错误

scala - 为了使编译速度更快,...更少的特征有吗?

java - 编译在运行时引用当前程序类的Java代码

安卓工作室插件 : Adding icon near SDK manager

android - MPAndroidChart LineChart 双击手势控制

Android 使用数据绑定(bind)库动态包含布局

c - 我怎样才能让 GetKeyState 理解大写和非大写字母

c - 如何在打开/写入功能中实现超时

compilation - OpenCL,包含文件