A33_Vstar_Android_SDK开发 遇到的问题
整理一下Android SDK编译及烧写的时候,遇到的问题和解决的办法
问题1 .tar.bz2文件解压命令
解决办法:
.tar.gz 格式解压为 tar -zxvf xx.tar.gz
.tar.bz2 格式解压为 tar -jxvf xx.tar.bz2
https://www.cnblogs.com/0616--ataozhijia/p/3670893.html
问题2 有一些老版本的arm-gcc 编译程序时经常报错arm-linux-gnueabihf-g++: error while loading shared libraries: libstdc++.so.6 no such file and .......
解决办法:
apt-get install lib32z1 lib32ncurses5
apt-get install lib32stdc++6
https://blog.csdn.net/sfe1012/article/details/74980694
问题3 编译内核提示mkimage command not found – U-Boot images will not be built
解决办法:
sudo apt-get install u-boot-tools
https://blog.csdn.net/eibo51/article/details/51901480
问题4 linux下安装jdk6步骤详解
解决办法:https://www.aliyun.com/jiaocheng/167646.html
解决办法:https://www.cnblogs.com/shihaiming/p/5809553.html
问题5 最新的Ubuntu版本使用的是make版本是4.0.在编译Android4.4源码包时,由于make版本过高,命令提示行会提示编译Android4.4源码包需要make的版本为3.81或3.82.
build/core/main.mk:42: ********************************************************************************
build/core/main.mk:43: * You are using version 3.82 of make.
build/core/main.mk:44: * Android can only be built by version 3.81.
build/core/main.mk:45: * see http://source.android.com/source/download.html
build/core/main.mk:46: ********************************************************************************
build/core/main.mk:47: *** stopping。 停止。
解决办法:https://blog.csdn.net/qq_29224775/article/details/46595209
问题6 下载make压缩包
解决办法:ftp://ftp.gnu.org/gnu/make/
问题7 在编译Android之前要安装的包
在编译Android源码的时候经常会因为系统缺少某一个软件包而出错,所以在编译Android之前建议按照下面的连接把ubuntu的包都安装一遍
如果在编译的时候出现如下错误:
Traceback (most recent call last):
File "scripts/make_css_property_names.py", line 238, in <module>
in_generator.Maker(CSSPropertiesWriter).main(sys.argv)
File "/home/zyli/xa/A33/Android_SDK/android/external/chromium_org/third_party/WebKit/Source/core/scripts/in_generator.py", line 119, in main
writer.write_files(options.output_dir)
File "/home/zyli/xa/A33/Android_SDK/android/external/chromium_org/third_party/WebKit/Source/core/scripts/in_generator.py", line 77, in write_files
self._write_file(output_dir, generator(), file_name)
File "scripts/make_css_property_names.py", line 233, in generate_implementation
gperf = subprocess.Popen(gperf_args, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
make: *** [out/target/product/vstar/obj/GYP/shared_intermediates/blink/CSSPropertyNames.cpp] Error 1
解决办法:
sudo apt-get install git -y
sudo apt-get install gnupg -y
sudo apt-get install flex -y
sudo apt-get install bison -y
sudo apt-get install gperf -y
sudo apt-get install build-essential -y
sudo apt-get install zip -y
sudo apt-get install curl -y
sudo apt-get install libc6-dev -y
sudo apt-get install libncurses5-dev:i386 -y
sudo apt-get install x11proto-core-dev -y
sudo apt-get install libx11-dev:i386 -y
sudo apt-get install libreadline6-dev:i386 -y
sudo apt-get install g++-multilib -y
sudo apt-get install mingw32 -y
sudo apt-get install tofrodos -y
sudo apt-get install python-markdown -y
sudo apt-get install libxml2-utils -y
sudo apt-get install xsltproc -y
sudo apt-get install zlib1g-dev:i386 -y
http://www.embsky.com/forum.php?mod=viewthread&tid=1134