MIPS 平台 Android 移植过程记录1_编译环境搭建

在工作的空闲时间, 尝试着在公司的MIPS平台上移植了Android, 把之前记录的遇到的问题贴到blog上来, 做个记录.

1.设置上网代理

  /etc/apt/apt.conf, 在文件中添加下面的内容, 注意最后的 ";" 也是需要添加的, 否则会提示这个文件的结束字符不对

Acquire::http:Proxy ”user:[email protected]:port/";

2. Installing the JDK

apt-get install openjdk-6-jdk(用main server才行, 用自动选的最佳的某个edu的server不行)

3. Installing required packages

sudo apt-get install git gnupg flex bison gperf build-essential \

zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \

libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-dri:i386 \

libgl1-mesa-dev g++-multilib mingw32 tofrodos \

python-markdown libxml2-utils xsltproc zlib1g-dev:i386

在64位上搭建环境会遇到问题.

直接复制运行会出现如下错误:

下列软件包有未满足的依赖关系:

libgl1-mesa-glx:i386 : 依赖: libglapi-mesa:i386 (= 8.0.4-0ubuntu0.6)

推荐: libgl1-mesa-dri:i386 (>= 7.2)

E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系

将里面的libgl1-mesa-glx:i386修改为 libgl1-mesa-dri:i386,运行后可以正常安装

4. 在home下的.bashrc文件中添加

export USE_CCACHE=1

5. install Repo

$ mkdir ~/bin

$ PATH=~/bin:$PATH

$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo

$ chmod a+x ~/bin/repo

6. initializing a repo client

$mkdir ryan

$cd ryan

$ repo init -u https://android.googlesource.com/platform/manifest

要配置账号,需要用有效的gmail的邮箱

得到[email protected]:~/ryan# repo init -u https://android.googlesource.com/platform/manifest

gpg: keyring `/root/.repoconfig/gnupg/secring.gpg‘ created

gpg: keyring `/root/.repoconfig/gnupg/pubring.gpg‘ created

gpg: /root/.repoconfig/gnupg/trustdb.gpg: trustdb created

gpg: key 920F5C65: public key "Repo Maintainer <[email protected]>" imported

gpg: key 692B382C: public key "Conley Owens <[email protected]>" imported

gpg: Total number processed: 2

gpg:               imported: 2  (RSA: 1)

Get https://gerrit.googlesource.com/git-repo

remote: Counting objects: 117, done

remote: Finding sources: 100% (117/117)

remote: Total 2883 (delta 1524), reused 2883 (delta 1524)

Receiving objects: 100% (2883/2883), 2.44 MiB | 274 KiB/s, done.

Resolving deltas: 100% (1524/1524), done.

From https://gerrit.googlesource.com/git-repo

* [new branch]      maint      -> origin/maint

* [new branch]      master     -> origin/master

* [new branch]      stable     -> origin/stable

* [new tag]         v1.0       -> v1.0

* [new tag]         v1.0.1     -> v1.0.1

* [new tag]         v1.0.2     -> v1.0.2

* [new tag]         v1.0.3     -> v1.0.3

* [new tag]         v1.0.4     -> v1.0.4

* [new tag]         v1.0.5     -> v1.0.5

* [new tag]         v1.0.6     -> v1.0.6

* [new tag]         v1.0.7     -> v1.0.7

* [new tag]         v1.0.8     -> v1.0.8

* [new tag]         v1.0.9     -> v1.0.9

* [new tag]         v1.1       -> v1.1

* [new tag]         v1.10.0    -> v1.10.0

* [new tag]         v1.10.1    -> v1.10.1

* [new tag]         v1.10.2    -> v1.10.2

* [new tag]         v1.10.3    -> v1.10.3

* [new tag]         v1.10.4    -> v1.10.4

* [new tag]         v1.11.0    -> v1.11.0

* [new tag]         v1.11.1    -> v1.11.1

* [new tag]         v1.12.0    -> v1.12.0

* [new tag]         v1.12.1    -> v1.12.1

* [new tag]         v1.12.10   -> v1.12.10

* [new tag]         v1.12.11   -> v1.12.11

* [new tag]         v1.12.12   -> v1.12.12

* [new tag]         v1.12.13   -> v1.12.13

* [new tag]         v1.12.14   -> v1.12.14

* [new tag]         v1.12.15   -> v1.12.15

* [new tag]         v1.12.16   -> v1.12.16

* [new tag]         v1.12.2    -> v1.12.2

* [new tag]         v1.12.3    -> v1.12.3

* [new tag]         v1.12.3.1  -> v1.12.3.1

* [new tag]         v1.12.4    -> v1.12.4

* [new tag]         v1.12.5    -> v1.12.5

* [new tag]         v1.12.6    -> v1.12.6

* [new tag]         v1.12.7    -> v1.12.7

* [new tag]         v1.12.8    -> v1.12.8

* [new tag]         v1.12.9    -> v1.12.9

* [new tag]         v1.2       -> v1.2

* [new tag]         v1.3       -> v1.3

* [new tag]         v1.3.1     -> v1.3.1

* [new tag]         v1.3.2     -> v1.3.2

* [new tag]         v1.4       -> v1.4

* [new tag]         v1.4.1     -> v1.4.1

