Errors while building a Standalone tool chain.

by Nagendra Kumar » Thu, 03 Sep 2009 01:37:34 GMT


Sponsored Links
 ello Everybody,

I got the answer for my Question.

The Solution is *bash ./build/tools/build-ndk-sysroot.sh --build-out=
~/android/bin/out/target/product/generic
(path to <ANDROID_PRODUCT_OUT>**)*

The PATH for ANDROID_PRODUCT_OUT has to be set correctly..!

Cheers,
Nagendra

On Wed, Sep 2, 2009 at 10:03 AM, Nagendra Kumar <nagendrarav...@gmail.com>wrote:


--~--~---------~--~----~------------~-------~--~----~



Errors while building a Standalone tool chain.

by Nagendra Kumar » Thu, 03 Sep 2009 01:38:59 GMT


 i all,

I want to port a C library in Android with the help of NDK.
To do this i am trying to build the standalone Cross tool chain to get the
pre build libraries which Android is already having.

To build this i am running "build-ndk-sysroot.sh", which is present in the
NDK ( *<NDK_DIR>/build/tools*)
I am using the following command to build the sysroot directory, which
contains the libraries and include files ordered in a proper manner.

*bash ./build/tools/build-ndk-sysroot.sh --build-out=path to
<ANDROID_CODE>*

I set the ANDROID_NDK_ROOT path and set the environment variables also.
But i am getting the following mentioned errors.

*ERRORS:*

nagen...@nagendra-desktop:~/android-ndk-1.5_r1$ sudo bash
./build/tools/build-ndk-sysroot.sh
--build-out=/home/nagendra/beagledroid_latest
cp: cannot stat
`/home/nagendra/beagledroid_latest/obj/lib/crtbegin_static.o': No such file
or directory
cp: cannot stat
`/home/nagendra/beagledroid_latest/obj/lib/crtbegin_dynamic.o': No such file
or directory
cp: cannot stat
`/home/nagendra/beagledroid_latest/obj/lib/crtend_android.o': No such file
or directory
cp: cannot stat
`/home/nagendra/beagledroid_latest/obj/STATIC_LIBRARIES/libc_intermediates/libc.a':
No such file or directory
cp: cannot stat
`/home/nagendra/beagledroid_latest/obj/STATIC_LIBRARIES/libm_intermediates/libm.a':
No such file or directory
cp: cannot stat
`/home/nagendra/beagledroid_latest/obj/STATIC_LIBRARIES/libstdc++_intermediates/libstdc++.a':
No such file or directory
cp: cannot stat
`/home/nagendra/beagledroid_latest/obj/STATIC_LIBRARIES/libthread_db_intermediates/libthread_db.a':
No such file or directory
cp: cannot stat
`/home/nagendra/beagledroid_latest/symbols/system/lib/libdl.so': No such
file or directory
cp: cannot stat
`/home/nagendra/beagledroid_latest/symbols/system/lib/libc.so': No such file
or directory
cp: cannot stat
`/home/nagendra/beagledroid_latest/symbols/system/lib/libm.so': No such file
or directory
cp: cannot stat
`/home/nagendra/beagledroid_latest/symbols/system/lib/libstdc++.so': No such
file or directory
cp: cannot stat
`/home/nagendra/beagledroid_latest/symbols/system/lib/libthread_db.so': No
such file or directory
Copy: ./build/platforms/android-1.5/common/include/zlib.h
install: cannot stat
`/home/nagendra/beagledroid_latest/../../../../external/zlib/zlib.h': No
such file or directory
chmod: cannot access `./build/platforms/android-1.5/common/include/zlib.h':
No such file or directory
Link: ./build/platforms/android-1.5/arch-arm/usr/include/zlib.h
Copy: ./build/platforms/android-1.5/common/include/zconf.h
install: cannot stat
`/home/nagendra/beagledroid_latest/../../../../external/zlib/zconf.h': No
such file or directory
chmod: cannot access `./build/platforms/android-1.5/common/include/zconf.h':
No such file or directory
Link: ./build/platforms/android-1.5/arch-arm/usr/include/zconf.h
Copy: ./build/platforms/android-1.5/common/include/jni.h
install: cannot stat
`/home/nagendra/beagledroid_latest/../../../../dalvik/libnativehelper/include/nativehelper/jni.h':
No such file or directory
chmod: cannot access `./build/platforms/android-1.5/common/include/jni.h':
No such file or directory
Link: ./build/platforms/android-1.5/arch-arm/usr/include/jni.h
./build/tools/build-ndk-sysroot.sh: line 220: cd:
/home/nagendra/beagledroid_latest/../../../../system/libthread_db/include:
No such file or directory
Cop


Sponsored Links