How to Build eclair Source?

65 views
Skip to first unread message

Reski@Milis

unread,
Nov 24, 2009, 11:21:02 AM11/24/09
to android-...@googlegroups.com
Hi All,
Just quick questions, how to build eclair based from source code ?
I've tried following steps over and over, 

mkdir mydroid
cd mydroid
repo init -u git://android.git.kernel.org/platform/manifest.git
repo sync
. build/envsetup.sh 
 lunch generic-eng
make 

Before execute above steps, I already download and installed the prequisite which listed in http://source.android.com/download
But still produce many errors that I dont which part to start overcome it. Following is the error


build/core/copy_headers.mk:15: warning: overriding commands for target `out/target/product/generic/obj/include/libpv/getactualaacconfig.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `out/target/product/generic/obj/include/libpv/getactualaacconfig.h'
diff: out/target/product/generic/obj/PACKAGING/updater_extensions_intermediates/register.inc.list: No such file or directory
frameworks/base/include/utils/Vector.h: In member function ‘const TYPE& android::Vector<TYPE>::operator[](size_t) const [with TYPE = android::String8]’:
frameworks/base/tools/aapt/AaptAssets.cpp:249:   instantiated from here
frameworks/base/include/utils/Vector.h:218: error: ‘LOG_FATAL_IF’ was not declared in this scope
frameworks/base/include/utils/Vector.h: In member function ‘const TYPE& android::Vector<TYPE>::operator[](size_t) const [with TYPE = const char*]’:
frameworks/base/tools/aapt/AaptAssets.cpp:1569:   instantiated from here
frameworks/base/include/utils/Vector.h:218: error: ‘LOG_FATAL_IF’ was not declared in this scope
frameworks/base/include/utils/Vector.h: In member function ‘const TYPE& android::Vector<TYPE>::operator[](size_t) const [with TYPE = android::sp<AaptDir>]’:
frameworks/base/include/utils/Vector.h:225:   instantiated from ‘const TYPE& android::Vector<TYPE>::itemAt(size_t) const [with TYPE = android::sp<AaptDir>]’
frameworks/base/tools/aapt/AaptAssets.cpp:1884:   instantiated from here
frameworks/base/include/utils/Vector.h:218: error: ‘LOG_FATAL_IF’ was not declared in this scope
make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/AaptAssets.o] Error 1


Anyone can help me ?
Thanks
--

http://hobby.keluargareski.net
Sent by XPS via gmail

Jean-Baptiste Queru

unread,
Nov 24, 2009, 11:31:27 AM11/24/09
to android-...@googlegroups.com
What's your local OS? The canonical build environment is Ubuntu 8.04.3
(i.e. the current LTS build).

JBQ
> --
>
> You received this message because you are subscribed to the Google Groups
> "android-platform" group.
> To post to this group, send email to android-...@googlegroups.com.
> To unsubscribe from this group, send email to
> android-platfo...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/android-platform?hl=en.
>



--
Jean-Baptiste M. "JBQ" Queru
Software Engineer, Android Open-Source Project, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

Reski@Milis

unread,
Nov 24, 2009, 5:19:17 PM11/24/09
to android-...@googlegroups.com

I'm using ubuntu 9. 10 with SUN JDK 1.5. Are there any problems with this configuration ?

Thanks

sent from magix donut

On Nov 24, 2009 11:31 PM, "Jean-Baptiste Queru" <j...@android.com> wrote:

What's your local OS? The canonical build environment is Ubuntu 8.04.3
(i.e. the current LTS build).

JBQ

On Tue, Nov 24, 2009 at 8:21 AM, Reski@Milis <funky8...@gmail.com> wrote: > Hi All, > Just quic...

melynx

unread,
Nov 24, 2009, 9:22:56 PM11/24/09
to android-platform
9.10 uses gcc 4.4 i think~~
and this is whats causing all the problems....

2 solutions i can think of....
1. edit the source and do all the casting....
2. build the source using an older gcc....

On Nov 25, 6:19 am, "Reski@Milis" <funky81.mi...@gmail.com> wrote:
> I'm using ubuntu 9. 10 with SUN JDK 1.5. Are there any problems with this
> configuration ?
>
> Thanks
>
> sent from magix donut
>
> On Nov 24, 2009 11:31 PM, "Jean-Baptiste Queru" <j...@android.com> wrote:
>
> What's your local OS? The canonical build environment is Ubuntu 8.04.3
> (i.e. the current LTS build).
>
> JBQ
>
> On Tue, Nov 24, 2009 at 8:21 AM, Reski@Milis <funky81.mi...@gmail.com>
> wrote: > Hi All, > Just quic...
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "android-platform" group.
> > To post to this group, send email to android-...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > android-platfo...@googlegroups.com<android-platform%2Bunsu...@googlegroups.com>
> .
> > For more options, visit this group at
> >http://groups.google.com/group/android-platform?hl=en.
>
> --
> Jean-Baptiste M. "JBQ" Queru
> Software Engineer, Android Open-Source Project, Google.
>
> Questions sent directly to me that have no reason for being private
> will likely get ignored or forwarded to a public forum with no further
> warning.
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "android-platform" group.
> To post to this group, send email to android-...@googlegroups.com.
> To unsubscribe from this group, send email to
> android-platfo...@googlegroups.com<android-platform%2Bunsu...@googlegroups.com>
> .