* [new tag]         v1.4.2     -> v1.4.2

* [new tag]         v1.4.3     -> v1.4.3

* [new tag]         v1.4.4     -> v1.4.4

* [new tag]         v1.5       -> v1.5

* [new tag]         v1.5.1     -> v1.5.1

* [new tag]         v1.6       -> v1.6

* [new tag]         v1.6.1     -> v1.6.1

* [new tag]         v1.6.10    -> v1.6.10

* [new tag]         v1.6.10.1  -> v1.6.10.1

* [new tag]         v1.6.10.2  -> v1.6.10.2

* [new tag]         v1.6.2     -> v1.6.2

* [new tag]         v1.6.3     -> v1.6.3

* [new tag]         v1.6.4     -> v1.6.4

* [new tag]         v1.6.5     -> v1.6.5

* [new tag]         v1.6.6     -> v1.6.6

* [new tag]         v1.6.7     -> v1.6.7

* [new tag]         v1.6.7.1   -> v1.6.7.1

* [new tag]         v1.6.7.2   -> v1.6.7.2

* [new tag]         v1.6.7.3   -> v1.6.7.3

* [new tag]         v1.6.7.4   -> v1.6.7.4

* [new tag]         v1.6.7.5   -> v1.6.7.5

* [new tag]         v1.6.8     -> v1.6.8

* [new tag]         v1.6.8.1   -> v1.6.8.1

* [new tag]         v1.6.8.10  -> v1.6.8.10

* [new tag]         v1.6.8.11  -> v1.6.8.11

* [new tag]         v1.6.8.2   -> v1.6.8.2

* [new tag]         v1.6.8.3   -> v1.6.8.3

* [new tag]         v1.6.8.4   -> v1.6.8.4

* [new tag]         v1.6.8.5   -> v1.6.8.5

* [new tag]         v1.6.8.6   -> v1.6.8.6

* [new tag]         v1.6.8.7   -> v1.6.8.7

* [new tag]         v1.6.8.8   -> v1.6.8.8

* [new tag]         v1.6.8.9   -> v1.6.8.9

* [new tag]         v1.6.9     -> v1.6.9

* [new tag]         v1.6.9.1   -> v1.6.9.1

* [new tag]         v1.6.9.2   -> v1.6.9.2

* [new tag]         v1.6.9.3   -> v1.6.9.3

* [new tag]         v1.6.9.4   -> v1.6.9.4

* [new tag]         v1.6.9.5   -> v1.6.9.5

* [new tag]         v1.6.9.6   -> v1.6.9.6

* [new tag]         v1.6.9.7   -> v1.6.9.7

* [new tag]         v1.6.9.8   -> v1.6.9.8

* [new tag]         v1.7       -> v1.7

* [new tag]         v1.7.1     -> v1.7.1

* [new tag]         v1.7.2     -> v1.7.2

* [new tag]         v1.7.3     -> v1.7.3

* [new tag]         v1.7.3.1   -> v1.7.3.1

* [new tag]         v1.7.4     -> v1.7.4

* [new tag]         v1.7.4.1   -> v1.7.4.1

* [new tag]         v1.7.4.2   -> v1.7.4.2

* [new tag]         v1.7.4.3   -> v1.7.4.3

* [new tag]         v1.7.5     -> v1.7.5

* [new tag]         v1.7.6     -> v1.7.6

* [new tag]         v1.7.6.1   -> v1.7.6.1

* [new tag]         v1.7.7     -> v1.7.7

* [new tag]         v1.7.7.1   -> v1.7.7.1

* [new tag]         v1.7.7.2   -> v1.7.7.2

* [new tag]         v1.7.7.3   -> v1.7.7.3

* [new tag]         v1.7.7.4   -> v1.7.7.4

* [new tag]         v1.7.7.5   -> v1.7.7.5

* [new tag]         v1.7.7.6   -> v1.7.7.6

* [new tag]         v1.7.8     -> v1.7.8

* [new tag]         v1.7.8.1   -> v1.7.8.1

* [new tag]         v1.7.8.2   -> v1.7.8.2

* [new tag]         v1.8.0     -> v1.8.0

* [new tag]         v1.8.1     -> v1.8.1

* [new tag]         v1.8.2     -> v1.8.2

* [new tag]         v1.9.0     -> v1.9.0

* [new tag]         v1.9.1     -> v1.9.1

* [new tag]         v1.9.2     -> v1.9.2

* [new tag]         v1.9.3     -> v1.9.3

* [new tag]         v1.9.4     -> v1.9.4

* [new tag]         v1.9.5     -> v1.9.5

* [new tag]         v1.9.6     -> v1.9.6

Get https://android.googlesource.com/platform/manifest

% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

Dload  Upload   Total   Spent    Left  Speed

0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

curl: (22) The requested URL returned error: 404

Server does not provide clone.bundle; ignoring.

remote: Counting objects: 113, done

remote: Finding sources: 100% (113/113)

remote: Total 1393 (delta 315), reused 1393 (delta 315)

Receiving objects: 100% (1393/1393), 1.13 MiB | 304 KiB/s, done.

Resolving deltas: 100% (315/315), done.

From https://android.googlesource.com/platform/manifest

* [new branch]      android-1.6_r1 -> origin/android-1.6_r1

