On 11月17日, 下午10時17分, Neeraj Agrawal <[email protected]> wrote:
> Was able to call native build system by invoking below line from a
> Android.mk (as passing paths for CC, AS, AR, RANLIB and LD)
> $(shell cd external/<PATH-To-the-source>/build && $(MAKE))

The better way:

+ $(MAKE) -C external/<PATH-To-the-source>/build

-C changes the build dir to the specified one
+ symbol makes your jobs parallelizable.

> At the end of build (during linking) following error is reported:-
> <PATH-to-the-TOP>/prebuilt/linux-x86/toolchain/i686-unknown-linux-
> gnu-4.2.1/bin/../lib/gcc/i686-unknown-linux-gnu/4.2.1/../../../../i686-
> unknown-linux-gnu/bin/ld: cannot find -lstdc++
> collect2: ld returned 1 exit status
> on further search stdc++ is part of target rootfs and not in the
> android host toolchain. How to solve this?

Android doesn't contain standard C++ library.
I didn't touch that part, but I believe someone
has done some works on that. Try to google it.

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to