我想为Mac OS X Lion构建Android 2.2,我初始化构建环境并从他们网站中提到的android存储库中获取源代码。我也安装了jdk 1.5。关于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
我认为构建64位架构的libSDL存在问题。有没有办法强制整个android构建到32位拱?
答案 0 :(得分:0)
检查此链接,它有关于如何在MacOSX Lion 10.7上成功编译Gingerbread的说明。
http://groups.google.com/group/android-building/browse_thread/thread/bd566c8b513a4946
答案 1 :(得分:0)
在第13步检查here以获得答案。这是因为make无法从模拟器编译代码。