* [new branch]      android-1.6_r1.1 -> origin/android-1.6_r1.1

* [new branch]      android-1.6_r1.2 -> origin/android-1.6_r1.2

* [new branch]      android-1.6_r1.3 -> origin/android-1.6_r1.3

* [new branch]      android-1.6_r1.4 -> origin/android-1.6_r1.4

* [new branch]      android-1.6_r1.5 -> origin/android-1.6_r1.5

* [new branch]      android-1.6_r2 -> origin/android-1.6_r2

* [new branch]      android-2.0.1_r1 -> origin/android-2.0.1_r1

* [new branch]      android-2.0_r1 -> origin/android-2.0_r1

* [new branch]      android-2.1_r1 -> origin/android-2.1_r1

* [new branch]      android-2.1_r2 -> origin/android-2.1_r2

* [new branch]      android-2.1_r2.1p -> origin/android-2.1_r2.1p

* [new branch]      android-2.1_r2.1p2 -> origin/android-2.1_r2.1p2

* [new branch]      android-2.1_r2.1s -> origin/android-2.1_r2.1s

* [new branch]      android-2.2.1_r1 -> origin/android-2.2.1_r1

* [new branch]      android-2.2.1_r2 -> origin/android-2.2.1_r2

* [new branch]      android-2.2.2_r1 -> origin/android-2.2.2_r1

* [new branch]      android-2.2.3_r1 -> origin/android-2.2.3_r1

* [new branch]      android-2.2.3_r2 -> origin/android-2.2.3_r2

* [new branch]      android-2.2.3_r2.1 -> origin/android-2.2.3_r2.1

* [new branch]      android-2.2_r1 -> origin/android-2.2_r1

* [new branch]      android-2.2_r1.1 -> origin/android-2.2_r1.1

* [new branch]      android-2.2_r1.2 -> origin/android-2.2_r1.2

* [new branch]      android-2.2_r1.3 -> origin/android-2.2_r1.3

* [new branch]      android-2.3.1_r1 -> origin/android-2.3.1_r1

* [new branch]      android-2.3.2_r1 -> origin/android-2.3.2_r1

* [new branch]      android-2.3.3_r1 -> origin/android-2.3.3_r1

* [new branch]      android-2.3.3_r1.1 -> origin/android-2.3.3_r1.1

* [new branch]      android-2.3.4_r0.9 -> origin/android-2.3.4_r0.9

* [new branch]      android-2.3.4_r1 -> origin/android-2.3.4_r1

* [new branch]      android-2.3.5_r1 -> origin/android-2.3.5_r1

* [new branch]      android-2.3.6_r0.9 -> origin/android-2.3.6_r0.9

* [new branch]      android-2.3.6_r1 -> origin/android-2.3.6_r1

* [new branch]      android-2.3.7_r1 -> origin/android-2.3.7_r1

* [new branch]      android-2.3_r1 -> origin/android-2.3_r1

* [new branch]      android-4.0.1_r1 -> origin/android-4.0.1_r1

* [new branch]      android-4.0.1_r1.1 -> origin/android-4.0.1_r1.1

* [new branch]      android-4.0.1_r1.2 -> origin/android-4.0.1_r1.2

* [new branch]      android-4.0.2_r1 -> origin/android-4.0.2_r1

* [new branch]      android-4.0.3_r1 -> origin/android-4.0.3_r1

* [new branch]      android-4.0.3_r1.1 -> origin/android-4.0.3_r1.1

* [new branch]      android-4.0.4_r1 -> origin/android-4.0.4_r1

* [new branch]      android-4.0.4_r1.1 -> origin/android-4.0.4_r1.1

* [new branch]      android-4.0.4_r1.2 -> origin/android-4.0.4_r1.2

* [new branch]      android-4.0.4_r2 -> origin/android-4.0.4_r2

* [new branch]      android-4.0.4_r2.1 -> origin/android-4.0.4_r2.1

* [new branch]      android-4.1.1_r1 -> origin/android-4.1.1_r1

* [new branch]      android-4.1.1_r1.1 -> origin/android-4.1.1_r1.1

* [new branch]      android-4.1.1_r2 -> origin/android-4.1.1_r2

* [new branch]      android-4.1.1_r3 -> origin/android-4.1.1_r3

* [new branch]      android-4.1.1_r4 -> origin/android-4.1.1_r4

* [new branch]      android-4.1.1_r5 -> origin/android-4.1.1_r5

* [new branch]      android-4.1.1_r6 -> origin/android-4.1.1_r6

* [new branch]      android-4.1.1_r6.1 -> origin/android-4.1.1_r6.1

* [new branch]      android-4.1.2_r1 -> origin/android-4.1.2_r1

* [new branch]      android-4.1.2_r2 -> origin/android-4.1.2_r2

* [new branch]      android-4.1.2_r2.1 -> origin/android-4.1.2_r2.1

* [new branch]      android-4.2.1_r1 -> origin/android-4.2.1_r1

* [new branch]      android-4.2.1_r1.1 -> origin/android-4.2.1_r1.1

* [new branch]      android-4.2.1_r1.2 -> origin/android-4.2.1_r1.2

* [new branch]      android-4.2.2_r1 -> origin/android-4.2.2_r1

