Due to recent work, we need to port Android x86 (arm> x86). Now we will summarize the process and problems encountered during this period, I hope to help students who are just as tortuous as I am.
Environment Introduction:
1. Ubuntu 8.04: others may have updated versions. I use 8.04 myself.
2. VMWare: Virtual Machine
3. Network Environment
Preparations:
1. There are many online tutorials for installing Ubuntu 8.04 on Vmware.
2. Configure some development tools for Ubuntu, you can refer to the http://source.android.com/source/initializing.html
OK, go to the key steps:
1. Install curl. You can use apt-Get or download the curl.tar package online. We recommend that you download the latest curl package, decompress the package, and run it in the decompressed folder.
./configure --with-sslmakemake install
Why add -- With-SSL because HTTPS is supported later?
2. Update Python and the GIT method is basically the same as the curl method.
3. Download Repo, curl http://git-repo.googlecode.com/files/repo-1.19> ~ /Bin/Repo
1.19 may be updated at any time, and you can access: https://code.google.com/p/git-repo/ to view the latest version
4.
$ Path = ~ /Bin: $ path
$ Chmod A + x ~ /Bin/Repo
$ Mkdir android-x86xxxxxxxxx // create your source code directory
$ CD android-x86xxxxxx // enter the source code directory
5. Next reference: http://www.android-x86.org/getsourcecode
Note: $ repo init-u git: // android-x86.git.sf.net/gitroot/android-x86/x86/platform/manifest.git-B $ Branch
This command often reports errors. The following solutions are available:
A. Syntax Error 1:./bin/repo: Line 1: Unexpected symbols near 'newline' there is a syntax error
./Bin/repo: Row 1: '<! Doctype HTML public "-// IETF // dtd html 2.0 // en">'
>>> This is generally because your curl cannot download the correct Repo. You can use $ Vim ~ /Bin/repo open repo and check the content.
B. Syntax Error 2: syntaxerror: Invalid Syntax
>>> This error is generally caused by a python parsing error. Updating python can solve this problem (my current version is Python 2.7.3)
C. Repo error:
Ioerror: [errno 2] No such file or directory: '/home/androidcode/. repo/manifests/. Git/head'
>>> Delete the local. Repo, $ Rm-R. Repo. Note that the curl is usually incorrect. Check the curl step.
D .....
E. Fatal: cannot get http://gerrit.googlesource.com/git-repo/clone.bundlefatal: error unknown URL type: https
>>> Apt-Get install libssl-dev OpenSSL download and update libssl-dev OpenSSL
F. repo init-u after Timeout: Open the repo file and modify http://gerrit.googlesource.com/git-repo:https://code.google.com/p/git-repo
G. 406 error is generally because your repo does not correspond to the init address here. Refer to the above content to correct the curl address value or repo init address value to find a match