In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
How to build the OpenAndroVM compilation environment of LinuxMint17.1, in view of this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible method.
Here's how to build a compilation environment for OpenAndroVM.
1. The compiled Linux platform uses the latest LinuxMint17.1, which is a version of LTS (the author also participated in the development of oh n (* ≧▽≦ *) n)
LinuxMint is chosen instead of ubuntu because years of experience in using and developing LinuxMint has found that the file system of LinuxMint is more stable than that of ubuntu.
It is more efficient to read and write. LinuxMint currently ranks first in both activity and usage in the linux community, and there is no reason why I should not use it.
two。 Download the system image of LinuxMint17.1 at: http://www.linuxmint.com/edition.php?id=179, if the download address
If it fails, you can also contact me for distribution.
3. After downloading, install LinuxMint. It is recommended to get a 64-bit machine to install it. After installing using VirtualBox or VMWare, compile OpenAndroVM.
At least 24 hours, hard disk installation can use the ImageWriter program produced by Suse to modify LinuxMint .iso to .raw file, burn it to U disk, and then install it to hard disk; virtual machine installation requires 64-bit virtual machine (if your PC is 64-bit), virtual machine memory is at least 2048m, less compilation but OpenAndroVM, do not try to use 32-bit virtual machine or PC to compile Android, that will make everyone ache!
4. After installation, enter the system to install the necessary tools and software:
# install the editor
Sudo apt-get install vim
# install indexer MIN
Sudo apt-get install ctags
# install indexer MAX
Sudo apt-get install cscope
# configure samba server. My user is openpc
$sudo apt-get install samba
$sudo apt-get install samba-common-bin
$sudo apt-get install system-config-samba
Sudo vim / etc/samba/smb.conf
[openpc]
Path = / home/openpc
Writeable = yes
Browseable = yes
$sudo smbd start
$sudo smbpasswd-an openpc
Install the shell enhancement script, strongbash, which is a set of .bashrc, .vim, .vimrc files written by myself. You can ask me for them.
$cp-a strongbash/.vimrc ~ /
$cp-a strongbash/.vim ~ /
$cp-a strongbash/.bashrc ~ /
$sudo apt-get update
5. Install the gcc4.4 compilation system
Sudo apt-get install-- force-yes-y gcc-4.4 glittering Murray 4.4 gcc-4.4-multilib g++-4.4-multilib
You can save a command to a file for automatic execution, but you need a .cmd suffix instead of a .sh suffix, or you can ask me for this script.
6. Configure gcc4.4 as the default compilation system
Echo "update-alternatives-- install / usr/bin/g++ gaming + / usr/bin/g++-4.4 100"
Sudo update-alternatives-- install / usr/bin/g++ gathers + / usr/bin/g++-4.4 100
Echo "update-alternatives-- install / usr/bin/g++ gathers + / usr/bin/g++-4.8 50"
Sudo update-alternatives-- install / usr/bin/g++ gathers + / usr/bin/g++-4.8 50
Echo "update-alternatives-- install / usr/bin/gcc gcc / usr/bin/gcc-4.4 100"
Sudo update-alternatives-install / usr/bin/gcc gcc / usr/bin/gcc-4.4 100
Echo "update-alternatives-- install / usr/bin/gcc gcc / usr/bin/gcc-4.8 50"
Sudo update-alternatives-install / usr/bin/gcc gcc / usr/bin/gcc-4.8 50
Echo "update-alternatives-- install / usr/bin/cpp cpp-bin / usr/bin/cpp-4.4 100"
Sudo update-alternatives-install / usr/bin/cpp cpp-bin / usr/bin/cpp-4.4 100
Echo "update-alternatives-- install / usr/bin/cpp cpp-bin / usr/bin/cpp-4.8 50"
Sudo update-alternatives-install / usr/bin/cpp cpp-bin / usr/bin/cpp-4.8 50
Gcc-v
You can write the above file as a .cmd file for execution, or you can ask me for this script
7. Install jdk-6u43-linux-x64
Download jdk-6u43-linux-x64, or ask for it from me.
Save to the LinuxMint system, execute the installation .sh script in the same directory, or you can ask me for the installation script
#! / bin/sh
Chmod + x jdk-6u43-linux-x64.bin
. / jdk-6u43-linux-x64.bin
Mkdir-p / usr/lib/jvm
Mv jdk1.6.0_43 / usr/lib/jvm
# Update symbolic links for Java
Update-alternatives-install "/ usr/bin/java"java" / usr/lib/jvm/jdk1.6.0_43/bin/java "1
Update-alternatives-install "/ usr/bin/javac"javac" / usr/lib/jvm/jdk1.6.0_43/bin/javac "1
Update-alternatives-install "/ usr/bin/javadoc"javadoc" / usr/lib/jvm/jdk1.6.0_43/bin/javadoc "1
Update-alternatives-install "/ usr/lib/mozilla/plugins/libjavaplugin.so"mozilla-javaplugin.so" / usr/lib/jvm/jdk1.6.0_43/jre/lib/amd64/libnpjp2.so "1
Update-alternatives-install "/ usr/bin/javaws"javaws" / usr/lib/jvm/jdk1.6.0_43/bin/javaws "1
Update-alternatives-install "/ usr/bin/jar"jar" / usr/lib/jvm/jdk1.6.0_43/bin/jar "1
# Choose the java you installed as default
Update-alternatives-config java
Update-alternatives-config javac
Update-alternatives-config javadoc
Update-alternatives-config mozilla-javaplugin.so
Update-alternatives-config javaws
Update-alternatives-config jar
# Verify installation
Java-version
Javac-version
8. Install the OpenAndroVM compilation environment and execute the following .sh script
#! / bin/bash
FA_DoExec () {
Echo "= > Executing:'${@}'"
Eval $@ | | exit $?
}
FA_DoExec apt-get install\
Git gnupg flex bison gperf build-essential\
Zip curl libc6-dev libncurses5-dev x11proto-core-dev\
Libx11-dev:i386 libreadline6-dev:i386\
Libgl1-mesa-glx-lts-quantal:i386 libgl1-mesa-dev-lts-quantal\
G++-multilib mingw32 tofrodos lib32ncurses5-dev\
Python-markdown libswitch-perl libxml2-utils xsltproc zlib1g-dev:i386
If [!-h / usr/lib/i386-linux-gnu/libGL.so]; then
FA_DoExec ln-s / usr/lib/i386-linux-gnu/mesa/libGL.so.1\
/ usr/lib/i386-linux-gnu/libGL.so
Fi
# Development support
FA_DoExec apt-get install\
Vim dos2unix minicom gawk
9. Okay, so the OpenAndroVM compilation environment for LinuxMint17.1 has been built.
This is the answer to the question about how to build the OpenAndroVM compilation environment of LinuxMint17.1. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.