* [new branch]      android-4.2.2_r1.1 -> origin/android-4.2.2_r1.1

* [new branch]      android-4.2.2_r1.2 -> origin/android-4.2.2_r1.2

* [new branch]      android-4.2.2_r1.2b -> origin/android-4.2.2_r1.2b

* [new branch]      android-4.2_r1 -> origin/android-4.2_r1

* [new branch]      android-4.3.1_r1 -> origin/android-4.3.1_r1

* [new branch]      android-4.3_r0.9 -> origin/android-4.3_r0.9

* [new branch]      android-4.3_r0.9.1 -> origin/android-4.3_r0.9.1

* [new branch]      android-4.3_r1 -> origin/android-4.3_r1

* [new branch]      android-4.3_r1.1 -> origin/android-4.3_r1.1

* [new branch]      android-4.3_r2 -> origin/android-4.3_r2

* [new branch]      android-4.3_r2.1 -> origin/android-4.3_r2.1

* [new branch]      android-4.3_r2.2 -> origin/android-4.3_r2.2

* [new branch]      android-4.3_r2.2-cts -> origin/android-4.3_r2.2-cts

* [new branch]      android-4.3_r2.3 -> origin/android-4.3_r2.3

* [new branch]      android-4.3_r3 -> origin/android-4.3_r3

* [new branch]      android-4.3_r3.1 -> origin/android-4.3_r3.1

* [new branch]      android-4.4.1_r1 -> origin/android-4.4.1_r1

* [new branch]      android-4.4.2_r1 -> origin/android-4.4.2_r1

* [new branch]      android-4.4.2_r2 -> origin/android-4.4.2_r2

* [new branch]      android-4.4.3_r1 -> origin/android-4.4.3_r1

* [new branch]      android-4.4.3_r1.1 -> origin/android-4.4.3_r1.1

* [new branch]      android-4.4.4_r1 -> origin/android-4.4.4_r1

* [new branch]      android-4.4.4_r2 -> origin/android-4.4.4_r2

* [new branch]      android-4.4_r1 -> origin/android-4.4_r1

* [new branch]      android-4.4_r1.1 -> origin/android-4.4_r1.1

* [new branch]      android-4.4_r1.2 -> origin/android-4.4_r1.2

* [new branch]      android-4.4w_r1 -> origin/android-4.4w_r1

* [new branch]      android-cts-2.2_r8 -> origin/android-cts-2.2_r8

* [new branch]      android-cts-2.3_r10 -> origin/android-cts-2.3_r10

* [new branch]      android-cts-2.3_r11 -> origin/android-cts-2.3_r11

* [new branch]      android-cts-2.3_r12 -> origin/android-cts-2.3_r12

* [new branch]      android-cts-4.0.3_r1 -> origin/android-cts-4.0.3_r1

* [new branch]      android-cts-4.0.3_r2 -> origin/android-cts-4.0.3_r2

* [new branch]      android-cts-4.0_r1 -> origin/android-cts-4.0_r1

* [new branch]      android-cts-4.1_r1 -> origin/android-cts-4.1_r1

* [new branch]      android-cts-4.1_r2 -> origin/android-cts-4.1_r2

* [new branch]      android-cts-4.1_r4 -> origin/android-cts-4.1_r4

* [new branch]      android-cts-4.2_r2 -> origin/android-cts-4.2_r2

* [new branch]      android-cts-verifier-4.0.3_r1 -> origin/android-cts-verifier-4.0.3_r1

* [new branch]      android-cts-verifier-4.0_r1 -> origin/android-cts-verifier-4.0_r1

* [new branch]      android-sdk-4.0.3-tools_r1 -> origin/android-sdk-4.0.3-tools_r1

* [new branch]      android-sdk-4.0.3_r1 -> origin/android-sdk-4.0.3_r1

* [new branch]      android-sdk-4.4.2_r1 -> origin/android-sdk-4.4.2_r1

* [new branch]      android-sdk-adt_r16.0.1 -> origin/android-sdk-adt_r16.0.1

* [new branch]      android-sdk-adt_r20 -> origin/android-sdk-adt_r20

* [new branch]      android-sdk-support_r11 -> origin/android-sdk-support_r11

* [new branch]      chromium-dev -> origin/chromium-dev

* [new branch]      froyo      -> origin/froyo

* [new branch]      gingerbread -> origin/gingerbread

* [new branch]      gingerbread-release -> origin/gingerbread-release

* [new branch]      gradle_0.12.2 -> origin/gradle_0.12.2

* [new branch]      ics-mr0    -> origin/ics-mr0

* [new branch]      ics-mr1    -> origin/ics-mr1

* [new branch]      ics-plus-aosp -> origin/ics-plus-aosp

* [new branch]      idea133    -> origin/idea133

* [new branch]      idea133-weekly-release -> origin/idea133-weekly-release

* [new branch]      jb-dev     -> origin/jb-dev

* [new branch]      jb-mr1-dev -> origin/jb-mr1-dev

* [new branch]      jb-mr1-dev-plus-aosp -> origin/jb-mr1-dev-plus-aosp

* [new branch]      jb-mr1.1-dev -> origin/jb-mr1.1-dev

* [new branch]      jb-mr1.1-dev-plus-aosp -> origin/jb-mr1.1-dev-plus-aosp

