编译android4.04出错adb_intermediates/adb] Error 1


错误:

make: *** [out/host/linux-x86/obj/EXECUTABLES/adb_intermediates/adb] Error 1

make: *** [out/host/linux-x86/obj/EXECUTABLES/obbtool_intermediates/Main.o] Error 1


系统版本为ubuntu12.04,64位。系统gcc版本为gcc-4.6,版本过高。

sudo apt-get install gcc-4.4

sudo apt-get install g++-4.4

apt-get install g++-4.4-multilib


装完后在/usr/bin目录下

$ ls -l gcc*
lrwxrwxrwx 1 root root      7 2011-10-29 09:11 gcc -> gcc-4.6  .-rwxr-xr-x 1 root root 224544 2011-10-06 05:47 gcc-4.4  
-rwxr-xr-x 1 root root 302104 2011-09-17 05:43 gcc-4.6  


 lrwxrwxrwx 1 root root      7 2011-10-29 09:11 gcc -> gcc-4.6
 -rwxr-xr-x 1 root root 224544 2011-10-06 05:47 gcc-4.4
 -rwxr-xr-x 1 root root 302104 2011-09-17 05:43 gcc-4.6

发现gcc 链接到gcc-4.6, 需要将它改为链接到gcc-4.4 :

 sudo mv gcc gcc.bak
 sudo ln -s gcc-4.4 gcc

一样的方法修改G++:

ls -l g++*
lrwxrwxrwx 1 root root      7 2011-08-14 15:17 g++ -> g++-4.6
-rwxr-xr-x 1 root root 228640 2011-10-06 05:45 g++-4.4
-rwxr-xr-x 1 root root 306200 2011-09-17 05:39 g++-4.6

需要将g++链接改为g++-4.4:

 /usr/bin$ sudo mv g++ g++.bak
 /usr/bin$sudo ln -s g++-4.4 g++

再查看gcc和g++版本号:

gcc -v g++ -v

你可能感兴趣的:(编译android4.04出错adb_intermediates/adb] Error 1)