在 Mac OS X Lion 中构建 Android 2.2

发布于 2024-11-28 16:19:54 字数 710 浏览 0 评论 0原文

我想为 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

无语# 2024-12-05 16:19:54

检查 此处获取第 13 步的答案。这是因为 make 无法从模拟器编译代码。

Check here for an answer on step 13. It's because the make failed to compile codes from the Emulator.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文