ubuntu开机错误/root/.profile
gedit/root/.profile mesg改为tty-s&&mesg n
编译内核错误
1.make[1]:*** [scripts/kconfig/dochecklxdialog] 错误 1
make:*** [menuconfig] 错误 2
解决:解决办法:sudo apt-get install libncurses5-dev 或者:sudoapt-get install ncurses-dev
zImage
/home/catia/android-sdks/platform-tools/aapt:
error while loading shared libraries: libz.so.1: cannot open shared object file:
No such file or directory
解决sudoapt-get install ia32-libs
运行第二个命令时有可能会说找不到或者被其它的所替代,然后再把终端列出的安装就好了.
装库
/bin/bash:bison: 未找到命令
sudoapt-get install bison
make:*** 不 能创建“out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/aapt”需要的目标“
sudoapt-getinstall lib32z1-dev
错误:
make:*** [out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp] error1
解决:
sudoapt-get install g++-multilib
sudoapt-get install g++-4.4-multilib gcc-4.4-multilib
/bin/bash:flex: 未找到命令
make:***[out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_l.cpp]错误 127
解决方法:sudoapt-get install flex
j/SHARED_LIBRARIES/libdvm_intermediates/native/dalvik_system_Zygote.o]错误 1
在dalvik/vm/native/dalvik_system_Zygote.cpp中间增加一个头文件定义#include <sys/resource.h>
system/core/gpttool/gpttool.c:
make[3]:***[out/host/linux-x86/obj/EXECUTABLES/gpttool_intermediates/gpttool.o]Error 1
(2) 解决方法
原因是zlib1g-dev有个头文件修改了路径,及zconf.h放到了/usr/include/x86_64-linux-gnu/,所以将其拷贝到/usr/include/下即可了
make:***[out/target/product/generic/obj/STATIC_LIBRARIES/libwebcore_intermediates/WebCore/css/CSSPropertyNames.h]错误25
make:***正在删除文件“out/target/product/generic/obj/STATIC_LIBRARIES/libwebcore_intermediates/WebCore/css/CSSPropertyNames.h”
解决方法:
sudoapt-get install gperf
make: *** [out/target/product/mx3/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/html/DocTypeStrings.cpp] Error 2
sudo apt-get install libswitch-perl
Youare attempting to build with an unsupported JDK.
You useOpenJDK but only Sun/Oracle JDK is supported.
Please follow themachine setup instructionsat
https://source.android.com/source/download.html
************************************************************
build/core/main.mk:152:*** stop。 停止。
解决方法:你使用的JDK版本不对,你的linux是openJDK,安卓源码需要Oracle的JDK。
你输入java
-version看看版本就知道了
apt-get remove openjdk*可以卸载openJDK
make:***[out/target/product/tq210/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/css/CSSPropertyNames.h]错误 25
解决方法:sudoapt-getinstall libswitch-perl
/bin/bash:bison: command not found
解决方法:
使用sudo
apt-get install bison
这个包会依赖如下包:
libbison-dev libsigsegv2 m4 ,apt-get 会自动安装这些依赖包.
问题2:
找不到xsltproc命令:
/bin/bash:xsltproc: command not found
解决方法:
可以使用sudo
apt-get install xsltproc
zshh@HP:~/work/arm/ARM1/Android/android-4.2.2_r1$
sudo apt-get install xsltproc
问题3:
/bin/bash: flex: command not found
解决方法:
zshh@HP:~/work/arm/ARM1/Android/android-4.2.2_r1$
sudo apt-get install flex
依赖包:
libfl-dev
问题4:
sh: 1: sh: 1: gperf: not found
gperf:not found
解决方法:
zshh@HP:~/work/arm/ARM1/Android/android-4.2.2_r1$
sudo apt-get install gperf
问题5:
In file included from /usr/include/endian.h:60:0,
from/home/zshh/work/arm/ARM1/Android/android-4.2.2_r1/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/../sysroot/usr/include/sys/types.h:217,
fromcts/suite/audio_quality/lib/src/SignalProcessingImpl.cpp:17:
/home/zshh/work/arm/ARM1/Android/android-4.2.2_r1/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/../sysroot/usr/include/bits/byteswap.h:22:3:error: #error "Never use <bits/byteswap.h> directly;include <byteswap.h> instead."
hostC++: libcts_audio_quality <=cts/suite/audio_quality/lib/src/FileUtil.cpp
解决方法:
zshh@HP:~/work/arm/ARM1/Android/android-4.2.2_r1$
sudo apt-get install gcc-multilib
问题6:
/bin/bash: xmllint: command not found
解决方法:
zshh@HP:~/work/arm/ARM1/Android/android-4.2.2_r1$
sudo apt-get install libxml2-utils
问题7:
make:***[out/target/product/tiny4412/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/bindings/V8CSSCharsetRule.h]Error 1
解决方法:
这个是以为gcc,和g++版本问题.
1、进入/usr/bin
$ ls -l gcc* 查看gcc当前连接版本
$ rm gcc 删除gcc连接
同理
$
ls -l g++*
$
rm g++
2、降级到4.4.7版本
$
sudo apt-get install gcc-4.4
$
sudo apt-get install g++-4.4
$
sudo apt-get install g++-4.4-multilib //64位
$
sudo apt-get install gcc-4.4-multilib
ln
-s gcc-4.4 gcc
ln
-s g++4.4 g++