(1) download JDK Based on Linux. This is also required for the development of the. APK application in eclipse. Run the: APT-Get install sun-java5-jdk in the terminal and run javac-version after installation to verify that the installation is successful.
(2) download eclipse based on the Linux platform and decompress it. Use the same as eclipse on XP.
(3) download and decompress the Linux-based Android SDK on the android official website.
(4) Click "Software Update" in eclipse to upgrade the android ADT plug-in to facilitate Android Application Software Development. Import the android SDK path and set AVD.
(5) use apt-Get install to install some frequently-compiled Toolkit: Flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip make libncurses5-dev zlib1g-dev libsdl1.2-dev libsdl1.2debian. You can use GCC -- version to check whether GCC is successfully installed and the version.
(6) install the cross compiler. You can copy it to a directory, for example, the/usr directory, and add the environment variable in. bashrc. Example: VI ~ /. Bashrc, and then add export Path = $ path:/usr/arm-eabi-4.4.0/bin.
The specific problems encountered during use are as follows:
(1) When running menu config in the kernel code, fewer ncurses library errors occur. Ncurses is the basic library for screen control on character terminals. Many new programs may not be used. However, if you want to compile some old programs, you will often get them. Run the command apt-Get install libncurses5-dev
(2) install common tools, such as apt-Get install subversion. Some other tools, such as Perl, generally come with python by default. You can run the which command to check whether the tool is installed and obtain the installation path.
========================================================== ========================================================== ========================================================== ==========
In some cases, when the server resources are insufficient and cannot be compiled, you can set a scheduled task on the server to execute the compilation task after the clock. Run the following command to set a scheduled task: At to go to the command line:
Warning: commands will be executed using/bin/sh
At> Cd ~ /
At> mkdir tst899
At> <EOT>
Run the following commands to enter the root directory of a specific project and run the compilation command. Press Ctrl + D to exit the command line. Then, run the ATQ command to check how many scheduled tasks have been submitted.
========================================================== ========================================================== ========================================================== ====
When Samba is used to access Ubuntu from win7 and the source Insight Project created by the Code is opened, an error will be prompted after it is opened, indicating that the project requires rebuild, and sometimes a write error is prompted. I couldn't find the specific cause. Later I found that several files in the SI project were all nobody nogroup users and group permissions, which were significantly different from other files. Therefore, you can use chown to change the user and group permissions of the project file and solve the problem.
========================================================== ========================================================== ========================================================== ==========
In the past, the Ubuntu system was 10.04, And the android codebase for MTK compilation was always normal. Later, for some reason, after upgrading the system to 12.04 using the new OS-powered manager, MTK code compilation went wrong. Specific error cause: a gcc error is prompted during compilation. Check-env is used to check whether GCC recognition fails.
Later, I learned from my colleagues that the GCC version was too high after ubuntu was upgraded. Gcc4.4 can be compiled, while 12.04 carries gcc4.6. Therefore, you only need to restore to gcc4.4. Steps:
(1) first, use gcc-V on the terminal to obtain the directory where the GCC library is located. After executing the command, I found that the system actually uses gcc4.6.
(2) so you need to install gcc4.4, general use: APT-Get install gcc-4.4 and apt-Get install g ++-4.4. If LS-l GCC * is used in the/usr/bin directory, the following result is obtained:
It indicates that gcc4.4 has been installed. All you need to do is to change the GCC link to point to the gcc-4.4, instead of the gcc-4.6,:
Mv gcc. Bak
Ln-s gcc-4.4 GCC, get
The first backup and the last modification link. The corresponding G ++ version should also be changed to G ++-4.4, rather than G ++-4.6. The Modification result is as follows:
(3) modify the preceding requirements and use gcc-V to view them.
We can see that it has been modified to 4.4. After compilation or check-env, the system can be successfully reinstalled, saving the trouble of reinstalling the system.
In addition to the above compilation errors, the preloader prompts "build fail. need wine tool to sign pre-loader binary ", you only need apt-Get install wine. Note that the installation is complete.
Http://hi.baidu.com/hyemiletoe/item/0403f331f12017179cc65ed9 ()