* [new branch]      jb-mr2-dev -> origin/jb-mr2-dev

* [new branch]      jumper-stable -> origin/jumper-stable

* [new branch]      kitkat-cts-dev -> origin/kitkat-cts-dev

* [new branch]      kitkat-dev -> origin/kitkat-dev

* [new branch]      l-preview  -> origin/l-preview

* [new branch]      master     -> origin/master

* [new branch]      master-art -> origin/master-art

* [new branch]      master-art-host -> origin/master-art-host

* [new branch]      master-dalvik -> origin/master-dalvik

* [new branch]      master-dalvik-host -> origin/master-dalvik-host

* [new branch]      tools-canary-release -> origin/tools-canary-release

* [new branch]      tools_ndk_r9d -> origin/tools_ndk_r9d

* [new branch]      tools_r20  -> origin/tools_r20

* [new branch]      tools_r21  -> origin/tools_r21

* [new branch]      tools_r21.1 -> origin/tools_r21.1

* [new branch]      tools_r22  -> origin/tools_r22

* [new branch]      tools_r22.2 -> origin/tools_r22.2

* [new branch]      tools_r22.6 -> origin/tools_r22.6

* [new branch]      tradefed   -> origin/tradefed

* [new branch]      ub-jack    -> origin/ub-jack

* [new branch]      ub-tools-idea133 -> origin/ub-tools-idea133

* [new branch]      ub-tools-idea133-milestone -> origin/ub-tools-idea133-milestone

* [new branch]      ub-tools-idea133-release -> origin/ub-tools-idea133-release

* [new branch]      ub-tools-master -> origin/ub-tools-master

* [new tag]         android-1.6_r1.1_ -> android-1.6_r1.1_

* [new tag]         android-1.6_r1.2_ -> android-1.6_r1.2_

* [new tag]         android-1.6_r1.3_ -> android-1.6_r1.3_

* [new tag]         android-1.6_r1.4_ -> android-1.6_r1.4_

* [new tag]         android-1.6_r1.5_ -> android-1.6_r1.5_

* [new tag]         android-1.6_r1_ -> android-1.6_r1_

* [new tag]         android-1.6_r2_ -> android-1.6_r2_

* [new tag]         android-2.0.1_r1_ -> android-2.0.1_r1_

* [new tag]         android-2.0_r1_ -> android-2.0_r1_

* [new tag]         android-2.1_r1_ -> android-2.1_r1_

* [new tag]         android-2.1_r2.1p2_ -> android-2.1_r2.1p2_

* [new tag]         android-2.1_r2.1p_ -> android-2.1_r2.1p_

* [new tag]         android-2.1_r2.1s_ -> android-2.1_r2.1s_

* [new tag]         android-2.1_r2_ -> android-2.1_r2_

* [new tag]         android-2.2.1_r1_ -> android-2.2.1_r1_

* [new tag]         android-2.2.1_r2_ -> android-2.2.1_r2_

* [new tag]         android-2.2.2_r1_ -> android-2.2.2_r1_

* [new tag]         android-2.2.3_r1 -> android-2.2.3_r1

* [new tag]         android-2.2.3_r2 -> android-2.2.3_r2

* [new tag]         android-2.2.3_r2.1 -> android-2.2.3_r2.1

* [new tag]         android-2.2_r1.1_ -> android-2.2_r1.1_

* [new tag]         android-2.2_r1.2_ -> android-2.2_r1.2_

* [new tag]         android-2.2_r1.3_ -> android-2.2_r1.3_

* [new tag]         android-2.2_r1_ -> android-2.2_r1_

* [new tag]         android-2.3.1_r1_ -> android-2.3.1_r1_

* [new tag]         android-2.3.2_r1_ -> android-2.3.2_r1_

* [new tag]         android-2.3.3_r1.1_ -> android-2.3.3_r1.1_

* [new tag]         android-2.3.3_r1_ -> android-2.3.3_r1_

* [new tag]         android-2.3.4_r0.9_ -> android-2.3.4_r0.9_

* [new tag]         android-2.3.4_r1_ -> android-2.3.4_r1_

* [new tag]         android-2.3.5_r1_ -> android-2.3.5_r1_

* [new tag]         android-2.3.6_r0.9 -> android-2.3.6_r0.9

* [new tag]         android-2.3.6_r1 -> android-2.3.6_r1

* [new tag]         android-2.3.7_r1 -> android-2.3.7_r1

* [new tag]         android-2.3_r1_ -> android-2.3_r1_

* [new tag]         android-4.0.1_r1 -> android-4.0.1_r1

* [new tag]         android-4.0.1_r1.1 -> android-4.0.1_r1.1

* [new tag]         android-4.0.1_r1.2 -> android-4.0.1_r1.2

* [new tag]         android-4.0.2_r1 -> android-4.0.2_r1

* [new tag]         android-4.0.3_r1 -> android-4.0.3_r1

* [new tag]         android-4.0.3_r1.1 -> android-4.0.3_r1.1

* [new tag]         android-4.0.4_r1 -> android-4.0.4_r1

* [new tag]         android-4.0.4_r1.1 -> android-4.0.4_r1.1

* [new tag]         android-4.0.4_r1.2 -> android-4.0.4_r1.2