Reski@Milis

unread,
Nov 24, 2009, 11:14:46 PM11/24/09
to android-...@googlegroups.com
May I know which Ubuntuk OS that can perfectly build for android source ? I'm planning to reinstall my operating system then do syncronization again with the source.

Thanks

To unsubscribe from this group, send email to android-platfo...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.





--

Jean-Baptiste Queru

unread,
Nov 25, 2009, 8:26:56 AM11/25/09
to android-...@googlegroups.com
Like I said yesterday, the recommended build environment for Android
is Ubuntu 8.04.3, which is the current LTS build of Ubuntu.

JBQ

Chad Fawcett

unread,
Nov 25, 2009, 9:09:27 AM11/25/09
to android-...@googlegroups.com
(And I would assume, for the least amount of headaches, 32 bit?)
Chad Fawcett
http://twitter.com/chadfawcett

Jean-Baptiste Queru

unread,
Nov 25, 2009, 9:12:13 AM11/25/09
to android-...@googlegroups.com
Actually I'd go for 64-bit, which is what the Android team at Google
is using (and I'd hate to find that one of the build steps uses too
much RAM to fit in a 32-bit process).

JBQ

Reski@Milis

unread,
Nov 25, 2009, 9:33:18 PM11/25/09
to android-...@googlegroups.com
Thanks JBQ for your information...I've just downgrade my Ubuntu into 8.0.4 just like your recommended before.
But I found out another build error

frameworks/base/../../dalvik/libcore/dalvik/src/main/java/dalvik/annotation/KnownFailure.java:27: warning 3: Unknown tag: @ToBeFixed
frameworks/base/../../dalvik/libcore/dalvik/src/main/java/dalvik/system/AllocationLimitError.java:25: warning 13: Class dalvik.system.AllocationLimitError: @Deprecated annotation and @deprecated comment do not match
frameworks/base/../../dalvik/libcore/dalvik/src/main/java/dalvik/system/DexFile.java:166: warning 3: Unknown tag: @cts
frameworks/base/../../dalvik/libcore/dalvik/src/main/java/dalvik/system/DexFile.java:194: warning 3: Unknown tag: @cts
frameworks/base/../../dalvik/libcore/dalvik/src/main/java/dalvik/system/PotentialDeadlockError.java:25: warning 13: Class dalvik.system.PotentialDeadlockError: @Deprecated annotation and @deprecated comment do not match
frameworks/base/../../dalvik/libcore/dalvik/src/main/java/dalvik/system/StaleDexCacheError.java:26: warning 13: Class dalvik.system.StaleDexCacheError: @Deprecated annotation and @deprecated comment do not match
frameworks/base/../../dalvik/libcore/dalvik/src/main/java/dalvik/system/TemporaryDirectory.java:32: warning 13: Class dalvik.system.TemporaryDirectory: @Deprecated annotation and @deprecated comment do not match
frameworks/base/../../dalvik/libcore/dalvik/src/main/java/dalvik/system/TouchDex.java:31: warning 13: Class dalvik.system.TouchDex: @Deprecated annotation and @deprecated comment do not match
frameworks/base/../../dalvik/libcore/dalvik/src/main/java/dalvik/system/TouchDex.java:44: warning 3: Unknown tag: @cts
frameworks/base/../../dalvik/libcore/dalvik/src/main/java/dalvik/system/VMDebug.java:29: warning 3: Unknown tag: @cts
frameworks/base/../../dalvik/libcore/dalvik/src/main/java/dalvik/system/VMDebug.java:34: warning 13: Class dalvik.system.VMDebug: @Deprecated annotation and @deprecated comment do not match
frameworks/base/../../dalvik/libcore/dalvik/src/main/java/dalvik/system/VMRuntime.java:29: warning 13: Class dalvik.system.VMRuntime: @Deprecated annotation and @deprecated comment do not match
frameworks/base/../../dalvik/libcore/dalvik/src/main/java/dalvik/system/VMStack.java:26: warning 13: Class dalvik.system.VMStack: @Deprecated annotation and @deprecated comment do not match
frameworks/base/../../dalvik/libcore/dalvik/src/main/java/dalvik/system/Zygote.java:27: warning 13: Class dalvik.system.Zygote: @Deprecated annotation and @deprecated comment do not match
frameworks/base/../../dalvik/libcore/xml/src/main/java/org/xml/sax/AttributeList.java:72: warning 13: Class org.xml.sax.AttributeList: @Deprecated annotation and @deprecated comment do not match
frameworks/base/../../dalvik/libcore/xml/src/main/java/org/xml/sax/DocumentHandler.java:47: warning 13: Class org.xml.sax.DocumentHandler: @Deprecated annotation and @deprecated comment do not match
frameworks/base/../../dalvik/libcore/xml/src/main/java/org/xml/sax/HandlerBase.java:45: warning 13: Class org.xml.sax.HandlerBase: @Deprecated annotation and @deprecated comment do not match
frameworks/base/../../dalvik/libcore/xml/src/main/java/org/xml/sax/Parser.java:52: warning 13: Class org.xml.sax.Parser: @Deprecated annotation and @deprecated comment do not match
frameworks/base/../../dalvik/libcore/xml/src/main/java/org/xml/sax/helpers/AttributeListImpl.java:66: warning 13: Class org.xml.sax.helpers.AttributeListImpl: @Deprecated annotation and @deprecated comment do not match
frameworks/base/../../dalvik/libcore/xml/src/main/java/org/xml/sax/helpers/ParserFactory.java:49: warning 13: Class org.xml.sax.helpers.ParserFactory: @Deprecated annotation and @deprecated comment do not match
frameworks/base/../../external/apache-http/src/org/apache/http/protocol/HttpRequestHandlerRegistry.java:76: warning 14: @deprecated tag with no explanatory comment
frameworks/base/../../external/apache-http/src/org/apache/http/protocol/HttpRequestHandlerRegistry.java:78: warning 13: Method org.apache.http.protocol.HttpRequestHandlerRegistry.matchUriRequestPattern: @Deprecated annotation and @deprecated doc tag do not match
frameworks/base/core/java/android/accounts/AuthenticatorDescription.java:94: warning 3: Unknown tag: @inhericDoc
frameworks/base/core/java/android/content/ContentProviderOperation.java:274: warning 3: Unknown tag: @VisibleForTesting
frameworks/base/core/java/android/content/ContentProviderOperation.java:309: warning 3: Unknown tag: @VisibleForTesting
frameworks/base/core/java/android/provider/ContactsContract.java:1092: warning 13: Class android.provider.ContactsContract.Presence: @Deprecated annotation and @deprecated comment do not match
Copy: apicheck (out/host/linux-x86/obj/EXECUTABLES/apicheck_intermediates/apicheck)
Install: out/host/linux-x86/bin/apicheck
Checking API: checkapi-last
Checking API: checkapi-current
target Prebuilt:  (out/target/product/sapphire-open/system/usr/share/zoneinfo/zoneinfo.dat)
target Prebuilt:  (out/target/product/sapphire-open/system/usr/share/zoneinfo/zoneinfo.idx)
target Prebuilt:  (out/target/product/sapphire-open/system/usr/share/zoneinfo/zoneinfo.version)
target Prebuilt:  (out/target/product/sapphire-open/kernel)
make: *** No rule to make target `vendor/htc/sapphire-open/proprietary/libhtc_ril.so', needed by `out/target/product/sapphire-open/system/lib/libhtc_ril.so'.

