在 Mac OS X Lion 中构建 Android 2.2
我想为 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 位架构?
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. I installed jdk 1.5 also. Everything went fine expect for an error regarding 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. Is there any way to force the entire android build to 32 bit arch?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
检查 此处获取第 13 步的答案。这是因为 make 无法从模拟器编译代码。
Check here for an answer on step 13. It's because the make failed to compile codes from the Emulator.