Building Android on CentOS

2,289 views
Skip to first unread message

Phil HUXLEY

unread,
Nov 12, 2008, 12:43:40 PM11/12/08
to android-...@googlegroups.com

Has anyone been through the process of building the platform under CentOS
as opposed to Ubuntu?

Thanks,
Phil.

Notice
The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this
message by anyone else is unauthorized. If you are not the intended
recipient, any disclosure, copying or distribution of the message, or
any action taken by you in reliance on it, is prohibited and may be
unlawful. If you have received this message in error, please delete it
and contact the sender immediately. Thank you.

3Dlabs Ltd company number 02883883 registered in England and Wales at 79
Knightsbridge, London SW1X 7RB

Muthu Ramadoss

unread,
Nov 12, 2008, 11:06:33 PM11/12/08
to android-...@googlegroups.com
This should be similar to Fedora.

In Fedora 9, with all development libraries installed Android has no issues with building from source.

take care,
Muthu Ramadoss.

http://mobeegal.in - mobile search. redefined. +91 98403 48914

Chanwit Kaewkasi

unread,
Nov 13, 2008, 6:22:46 AM11/13/08
to android-...@googlegroups.com
FYI, I've compiled it successfully on Fedora Core 8 as well.

Regards,

Chanwit

2008/11/13 Muthu Ramadoss <muthu.r...@gmail.com>:

--
Chanwit Kaewkasi
PhD Candidate,
Centre for Novel Computing
School of Computer Science
The University of Manchester
Oxford Road
Manchester
M13 9PL, UK

Ian Theocharis Athanasakis

unread,
Nov 13, 2008, 7:55:06 AM11/13/08
to android-...@googlegroups.com
I tried it earlier today, on CentOS 5 but gave up. There was an
incompatibility between readline and ncurses5.
It was easier to put ubuntu in a chroot and compile it there.

KKDhara

unread,
Nov 14, 2008, 12:01:17 PM11/14/08
to android-platform
I had it running on CentOS.

Had to 'export HOST_GLOBAL_LDFLAGS=-lncurses' to resolve the
incompatibility between readline and ncurses5.

Regards,
-- Kishore


On Nov 13, 7:55 am, "Ian Theocharis Athanasakis" <tha...@thatha.org>
wrote:
> I tried it earlier today, on CentOS 5 but gave up. There was an
> incompatibility between readline and ncurses5.
> It was easier to put ubuntu in a chroot and compile it there.
>

kanal

unread,
Nov 18, 2008, 12:42:14 AM11/18/08
to android-platform
Hi Kishore,
I am new to Android and CentOS. Can u tell me the detail
steps to downnload Android soucecode in CentOs machine and build the
same.

Thanks and Regards,
kannan

Dhananjay Joshi

unread,
Nov 18, 2008, 1:34:02 AM11/18/08
to android-...@googlegroups.com
now i am getting error as
 
build/core/product_config.mk:229: WARNING: adding test OTA key
build/core/main.mk:177: implicitly installing apns-conf_sdk.xml
target Generated: libclearsilver-jni <= out/host/common/obj/JAVA_LIBRARIES/clearsilver_intermediates/javalib.jar
javah -classpath out/host/common/obj/JAVA_LIBRARIES/clearsilver_intermediates/javalib.jar -force -o out/host/linux-x86/obj/SHARED_LIBRARIES/libclearsilver-jni_intermediates/org_clearsilver_HDF.h -jni org.clearsilver.HDF
error: error reading out/host/common/obj/JAVA_LIBRARIES/clearsilver_intermediates/javalib.jar; error in opening zip file
error: error reading out/host/common/obj/JAVA_LIBRARIES/clearsilver_intermediates/javalib.jar; cannot read zip file
error: cannot access org.clearsilver.HDF
class file for org.clearsilver.HDF not found
javadoc: error - Class org.clearsilver.HDF not found.
Error: No classes were specified on the command line.  Try -help.
make: *** [out/host/linux-x86/obj/SHARED_LIBRARIES/libclearsilver-jni_intermediates/org_clearsilver_HDF.h] Error 15

--
Dhananjay Joshi
Sony India pvt Ltd,
Banglore.
Mob-9731552063

KKDhara

unread,
Nov 18, 2008, 3:06:42 PM11/18/08
to android-platform