* [new tag]         android-4.0.4_r2 -> android-4.0.4_r2

* [new tag]         android-4.0.4_r2.1 -> android-4.0.4_r2.1

* [new tag]         android-4.1.1_r1 -> android-4.1.1_r1

* [new tag]         android-4.1.1_r1.1 -> android-4.1.1_r1.1

* [new tag]         android-4.1.1_r1_ -> android-4.1.1_r1_

* [new tag]         android-4.1.1_r2 -> android-4.1.1_r2

* [new tag]         android-4.1.1_r3 -> android-4.1.1_r3

* [new tag]         android-4.1.1_r4 -> android-4.1.1_r4

* [new tag]         android-4.1.1_r5 -> android-4.1.1_r5

* [new tag]         android-4.1.1_r6 -> android-4.1.1_r6

* [new tag]         android-4.1.1_r6.1 -> android-4.1.1_r6.1

* [new tag]         android-4.1.2_r1 -> android-4.1.2_r1

* [new tag]         android-4.1.2_r2 -> android-4.1.2_r2

* [new tag]         android-4.1.2_r2.1 -> android-4.1.2_r2.1

* [new tag]         android-4.2.1_r1.1 -> android-4.2.1_r1.1

* [new tag]         android-4.2.1_r1.2 -> android-4.2.1_r1.2

* [new tag]         android-4.2.1_r1__ -> android-4.2.1_r1__

* [new tag]         android-4.2.2_r1.1 -> android-4.2.2_r1.1

* [new tag]         android-4.2.2_r1.2 -> android-4.2.2_r1.2

* [new tag]         android-4.2.2_r1_ -> android-4.2.2_r1_

* [new tag]         android-4.2_r1___ -> android-4.2_r1___

* [new tag]         android-4.3.1_r1 -> android-4.3.1_r1

* [new tag]         android-4.3_r0.9 -> android-4.3_r0.9

* [new tag]         android-4.3_r0.9.1 -> android-4.3_r0.9.1

* [new tag]         android-4.3_r0.9.1_ -> android-4.3_r0.9.1_

* [new tag]         android-4.3_r0.9_ -> android-4.3_r0.9_

* [new tag]         android-4.3_r1 -> android-4.3_r1

* [new tag]         android-4.3_r1.1 -> android-4.3_r1.1

* [new tag]         android-4.3_r1_ -> android-4.3_r1_

* [new tag]         android-4.3_r2 -> android-4.3_r2

* [new tag]         android-4.3_r2.1_ -> android-4.3_r2.1_

* [new tag]         android-4.3_r2.1__ -> android-4.3_r2.1__

* [new tag]         android-4.3_r2.2 -> android-4.3_r2.2

* [new tag]         android-4.3_r2.3 -> android-4.3_r2.3

* [new tag]         android-4.3_r2_ -> android-4.3_r2_

* [new tag]         android-4.3_r3 -> android-4.3_r3

* [new tag]         android-4.3_r3.1 -> android-4.3_r3.1

* [new tag]         android-4.4.1_r1 -> android-4.4.1_r1

* [new tag]         android-4.4.2_r1 -> android-4.4.2_r1

* [new tag]         android-4.4.2_r2 -> android-4.4.2_r2

* [new tag]         android-4.4.3_r1 -> android-4.4.3_r1

* [new tag]         android-4.4.3_r1.1 -> android-4.4.3_r1.1

* [new tag]         android-4.4.4_r1 -> android-4.4.4_r1

* [new tag]         android-4.4.4_r2 -> android-4.4.4_r2

* [new tag]         android-4.4_r1 -> android-4.4_r1

* [new tag]         android-4.4_r1.1 -> android-4.4_r1.1

* [new tag]         android-4.4_r1.2 -> android-4.4_r1.2

* [new tag]         android-4.4w_r1 -> android-4.4w_r1

* [new tag]         android-cts-2.2_r8 -> android-cts-2.2_r8

* [new tag]         android-cts-2.3_r10 -> android-cts-2.3_r10

* [new tag]         android-cts-2.3_r11 -> android-cts-2.3_r11

* [new tag]         android-cts-2.3_r12 -> android-cts-2.3_r12

* [new tag]         android-cts-4.0.3_r1 -> android-cts-4.0.3_r1

* [new tag]         android-cts-4.0.3_r2 -> android-cts-4.0.3_r2

* [new tag]         android-cts-4.0_r1 -> android-cts-4.0_r1

* [new tag]         android-cts-4.1_r1 -> android-cts-4.1_r1

* [new tag]         android-cts-4.1_r2 -> android-cts-4.1_r2

* [new tag]         android-cts-4.1_r4 -> android-cts-4.1_r4

* [new tag]         android-cts-4.2_r2 -> android-cts-4.2_r2

* [new tag]         android-cts-4.4_r1 -> android-cts-4.4_r1

* [new tag]         android-cts-verifier-4.0.3_r1 -> android-cts-verifier-4.0.3_r1

* [new tag]         android-cts-verifier-4.0_r1 -> android-cts-verifier-4.0_r1

* [new tag]         android-sdk-4.0.3-tools_r1 -> android-sdk-4.0.3-tools_r1

* [new tag]         android-sdk-4.0.3_r1 -> android-sdk-4.0.3_r1