Anyone can help ?

Thanks 

David, Jr Roth

unread,
Nov 27, 2009, 4:12:54 PM11/27/09
to android-...@googlegroups.com

Looks like you're missing a step. See:
http://source.android.com/documentation/building-for-dream

It looks like you're missing the proprieatry files. Hope this helps.

On Wed, Nov 25, 2009 at 8:26 PM, Jean-Baptiste Queru <j...@android.com> wrote: > > Like I said yest...

--

http://hobby.keluargareski.net Sent by XPS via gmail

-- You received this message because you are subscribed to the Google Groups "android-platform" gr...

Reski@Milis

unread,
Nov 27, 2009, 8:13:59 PM11/27/09
to android-...@googlegroups.com

Thanks , now I can build successfully.

sent from magix donut

On Nov 28, 2009 4:13 AM, "David, Jr Roth" <david....@gmail.com> wrote:

Looks like you're missing a step. See:
http://source.android.com/documentation/building-for-dream

It looks like you're missing the proprieatry files. Hope this helps.

> > On Nov 27, 2009 1:34 PM, "Reski@Milis" <funky8...@gmail.com> wrote: > > Thanks JBQ for your...

>>> frameworks/base/../../dalvik/libcore/dalvik/src/main/java/dalvik/annotation/KnownFailure.java:27...

On Wed, Nov 25, 2009 at 8:26 PM, Jean-Baptiste Queru <j...@android.com> wrote: > > Like I said yest...

--

> > http://hobby.keluargareski.net Sent by XPS via gmail

-- You received this message because you are subscribed to the Google Groups "android-platform" gr...

-- You received this message because you are subscribed to the Google Groups "android-platform" g...

Liang Bao

unread,
Nov 28, 2009, 12:15:22 PM11/28/09
to android-...@googlegroups.com
your problem may not related to the OS. Looks like you miss a file. I am using a Ubuntu 9.10 which was upgrade from 8.10->9.04 following the automatic update manager. I override the path to use jdk 1.5 also. My build goes on well although it's a little bit different from the final public version.

2009/11/27 Reski@Milis <funky8...@gmail.com>

--

You received this message because you are subscribed to the Google Groups "android-platform" group.
Reply all
Reply to author
Forward
0 new messages