ubuntu 12.04.5 LTS搭建海思android SDK编译环境遇到的问题总结



java环境安装:
下载jdk1.6.0_45.bin并安装
假设jdk的安装目录为/usr/java/,在/etc/profile末尾加上如下语句:
export JAVA_HOME=/usr/java/jdk1.6.0_45
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVAPATH/lib/tools.jar
export PATH=$PATH:$JAVA_HOME/bin
如果不想重启系统,可在当前shell下执行source /etc/profile




1. /bin/bash:prebuilts/misc/linux-x86/ccache/ccache:No such file or directory
这个文件是存在的。


解决办法:sudo apt-get install ia32-libs


2. /bin/bash:gcc:command not found


#ls -l /usr/bin/gcc*
/usr/bin/gcc -> gcc-4.4
/usr/bin/gcc-4.6
可以看到gcc软链接到了gcc-4.4,但是不存在gcc-4.4。所以依次执行sudo rm /usr/bin/gcc;sudo ln -s /usr/bin/gcc-4.6 /usr/bin/gcc


3. /bin/bash:m4:command not found


sudo apt-get install m4


4. /bin/bash:flex:command not found
sudo apt-get install flex


5. "mkimage" command not found
sudo apt-get install uboot-mkimage


6.OSError: [Errno 2] No such file or directory
make: *** [out/target/product/Hi3796MV100/obj/GYP/shared_intermediates/blink/CSSPropertyNames.cpp] Error 1


sudo apt-get install g++
sudo apt-get install g++-multilib
sudo apt-get install curl
sudo apt-get install gperf
sudo apt-get install tofrodos
sudo apt-get install python-markdown
sudo apt-get install libxml2-utils
sudo apt-get install xsltproc
sudo apt-get install x11proto-core-dev
sudo apt-get install build-essential
sudo apt-get install bison
sudo apt-get install lib32ncurses5-dev


7. gzip_wrapper.c:23:18: fatal error: zlib.h: No such file or directory


sudo apt-get install zlib1g-dev
sudo apt-get install lib32z1-dev

你可能感兴趣的:(STB)