* [new tag]         android-sdk-4.4.2_r1 -> android-sdk-4.4.2_r1

* [new tag]         android-sdk-adt_r16.0.1 -> android-sdk-adt_r16.0.1

* [new tag]         android-sdk-adt_r20 -> android-sdk-adt_r20

* [new tag]         android-sdk-support_r11 -> android-sdk-support_r11

* [new tag]         gradle_0.12.2 -> gradle_0.12.2

$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.4_r1.2

$ repo sync

7. 找toolchain

应该是用NDK自带的mips的toolchain就可以了.

另,4.0.4对应的是API level 15

8. java版本问题

************************************************************

You are attempting to build with the incorrect version

of java.

Your version is: java version "1.6.0_31".

The correct version is: Java SE 1.6.

Please follow the machine setup instructions at

http://source.android.com/source/download.html

************************************************************

build/core/main.mk:131: *** stop.  Stop.

oracle网站可以下载各个版本的jdk

http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419409.html#jdk-6u31-oth-JPR

之前错误安装了jdk 7, 可以通过apt-get autoremove openjdk-7-jre卸载.

之前还安装了jdk6u31, 可以通过apt-get purge openjdk*完全卸载掉.(http://askubuntu.com/questions/335457/how-to-uninstall-openjdk)

在运行java -version,会提示 -bash: /usr/bin/java: No such file or directory

按照http://blog.csdn.net/openme_openwrt/article/details/7957156的提示, 发现编译的时候会出

.mk: No such file or directory build/core/combo/TARGET_linux-mips

build/core/config.mk:268: *** Error: could not find jdk tools.jar, please install JDK6, which you can download from java.sun.com.  Stop.

其实是将环境变量放在/etc/profile中再source的话, 发现没有改变.

手动运行下面的命令, 就不会提示这个问题.

export JAVA_HOME=/home/xioliu/jdk1.6.0_31

export JRE_HOME=/home/xioliu/jdk1.6.0_31/jre

export CLASSPATH=/home/xioliu/jdk1.6.0_31/lib:/home/xioliu/jdk1.6.0_31/jre/lib

export PATH=/home/xioliu/jdk1.6.0_31/bin:/home/xioliu/jdk1.6.0_31/jre/bin:$PATH

update-alternatives --install /usr/bin/java java /home/xioliu/jdk1.6.0_31/bin/java 300

update-alternatives --install /usr/bin/java java /home/xioliu/jdk1.6.0_31/bin/javac 300

update-alternatives --install /usr/bin/java java /home/xioliu/jdk1.6.0_31/bin/javah 300

update-alternatives --config java

update-alternatives --config javac

update-alternatives --config javah

这个网页应该也是靠谱的http://hi.baidu.com/quest2run/item/43ab80af24603f971410734a

9. 编译,先用arm的编译去验证编译环境架设的正确与否

#cat env.bsh

source build/envsetup.sh

lunch 7

遇到问题,解决方法见http://blog.csdn.net/xumercury/article/details/7746229

遇见另外error, 见http://hcleon.iteye.com/blog/1461352

发现遇到的问题的顺序和下面的顺序一样.

http://blog.csdn.net/zhbpd/article/details/7680835

10. 遇到错误

host Java: apache-harmony-tests-hostdex (out/host/common/obj/JAVA_LIBRARIES/apache-harmony-tests-hostdex_intermediates/classes)

host Java: core-tests-hostdex (out/host/common/obj/JAVA_LIBRARIES/core-tests-hostdex_intermediates/classes)

Copying: out/target/common/obj/JAVA_LIBRARIES/sqlite-jdbc_intermediates/emma_out/lib/classes-jarjar.jar

target Static Jar: mail-common (out/target/common/obj/JAVA_LIBRARIES/mail-common_intermediates/javalib.jar)

target R.java/Manifest.java: SignatureTest (out/target/common/obj/APPS/SignatureTest_intermediates/src/R.stamp)

collect2: ld 以信号 9 [已杀死] 退出。

make: *** [out/host/linux-x86/obj/EXECUTABLES/clang_intermediates/clang] 错误 1

make: *** 正在等待未完成的任务....

elapsed seconds: 2448

wenku.baidu.com/view/52813b61f5335a8102d220b0.html

google是说内存不够导致的, 吧make -j4 改成make应该就可以.

经过9,10两步之后,编译成功. 在out\target\product\crespo下生成相应的image. 表示编译环境的搭建是没有问题的.

11. 前面下载的4.0.4上, mips架构是没法编译的, build\core\combo\arch 下面只有arm的目录.

使用下面的配置的话,会提示找不到一些makefile文件之类的错误.

#export TARGET_ARCH=mips

#export TARGET_ARCH_VARIANT=mipsandroid

#export ANDROID_TOOLCHAIN=/usr/local/codesourcery/mips-4.3/bin

12. 重新下载4.4的版本, 里面就已经有mips架构的makefile了.

http://blog.csdn.net/gobitan/article/details/24367439 里面提到, "编译Android4.4不能用OpenJDK,必须用Oracle JDK1.6,1.7目前是不支持的。",

不知道具体的结果怎么样.

www.cnblogs.com/zhx831/p/3550688.html这个上面也说, 是到oracle上去下载JDK.

实际发现用原来的open jdk1.6也能编译通过.

选的是aosp_mips

时间: 2024-10-10 17:55:52

MIPS 平台 Android 移植过程记录1_编译环境搭建的相关文章

MIPS 平台 Android 移植过程记录2_kernel升级 (2.6.29.4 -&gt; 3.0.72)

这部分记录的是kernel的升级, 之前在FPGA上跑了2.6.29的kernel去验证一些IP的功能. 而从google的网站上得到的android的source code是不包含kernel的部分的,kernel需要单独下载. 从google下载后发现是3.0.72的版本. 所以这边记录的就是kernel从2.6.29.4上升级到3.0.72上的过程. 最开始的想法就是, 先找一个3.0上的mips架构下的config档, 然后对比2.6.29上的config档的差异, 将差异弥补即可. 找

拇指接龙游戏从WIN32向Android移植过程问题记录(2)

本文中,在前文(1)基础上,将尽可能详细记录拇指接龙游戏从WIN32向Android移植过程后期--UI运行级调试出现的问题及可能的解决办法. 问题1 正未运行,问题就来了.忽然发现,工程左上角挂着一个大大的感叹号!请看截图: 打开工程属性对话框,观察到如下现象: 我把鼠标停留在右边的横线处,后面出现一个关键单词missing.也就是说,我们的游戏工程依赖的cocos2d-x库包jar文件丢失了!? 再打开另一处观察,发现如下: 其实,有一个重要细节在上一篇中我没有交待.此前,我使用中家的版本在

拇指接龙游戏从WIN32向Android移植过程问题记录

本文将较细致地记录下最近开发课程中的示例游戏-拇指接龙游戏在从WIN32向Android移植过程中遇到的若干问题及相应解决办法. 目前极不完整,待进一步整理. 问题1 连接真机测试运行时,在SplashScreen运行时便出现如下错误提示(log.txt): 09-16 13:28:16.525: I/GLThread(25784): sending render notification tid=1009-16 13:28:18.530: D/cocos2d-x debug info(2578

windows下cocos2dx3.0开发环境及Android编译环境搭建

cocos2dx更新到了3.x版本,自己一直没有换,现在开发组要求统一换版本,我就把搭建环境的过程记录下来. 一.Windowns下开发环境搭建 1.  所需工具 1)cocos2d-x-3.0rc0.zip   http://cn.cocos2d-x.org/download/  截止写博文时,最新版本为V3.2. 2)VS2012 http://www.baidu.com/s?wd=VS2012 3)Python  https://www.python.org/download/releas

cocos2d-x之android编译环境搭建(第二篇)[版本号:cocos2d-x-3.1.1]

基于 Android NDK 的学习之旅-----环境搭建 工欲善其事 必先利其器 , 以下介绍下 Eclipse SDK NDK Cygwin CDT 集成开发环境的搭建. 1.Android 开发环境搭建 Android开发环境搭建不是重点,相信看此文章的非常多人都已经搭建成功,这里随便概述性的说说. 1)      下载 JDK 2)      下载 Eclipse 3)      下载 Android SDK 4)      启动Eclipse , 安装 ADT 2.下载安装Androi

