Hi 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 Copy: ./build/platforms/android-1.5/common/include/math.h install: cannot stat `/home/nagendra/beagledroid_latest/../../../../system/libm/include/math.h': No such file or directory chmod: cannot access `./build/platforms/android-1.5/common/include/math.h': No such file or directory Link: ./build/platforms/android-1.5/arch-arm/usr/include/math.h Copy: ./build/platforms/android-1.5/arch-arm/usr/include/arm/fenv.h install: cannot stat `/home/nagendra/beagledroid_latest/../../../../system/libm/include/arm/fenv.h': No such file or directory chmod: cannot access `./build/platforms/android-1.5/arch-arm/usr/include/arm/fenv.h': No such file or directory ./build/tools/build-ndk-sysroot.sh: line 220: cd: /home/nagendra/beagledroid_latest/../../../../system/libstdc++/include: No such file or directory ./build/tools/build-ndk-sysroot.sh: line 220: cd: /home/nagendra/beagledroid_latest/../../../../system/bionic/kernel/common: No such file or directory ./build/tools/build-ndk-sysroot.sh: line 240: cd: /home/nagendra/beagledroid_latest/../../../../system/bionic/kernel/arch-arm: No such file or directory ./build/tools/build-ndk-sysroot.sh: line 220: cd: /home/nagendra/beagledroid_latest/../../../../system/bionic/include: No such file or directory ./build/tools/build-ndk-sysroot.sh: line 240: cd: /home/nagendra/beagledroid_latest/../../../../system/bionic/arch-arm/include: No such file or directory --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---