Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

Ubuntu16.04 complie Android6.0 problem solve , step

792

Credits

10

Prestige

10

Contribution

advanced

Rank: 4

Credits
792

Ubuntu16.04 complie Android6.0 problem solve , step

Posted at 3/21/2017 09:55:49      View:5470 | Replies:1        Print      Only Author   [Copy Link] 1#
Last edited by leung先森 In 3/21/2017 10:05 Editor

Firstly follow officail wiki to build ubuntu14.04 environment.
New 16.04 apt source cannot provide openjdk-7 ,add up a source

sudo add-apt-repository ppa: openjdk-r/ppa    ###behind colon no need space
sudo apt-get update
sudo apt-get install openjdk-7-jdk

After installed , check the version of jdk present
sudo update-alternatives --config java
sudo update-alternatives --config javac

-------------------------------------------------
Android complie
error occure:
clang: error: linker command failed with exit code 1 (use -v to see invocation)
build/core/host_shared_library_internal.mk:51: recipe for target 'out/host/linux-x86/obj32/lib/libart.so' failed
make: *** [out/host/linux-x86/obj32/lib/libart.so] Error 1


reason:ubuntu16.04 clang problem

1.Off clang,gedit file art/build/Android.common_build.mk ,find out WITHOUT_HOST_CLANG
diff:
# Host.
ART_HOST_CLANG := false
ifneq ($(WITHOUT_HOST_CLANG),true)
# By default, host builds use clang for better warnings.
- ART_HOST_CLANG := true+ ART_HOST_CLANG := false
endif

2. rebuild env
sudo apt install git-core gnupg flex bison gperf build-essentialzip \
curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386lib32ncurses5-dev \
x11proto-core-dev libx11-dev lib32z-dev ccache libgl1-mesa-dev \
libxml2-utils xsltproc unzip m4  && sudo apt-get update

No need to make clean, continue make again .


Reply

Use props Report

120

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
120
Posted at 7 hour before        Only Author  2#
在這個競爭激烈的IT行業中,擁有一些認證證書是可以幫助你步步高升的。很多公司升職加薪的依據就是你擁有的認證證書的含金量。EPIC COG170認證考試就是個含金量很高的考試。EPIC COG170 認證證書能滿足很多正在IT行業拼搏的人的需求。Fast2test可以為你提供EPIC COG170認證考試的針對性訓練。你可以先在網上免費下載Fast2test為你提供的關於EPIC COG170 認證考試的培訓工具的試用版和部分練習題及答案作為嘗試。
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list