ubuntu12.04 安装android sdk /ndk/源码 编译环境

做android已经近5年了,期间android的各种环境都自己配过,自己是个想法比较多的人,各自神奇到想法都有,包括写博客,但是一直是没有具体落实...想法再多,不去努力实现也只能是想法了,今天准备从写博客这个小事开始做起,磨练自己到,不废话了,直接进入主题: 一.JDK(下载并安装jdk),注意事项如下: a.32位需要下32的,64位的也注意是下载64位的: b.配置环境变量: $ sudo gedit /etc/profile           在文件的末尾加上如下内容:       

ubuntu12.04下安卓编译环境搭建总结

前言: 因为工作需要,经常要编译安卓下的动态库,公司有已经搭建好环境的服务器,但是第一自己想自己搭建一下了解一个整个过程,另外,公司的服务器也经常出现问 题,导致编译不了,所以就想自己搭建环境.开始是在公司自己的电脑上装了一个unbuntu的虚拟机,然后在网上找了一个攻略,开始搭建环境.但是一直卡 在源码下载那一块,每次源码下载都出错,如后面问题1所描述.断断续续,都是工作之余抽空弄一弄,但是始终下载不成功,我以为是公司网络的问题,网络不稳 定,所以下载老失败.本来想多试几次,想想总有一次会下载

Tiny4412 开发板 编译环境搭建

/************************************************************************************** * Function     : Tiny4412 开发板 编译环境搭建 * Create Date  : 2016/04/04 * Author       : NTSK13 * Email        : [email protected] * Copyright    : 欢迎大家和我一起交流学习,转载请保持文章的

【转】Xamarin.Android 入门之:Xamarin+vs2015 环境搭建

Xamarin.Android 入门之:Xamarin+vs2015 环境搭建 一.前言 此篇博客主要写了如何使用搭建xamarin开发的环境,防止我自己万一哪天电脑重装系统了,可以直接看这篇博客. 二.准备工作 在安装之前需要下载好xamarin所需要的软件并一个个安装他们: 1.visual studio 2015:http://news.mydrivers.com/1/439/439398.htm 2.xamarin 4.0.3.214: http://download.xamarin.c