Build fails for Android froyo 2.2.1_r1 on ubuntu linux 10.04

100 views
Skip to first unread message

hamedpc007

unread,
Feb 15, 2011, 3:13:00 PM2/15/11
to android-platform
hi everybody !
i am a new Android user and developer.after 6 month using Android ,one
month age i decided to compile my own rom from source.
my device is Samsung Galaxy S GT-i9000 and download Android source
from http://android.git.kernel.org.
my steps to compile rom is exactly based on google instruction
explained in http://source.android.com/source/index.html. my
development system specs are :
Hardware : sony vaio laptop with 2.2 core 2 due intel cpu + 3 GB of
Ram + 20 GB free space hard disk
software : ubuntu linux i386 version 10.04 + all packeges are updated
using ubuntu update manager + all dependencies needed to compile
Android source ( i used this group discussions and some other internet
resources to do that ) . my JDK version is 1.5 so there is no problem
AFAIK.

steps to compile Source :
1- cd android_build/myDroid
2- source build/envsetup.sh
3- lunch 1
4- make clean
5- make

problem :

after about one hour of compile work , the build process fails and
stops with this error log :


out/target/product/generic/obj/STATIC_LIBRARIES/libxml2_intermediates/
libxml2.a)
target SharedLib: libwebcore
(out/target/product/generic/obj/SHARED_LIBRARIES/
libwebcore_intermediates/LINKED/libwebcore.so)
out/target/product/generic/obj/STATIC_LIBRARIES/
libwebcore_intermediates/libwebcore.a(CSSParser.o):
In function `WebCore::CSSParser::lex(void*)':
/volumes/android/droid/external/webkit/WebCore/css/CSSParser.cpp:4533:
undefined reference to `WebCore::CSSParser::lex()'
collect2: ld returned 1 exit status
make: ***
[out/target/product/generic/obj/SHARED_LIBRARIES/
libwebcore_intermediates/LINKED/libwebcore.so]
Error 1


there is 2 post in this group facing exactly my problem . they are
located
http://code.google.com/p/android/issues/detail?id=4485 and
http://code.google.com/p/android/issues/detail?id=4943

but if you refer those post , their problem occur in Mac OS so their
solution is not useful for me.

i am sure that the source of webkit and webcore is not the problem
because i tried with the webkit that comes from samsung open source
and i get same result.

please help me.thanks!




radiohead

unread,
Feb 17, 2011, 6:25:22 AM2/17/11
to android-platform
Actually I'm facing this problem too!
I'm a new developer in android and working on compiling rom for SGS
and using the latest version of Ubuntu
But I don't know what is wrong with the webkit & webcore that can't be
compiled to use the rom!
My error is just like the one mentioned here so I don't type it again
By the way my JDK is v1.5
Any help woud be appreciated
Thanks in advance


On Feb 15, 12:13 pm, hamedpc007 <hamedpc...@gmail.com> wrote:
> hi everybody !
> i am a new Android user and developer.after 6 month using Android ,one
> month age i decided to compile my own rom from source.
> my device is Samsung Galaxy S GT-i9000 and download Android source
> fromhttp://android.git.kernel.org.
> my steps to compile rom is exactly based on google instruction
> explained inhttp://source.android.com/source/index.html. my
> locatedhttp://code.google.com/p/android/issues/detail?id=4485andhttp://code.google.com/p/android/issues/detail?id=4943

hamedpc007

unread,
Feb 17, 2011, 8:29:39 PM2/17/11
to android-platform
hi radiohead !
thanks for attention.
tonight i upgrade my ubuntu to version 10.10 (maverick). but no change
at all :( :(
i get exactle same error message again. my /out folder is about 1.8 GB
in size and i think the problem occur almost at the end of compile
process. i am very confused and dont have any idea .
but a new question : can anyone tell me which version of gcc should i
use to compile Android 2.2.1 ?
i currently use gcc 4.4 but one of my friend told me i have to use
gcc4.3 because gcc4.4 has very restrictive roles to compile source
files.
if downgrade gcc to version 4.3 may resolve my problem ?
please if any one have any information help us !

Taha

unread,
Feb 17, 2011, 11:29:31 PM2/17/11
to android-platform
I think Im in the right post, I have the same problem,my laptop spec
is different and Im running ubuntu linux 10.04 but im getting the same
result, I started my work with aspiration but getting a bit
disappointed now, wish google could find an answer for this matter.
Message has been deleted

hamedpc007

unread,
Feb 22, 2011, 6:33:48 AM2/22/11
to android-platform
hi everybody !
I resoled the problem :)
for any body facing this problem :

****** Solution : ********************

1- check the prebuilt/linux-86 folder( I am working on ubuntu 10.10)
this folder must contains a folder named 'flex' and inside that folder
you should see 'flex-2.5.4a'
file ! if there is not such folder or file download from
http://prdownloads.sourceforge.net/flex/flex-2.5.4a.tar.gz?download

******* end of solution **************

after repairing this problem the rom succeessfuly build and can boot
it up flawlessly on emulator.

new probplem :
i create a nandroid backup of current rom and installed the compiled
one. but i am facing new problem :

1- the phone successfully boots but after short while screen began
flicking several time and the phone go in deep sleep and never wakeup
( power button or menu button does not do any thing )

2- touch screen works only for some second that I can unlock the
phone

3- there is no network available

4- I have downloaded samsung opesource package for GT-I9000. it
contains a folder named 'platform' but when i merge these files to
AOSP , the compile process stops and fails again. if there any one can
help me which files from samsung source should i merge and how ? if
you now the answer and dont have spare time then some internet link or
online document is really useful .i have no problem studding and
reading and searching ;) . reaching to target is my only hope
Reply all
Reply to author
Forward
0 new messages