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


Other Threads

1. Tweaking android for fast boot up

Hey
plz throw some light regarding kernel booting process and stripping the
startup processes.

Thank you in advance

Ragards
Vivek

-- 

2. Export contact to vCard

Hi everyone,

i'm using the library android-vcard(http://code.google.com/p/android-
vcard/) to export data contacts to a vCard

The problem i'm having is that i only suceed exporting name,phone and
email, but i want to export other fields like website,birthday or
nickname, can anyone help me?I copy the code relationated to it

import a_vcard.android.provider.Contacts;
import a_vcard.android.syncml.pim.vcard.ContactStruct;
import a_vcard.android.syncml.pim.vcard.VCardComposer;


public class Vcard {
        public VCardComposer mComposer = new VCardComposer();
        public ContactStruct mContact = new ContactStruct();


        public void addData( String mimeType,
                                                        String data1,
                                                        int data2,
                                                        String data3,
                                                        String data4,
                                                        String data5,
                                                        boolean isPrimary){
                if ( mimeType.equalsIgnoreCase("vnd.android.cursor.item/name") 
){
                        mContact.name = data1;
                }
                else if ( mimeType.equalsIgnoreCase("vnd.android.cursor.item/
phone_v2") ){
                        mContact.addPhone(data2, data1, data3, isPrimary);
                }
                else if ( mimeType.equalsIgnoreCase("vnd.android.cursor.item/
email_v2") ){
                        mContact.addContactmethod(Contacts.KIND_EMAIL, data2, 
data1, data3,
isPrimary);
                }
                else if ( mimeType.equalsIgnoreCase("vnd.android.cursor.item/
organization") ){

                }
                else if ( 
mimeType.equalsIgnoreCase("vnd.android.cursor.item/im") ){

                }
                else if ( mimeType.equalsIgnoreCase("vnd.android.cursor.item/
nickname") ){

                }
                else if ( 
mimeType.equalsIgnoreCase("vnd.android.cursor.item/note") )
{

                }
                else if ( 
mimeType.equalsIgnoreCase("vnd.android.cursor.item/postal-
address_v2") ){

                }
                else if ( mimeType.equalsIgnoreCase("vnd.android.cursor.item/
website") ){
                }
                else if ( mimeType.equalsIgnoreCase("vnd.android.cursor.item/
contact_event") ){

                }
        }
}


Thanks a lot

-- 

3. what these logs specify

4. Data transfer from WindowManagerService.java to WindowManager.java

5. SetTypeface with holder

6. Android Hadirkan ESPN Live TV Streaming

7. HTC Siapkan Versi Internasional Dari myTouch 4G