Ubuntu compiled source Bad environment configuration

Source: Internet
Author: User
Tags gnupg valgrind

git checkout-b newlocal origin/q01v31
SOURCE build/envsetup.sh
Lunch Msm8916_32-user
Make-j4

Make-j4 2>&1 | Tee Build.txt

Android compiler command words, add/usr/lib/jvm/java-7-openjdk-amd64/bin to the environment variable, and then the Android directory, souce./build/envsetup.sh
Lunch 19
Make-j4 2>&1 | Tee Build.txt

sudo apt-get install Git-core GnuPG Flex Bison gperf build-essential Zip curl Libc6-dev libncurses5-dev:i386 X11proto-core -dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-dev:i386 g++-multilib mingw32 openjdk-6-jdk Tofrodos Python-markdown libxml2-utils Xsltproc zlib1g-dev:i386 libxext-dev:i386

sudo apt-get install make gcc g++ libc6-dev patch texinfo Libncurses-dev Flex Bison gperf Libsdl-dev Libesd0-dev libwxgtk2 .6-dev build-essential Zip curl ncurses-dev zlib1g-dev valgrind libpangox-1.0-0:i386 libpangoxft-1.0-0:i386 libidn11: i386 gstreamer0.10-pulseaudio:i386 gstreamer0.10-plugins-base:i386 gstreamer0.10-plugins-good:i386 Gstreamer0.10-ffmpeg:i386

sudo apt-get install build-essential
sudo apt-get install make
sudo apt-get install gcc
sudo apt-get install g++
sudo apt-get install Libc6-dev
sudo apt-get install patch
sudo apt-get install Texinfo
sudo apt-get install Libncurses-dev
sudo apt-get install Git-core GnuPG
sudo apt-get install Flex
sudo apt-get install Bison
sudo apt-get install Gperf
sudo apt-get install Libsdl-dev
sudo apt-get install Libesd0-dev
sudo apt-get install Libwxgtk2.6-dev
sudo apt-get install build-essential
sudo apt-get install zip
sudo apt-get Install Curl
sudo apt-get install Ncurses-dev
sudo apt-get install Zlib1g-dev
sudo apt-get install Valgrind
sudo apt-get install python2.5 (the software I did not install successfully, and finally did not have any problems)
sudo apt-get install libgtk2.0-0:i386
sudo apt-get install libpangox-1.0-0:i386
sudo apt-get install libpangoxft-1.0-0:i386
sudo apt-get install libidn11:i386
sudo apt-get install gstreamer0.10-pulseaudio:i386
sudo apt-get install gstreamer0.10-plugins-base:i386
sudo apt-get install gstreamer0.10-plugins-good:i386
sudo apt-get install gstreamer0.10-ffmpeg:i386

First, configure the dependent tools

sudo apt-get install Git-core GnuPG Flex Bison gperf build-essential
Zip Curl Libc6-dev libncurses5-dev:i386 X11proto-core-dev
Libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-dev:i386
G++-multilib mingw32 openjdk-6-jdk Tofrodos Python-markdown
Libxml2-utils Xsltproc zlib1g-dev:i386 libxext-dev:i386

(Note that if it is compiled Mokee4.4.2 may also be missing a PNG XXXX tool, will be missing when compiling, follow the instructions sudo apt-get install pngxxx can)

Second, the configuration Java JDK, KitKat 4.4 compilation to use the JDK 6u45 version (Sun official version of the non-OPENJDK) or updated version (I did not test jdk7, it is said to be possible)

Can be downloaded to the Sun website, address: http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419409.html

can also download to my share: http://pan.baidu.com/s/1nt2Wd9f

After download, put Jdk-6u45-linux-x64.bin in a directory and chmod 777 Jdk-6u45-linux-x64.bin Add permissions

Then./jdk-6u45-linux-x64.bin run, and then configure the environment variable after completion:

sudo gedit/etc/profile

At the end of the file add:

Java_home=/home/syhost/tools/jdk1.6.0_45
Export Jre_home= $JAVA _home/jre
Export classpath=.: $JAVA _home/lib: $JRE _home/lib: $CLASSPATH
Export path= $JAVA _home/bin: $JRE _home/bin: $PATH

Note that the path behind the Java_home is replaced by your computer, which is the path to the folder that came out after running Jdk-6u45-linux-x64.bin.

You can then restart your computer or perform a source/etc/profile.

And see if the configuration was successful.

Run the java-version, and the configuration succeeds if the following is displayed:

Java Version "1.6.0_45"
Java (TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot (TM) 64-bit Server VM (build 20.45-b01, Mixed mode)

Ubuntu compiled source Bad environment configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.