www.bubuko.com/infodetail-655571.html
解压软件安装:
sudo apt-get install unrar rar zip gzip
串口工具安装:
sudo apt-get install minicom
编辑器:
sudo apt-get install vim
文本比较器:
sudo apt-get install meld
版本控制工具:
sudo apt-get install git
汉语输入安装:
sudo apt-get install ibus-googlepinyin
adb install:
sudo apt-get install
VIM 配置
set ts=4
set expandtab
%retab!
中文输入法:
设置-语言-
环境工具安装
sudo apt-get install bison git-core flex gnupg gperf build-essential zip gzip curl zlib1g-dev libc6-dev lib32ncurses5-dev x11proto-core-dev libx11-dev lib32readline-gplv2-dev lib32zl-dev libgl1-mesa-dev gcc-multilib g++-multlib mingw32 tofrodos python-markdown libxml2-utils xsltproc
jdk
sudo update-alternatives –install /usr/bin/java java /usr/lib/jvm/java/jdk1.7.0_10/bin/java 300 sudo update-alternatives –install /usr/bin/javac javac /usr/lib/jvm/java/jdk1.7.0_10/bin/javac 300 注意:jdk1.7.0_10版本不同会有变动
手动切换JDK版本
sudo update-alternatives –config java sudo update-alternatives –config javac
java -version,javac -version 查看版本
android-4.0.3_r1
make disclear
./build-android
./genrootfs.sh
mkyaffs2image-128M rootfs_dir rootfs_android.img
编译问题:
/bin/bash: jar: command not found
make: *** [out/host/common/obj/JAVA_LIBRARIES/jsr305lib_intermediates/javalib.jar] Error 127
sudo ln -s -f /usr/lib/jvm/jdk1.6.0_30/bin/jar
/bin/bash:line2: javadoc command not found
sudo ln -s -f /usr/lib/jvm/jdk1.6.0_30/bin/javadoc
<command-line>:0:0: warning: “_FORTIFY_SOURCE” redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
此问题原因是gcc和g++编译器版本过高导致的,应该将版本降到gcc-4.4/g++4.4
gcc回退4.4
sudo apt-get install gcc-4.4
sudo apt-get install g++-4.4
sudo rm -rf /usr/bin/gcc /usr/bin/g++
sudo ln -s /usr/bin/gcc-4.4 /usr/bin/gcc
sudo ln -s /usr/bin/g++-4.4 /usr/bin/g++
sudo apt-get install g++-4.4-multilib
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status