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

Use props Report

127

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
127
Posted at 1/13/2026 00:59:28        Only Author  3#
The analysis in the article is thorough, and I’ve gained a lot from it. The Exam JN0-452 Simulations test questions are free for all—your key to a successful career!
Reply

Use props Report

126

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
126
Posted at 2/2/2026 04:00:44        Only Author  4#
Your article is a true gem, I’m so grateful for your sharing! I got a promotion and raise through the New exam cram SAP-C02 sheet file. Now it’s free for everyone. Wishing you all career success and promotions!
Reply

Use props Report

128

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
128
Posted at 2/5/2026 12:09:07        Only Author  5#
Instant like, no questions asked. Valid braindumps HPE7-J02 pdf test questions—free and essential for your career and salary advancement!
Reply

Use props Report

137

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
137
Posted at 2/10/2026 09:31:10        Only Author  6#
I can’t overstate how much I learned from that article. Wishing you success! Here are the free Exam vce CIS-Discovery free test materials.
Reply

Use props Report

137

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
137
Posted at 7 day before        Only Author  7#
This is a stellar article, thank you for sharing it with us. The 300-835 reliable real test question resource is full of valuable information and is free for everyone. We hope it’s useful to you.
Reply

Use props Report

138

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
138
Posted at 3 day before        Only Author  8#
Thank you for your article, it’s definitely been a wake-up call for me. The C_THR82_2505 test vce free exam is almost here. Hope I ace it!
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