Android framework build errors fix under Ubuntu 9.04

9/2/2009 11:44:20 PM
http://blog.csdn.net/forlong401/archive/2009/06/14/4269107.aspx issue discription:
------------------------------------------------------------------------------------------------
error type : undeclared or Error 1.
------------------------------------------------------------------------------------------------
host C: emulator <= external/qemu/console.c
host C: emulator <= external/qemu/loader.c
host C: emulator <= external/qemu/sockets.c
external/qemu/sockets.c: In function ‘sock_address_init_resolve’:
external/qemu/sockets.c:637: error: ‘EAI_NODATA’ undeclared (first use in this function)
external/qemu/sockets.c:637: error: (Each undeclared identifier is reported only once
external/qemu/sockets.c:637: error: for each function it appears in.)
make: *** [out/host/linux-x86/obj/EXECUTABLES/emulator_intermediates/sockets.o] Error 1
=========================================================
2.1 Solution:
=========================================================
The 1st way to fix:
Apparently you have to modify the makefile to fix it.
/external/qemu/Makefile.android
# this is needed to build the emulator on 64-bit Linux systems
ifeq ($(HOST_OS)-$(HOST_ARCH),linux-x86)
- MY_CFLAGS += -Wa,--32
+ MY_CFLAGS += -Wa,--32 -D_GNU_SOURCE
endif
ifeq ($(HOST_OS),freebsd) The 2st way to fix:
commenting out the EAI_NODATA line
found in sockets.c file.
err = EHOSTDOWN;
break; - case EAI_NODATA:
+ /* case EAI_NODATA: */
case EAI_NONAME:
err = ENOENT;
break;
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2.2 Reference Reading.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2.2.1 The reference link:
http://groups.google.com/group/android-porting/browse_thread/thread/8432b5f2accb718a/8bbec3737be7fc28?lnk=gst&q=external%2Fqemu%2Fsockets.c+%E2%80%98
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2.2.2 key words: qemu QEMU is a generic and open source processor emulator which can emulate i386, x86_64, ARM, MIPS, PowerPC and SPARC systems. In case of ARM, it can emulate an Integrator or a Versatile platform. The Versatile one is the most interesting as it includes a hard disk SCSI controller, an Ethernet card and a graphical display. Using a kernel compiled with the right options, it is possible to install a Debian distribution on such an emulated platform. That makes a cheap development platform. The emulated system running on an Athlon 64 X2 3800+ is around 20% faster than the popular NSLU2 and possibly with much more RAM (my emulated system has 256MiB of RAM). This howto has been written for a Debian host system, but could be easily adapted for other distributions. Alternatively prebuilt images are also available.
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 本文来自CSDN博客,转载请标明出处: http://blog.csdn.net/forlong401/archive/2009/06/14/4269107.aspx

更多相关文章

  1. android property_get 与 property_set
  2. Android定时器和倒计时实现淘宝秒杀功能
  3. centos7中安装Android(安卓)SDK的方法步骤
  4. Android打造炫酷进度条效果
  5. Android实现图片毛玻璃背景效果
  6. js简单判断移动端系统的方法
  7. Android判断Activity是否在最上层的方法
  8. 不错的学android的博客
  9. Android实现界面跳转功能

随机推荐

  1. Android相对布局RelativeLayout各属性介
  2. Android(安卓)的Margin和Padding属性以及
  3. Android(安卓)自动编译、打包生成apk文件
  4. Android中解决手机屏幕横竖屏切换问题
  5. Android笔记 - Android启动之Launcher启
  6. Android之Handler用法总结
  7. Android系统中设置TextView的行间距(非行
  8. Android(安卓)View 相关源码分析之五 Rel
  9. Android(安卓)4.3新特性——SElinux简介
  10. Android中自定义TextView的形状--圆形-椭