Kannan,

Follow the instructions at "http://source.android.com/download". I'm
assuming you would start from 'Installing Repo'.

Before you start your 'build', do the following.

1. Make sure your 'java' and 'javac' are the right version.

2. export HOST_GLOBAL_LDFLAGS='-lncurses'

3. Download and install 'gperf'.

Then just follow the instruction on 'build'.

Regards,
-- Kishore

Dhananjay Joshi

unread,
Nov 19, 2008, 7:34:17 AM11/19/08
to android-...@googlegroups.com
by foolowing the procedure i got android building on Cent Os
 

To build android:

> >

> > Change the following file:

> >

> > external/sqlite/dist/Android.mk:

> >

> > LOCAL_LDLIBS += -lpthread -ldl

> > to

> > LOCAL_LDLIBS += -lpthread -ldl -lncurses

> >

> > make clean

> > rm -rf out

> > export JAVA_HOME=/usr/lib/jvm/jre-1.6.0-sun

> > export ANDROID_JAVA_HOME=$JAVA_HOME

>>export HOST_GLOBAL_LDFLAGS='-lncurses'

> > make

thanks.

Shinichi Iritani

unread,
Nov 24, 2008, 3:35:04 AM11/24/08
to android-...@googlegroups.com
Hi.

>> > external/sqlite/dist/Android.mk:
>> >
>> > LOCAL_LDLIBS += -lpthread -ldl
>> > to
>> > LOCAL_LDLIBS += -lpthread -ldl -lncurses

It solved it with this patch.

http://android.git.kernel.org/?p=platform/external/sqlite.git;h=be0e8aea4a8441676921135784c4e37b19172df3

http://review.source.android.com/2896

It adjusts to the latest source.


2008/11/19 Dhananjay Joshi <dhananja...@gmail.com>:

Chen Ganir

unread,
Dec 14, 2008, 3:17:37 AM12/14/08
to android-platform
Hi Everyone.

I'm trying to build the Android on Redhat Linux enterprise 4.6 AS. I'm
getting this error :
frameworks/base/libs/utils/Threads.cpp:104:error: 'PR_SET_NAME'
undeclared...

This happens when i try to build the file system.

does anyone have an idea ?

Thanks.


On Nov 24, 10:35 am, "Shinichi Iritani" <ir.sh...@gmail.com> wrote:
> Hi.
>
> >> > external/sqlite/dist/Android.mk:
>
> >> > LOCAL_LDLIBS += -lpthread -ldl
> >> > to
> >> > LOCAL_LDLIBS += -lpthread -ldl -lncurses
>
> It solved it with this patch.
>
> http://android.git.kernel.org/?p=platform/external/sqlite.git;h=be0e8...
>
> http://review.source.android.com/2896
>
> It adjusts to the latest source.
>
> 2008/11/19 Dhananjay Joshi <dhananjayingr...@gmail.com>:
>
> > by foolowing the procedure i got android building on Cent Os
>
> > To build android:
>
> >> > Change the following file:
>
> >> > external/sqlite/dist/Android.mk:
>
> >> > LOCAL_LDLIBS += -lpthread -ldl
>
> >> > to
>
> >> > LOCAL_LDLIBS += -lpthread -ldl -lncurses
>
> >> > make clean
>
> >> > rm -rf out
>
> >> > export JAVA_HOME=/usr/lib/jvm/jre-1.6.0-sun
>
> >> > export ANDROID_JAVA_HOME=$JAVA_HOME
>
> >>>export HOST_GLOBAL_LDFLAGS='-lncurses'
>
> >> > make
>
> > thanks.
>

Shawn_Chiu

unread,
Dec 24, 2008, 12:11:00 PM12/24/08
to android-platform
Hi, Chen Ganir

./bionic/libc/include/sys/prctl.h includes ./bionic/libc/kernel/
common/linux/prctl.h.
In the previous file, the function 'prctl' was called in frameworks/
base/libs/utils/Threads.cpp:104 taking the macro 'PR_SET_NAME', whose
value is 15 and actually defined in the latter file, as the first
argument.

It seems a problem of the path included.

For more information about function 'prctl', please read

http://www.kernel.org/doc/man-pages/online/pages/man2/prctl.2.html
Reply all
Reply to author
Forward
0 new messages