Thanks Chih-Wei 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))
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? Rgds neeraj On Nov 15, 12:52 pm, Chih-Wei <[email protected]> wrote: > This is not impossible, but depends on your knowledge about GNU make > and Android build system. > > For example, see how Android-x86 integrated the kernel making > with the Android build system: > > http://git.android-x86.org/?p=platform/build.git;a=blob;f=core/kernel... > > -- > Chih-Wei > Android-x86 projecthttp://www.android-x86.org > > On 11月12日, 下午11時07分, Neeraj Agrawal <[email protected]> wrote: > > > On some search, all the info gathered is about integrating source code and > > writting Android.mk for it. > > > We already have huge source code and well working buildsystem, which works > > on Linux and Windows both. > > Tried calling our top-level makefile from a Android.mk, but that doesn't > > work. > > > For the initial compilation and debugging over android platform, it does not > > make sense to first have proper integration with the Android buildsystem. > > Is there a way to integrate our library source (C/C++) code into Android > > platform, without getting into buildsystem, given that our sourcetree is > > complex and already have native buildsystem. > > > We intended to make our work as opensource. > > > In other wordings i want to ask, how to call a native build-system (based on > > GNU make) from Android build-system. > > > Rgds > > Neeraj -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
