Building the ndk from within the AOSP code (platform/manifest )

1,786 views
Skip to first unread message

Ron M

unread,
Dec 21, 2011, 11:42:47 AM12/21/11
to android-platform
Hi,

I am able to use the ndk-build script in a perfect way when using a
prebuilt downloaded ndk.
I am able to do so with any APP_ABI option.

However, I am looking for a way to use the NDK from WITHIN my AOSP
project, and running the following sequence did not result with a
generated (or even a copied) toolchain:

At first I was trying to use the $ANDROID_BUILD_TOP/ndk-build as is,
and it suggested to build the platforms - so I did (after lunching an
x86 config)

$ANDROID_BUILD_TOP/ndk/build/tools/build-platforms.sh .

Now, I tried to build something with the NDK. The problem is, that it
is still looking for some prebuilt paths - which are never generated,
Can anyone assist in this ? Or the only way to compile an NDK is to
use another prebuilt NDK from developer.android.com ?

Thanks!

Build error is below:

../../ndk/ndk-build APP_ABI=x86
make: /home/ronm/Android/ICS_Master/ndk/toolchains/x86-4.4.3/prebuilt/
linux-x86/bin/i686-android-linux-gcc: Command not found
make: /home/ronm/Android/ICS_Master/ndk/toolchains/x86-4.4.3/prebuilt/
linux-x86/bin/i686-android-linux-gcc: Command not found
Compile++ x86 : androidterm <= termExec.cpp
make: /home/ronm/Android/ICS_Master/ndk/toolchains/x86-4.4.3/prebuilt/
linux-x86/bin/i686-android-linux-g++: Command not found
make: *** [obj/local/x86/objs/androidterm/termExec.o] Error 127



Ron M

unread,
Dec 26, 2011, 1:41:15 PM12/26/11
to android-platform
Any insight about this one?

I would be glad to get some help on understanding how to generate an
sdk from the AOSP platform project, which can be used with eclipse.
Is it possible? I think that when a "make" is built, the sdk is also
built, but eclipse requires a "tools" directory.
"make sdk" has the same issue.

Would appreciate any comment.

Thanks,
Ron

Edwin Vane

unread,
Jan 26, 2012, 11:16:35 AM1/26/12
to android-...@googlegroups.com
Did you figure this out? I'm trying to build sdk/ndk myself from source and not having much luck finding answers out there.

Ron M

unread,
Feb 8, 2012, 8:11:02 AM2/8/12
to android-...@googlegroups.com
Nope,
Haven't yet, sorry.
I haven't tried it on the last month, maybe something has changed.
I will try to overcome it in the next couple of weeks - if that
doesn't work... Hmm... crosstool-ng ?

Hope that someone reads this message and can give you/me a hand.


-Ron

On Thu, Jan 26, 2012 at 6:16 PM, Edwin Vane <rev...@gmail.com> wrote:
> Did you figure this out? I'm trying to build sdk/ndk myself from source and
> not having much luck finding answers out there.
>

> --
> You received this message because you are subscribed to the Google Groups
> "android-platform" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/android-platform/-/owDJDEHm1NgJ.
> 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.

Reply all
Reply to author
Forward
0 new messages