Thanks for the help,

Actually, i just want to build a generic build for simulator, which is a
software run on PC to duplicate the hardware behavior
But seem i see the option for emulator, just want to try but get error . If
android does not support this option anymore, should it be removed ? I find
no document in Android to tell me how to build for emulator option

Regds,
Tung

On Sun, Aug 29, 2010 at 11:33 PM, David Turner <[email protected]> wrote:

> You should select 1 (Device); the simulator is something different than the
> emulator, and I'm not sure it's supported anymore anyway.
>
> hope this helps
>
> On Sat, Aug 28, 2010 at 4:13 PM, Tung Dang <[email protected]> wrote:
>
>> Hi all ,
>>
>> I build the Android system image (Froyo) for emulator mode and get error,
>> the configuration is as follow :
>>
>> t...@ubuntu:/media/ANDROID/Froyo$ choosecombo
>> Build for the simulator or the device?
>>      1. Device
>>      2. Simulator
>>
>> Which would you like? [1] 2
>>
>>
>> Build type choices are:
>>      1. release
>>      2. debug
>>
>> Which would you like? [2]
>>
>>
>> Which product would you like? [sim]
>>
>>
>> Variant choices are:
>>      1. user
>>      2. userdebug
>>      3. eng
>> Which would you like? [eng]
>>
>> ============================================
>> PLATFORM_VERSION_CODENAME=REL
>> PLATFORM_VERSION=2.2
>> TARGET_PRODUCT=sim
>> TARGET_BUILD_VARIANT=eng
>> TARGET_SIMULATOR=true
>> TARGET_BUILD_TYPE=debug
>> TARGET_BUILD_APPS=
>> TARGET_ARCH=x86
>> HOST_ARCH=x86
>> HOST_OS=linux
>> HOST_BUILD_TYPE=release
>> BUILD_ID=MASTER
>> ============================================
>>
>> The errors is this :
>> target thumb C++: libandroid_runtime <=
>> frameworks/base/core/jni/android_server_BluetoothA2dpService.cpp
>> target thumb C++: libandroid_runtime <=
>> frameworks/base/core/jni/android_server_Watchdog.cpp
>> frameworks/base/core/jni/android_server_Watchdog.cpp: In function ‘void
>> dumpOneStack(int, int)’:
>> frameworks/base/core/jni/android_server_Watchdog.cpp:38: warning: ignoring
>> return value of ‘ssize_t write(int, const void*, size_t)’, declared with
>> attribute warn_unused_result
>> frameworks/base/core/jni/android_server_Watchdog.cpp:43: warning: ignoring
>> return value of ‘ssize_t write(int, const void*, size_t)’, declared with
>> attribute warn_unused_result
>> frameworks/base/core/jni/android_server_Watchdog.cpp:47: warning: ignoring
>> return value of ‘ssize_t write(int, const void*, size_t)’, declared with
>> attribute warn_unused_result
>> frameworks/base/core/jni/android_server_Watchdog.cpp: In function ‘void
>> dumpKernelStacks(JNIEnv*, _jobject*, _jstring*)’:
>> frameworks/base/core/jni/android_server_Watchdog.cpp:73: warning: ignoring
>> return value of ‘ssize_t write(int, const void*, size_t)’, declared with
>> attribute warn_unused_result
>> frameworks/base/core/jni/android_server_Watchdog.cpp:91: warning: ignoring
>> return value of ‘ssize_t write(int, const void*, size_t)’, declared with
>> attribute warn_unused_result
>> In function ‘int open(const char*, int, ...)’,
>>     inlined from ‘void dumpKernelStacks(JNIEnv*, _jobject*, _jstring*)’ at
>> frameworks/base/core/jni/android_server_Watchdog.cpp:66:
>> /usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’
>> declared with attribute error: open with O_CREAT in second argument needs 3
>> arguments
>> make: ***
>> [out/debug/host/linux-x86/pr/sim/obj/SHARED_LIBRARIES/libandroid_runtime_intermediates/android_server_Watchdog.o]
>> Error 1
>> t...@ubuntu:/media/ANDROID/Froyo$
>>
>> Any body know how to fix this bug ?
>>
>> Thanks
>>
>>  --
>> unsubscribe: 
>> [email protected]<android-porting%[email protected]>
>> website: http://groups.google.com/group/android-porting
>>
>
>

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

Reply via email to