简体   繁体   English

在 Mac OS X Lion 中构建 Android 2.2

[英]Building Android 2.2 in Mac OS X Lion

I want to build Android 2.2 for Mac OS X Lion, I initialized build environment and fetched the source code from android repository as mentioned in their site.我想为 Mac OS X Lion 构建 Android 2.2,我初始化构建环境并从 android 存储库中获取源代码,如他们的站点中所述。 I installed jdk 1.5 also.我也安装了 jdk 1.5。 Everything went fine expect for an error regarding libSDL.一切都很顺利,除了有关 libSDL 的错误。

ld: warning: ignoring file out/host/darwin-x86/obj/STATIC_LIBRARIES/libSDL_intermediates/libSDL.a, file was built for archive which is not the architecture being linked (i386)
Undefined symbols for architecture i386:
  "_SDL_GetError", referenced from:
      _sdl_logerr in sdlaudio.o
      _skin_window_resize in window.o
      _skin_surface_lock in surface.o
      _skin_surface_create_argb32_from in surface.o
      _skin_surface_create_slow in surface.o
      _skin_surface_create_fast in surface.o

I think there is a problem in building libSDL for 64 bit architecture.我认为为 64 位架构构建 libSDL 存在问题。 Is there any way to force the entire android build to 32 bit arch?有什么办法可以强制整个 android 构建为 32 位拱门?

Check this link, it has instructions on how to successfully compile Gingerbread on MacOSX Lion 10.7.检查这个链接,它有关于如何在 MacOSX Lion 10.7 上成功编译 Gingerbread 的说明。

http://groups.google.com/group/android-building/browse_thread/thread/bd566c8b513a4946 http://groups.google.com/group/android-building/browse_thread/thread/bd566c8b513a4946

Check here for an answer on step 13. It's because the make failed to compile codes from the Emulator. 在此处查看第 13 步的答案。这是因为 make 无法从 Emulator 编译代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM