0

在 Lion 上构建 SDL2 时,我在运行 makefile 时遇到了以下问题:

/usr/bin/ranlib: file: build/.libs/libSDL2.a(SDL_audiodev.o) has no symbols
/usr/bin/ranlib: file: build/.libs/libSDL2.a(SDL_yuv_mmx.o) has no symbols
/usr/bin/ranlib: file: build/.libs/libSDL2.a(SDL_render_d3d.o) has no symbols
/usr/bin/ranlib: file: build/.libs/libSDL2.a(SDL_libgl2D.o) has no symbols
/usr/bin/ranlib: file: build/.libs/libSDL2.a(SDL_ndsrender.o) has no symbols
/usr/bin/ranlib: file: build/.libs/libSDL2.a(SDL_render_gles.o) has no symbols
/usr/bin/ranlib: file: build/.libs/libSDL2.a(SDL_render_gles2.o) has no symbols
/usr/bin/ranlib: file: build/.libs/libSDL2.a(SDL_shaders_gles2.o) has no symbols
/usr/bin/ranlib: file: build/.libs/libSDL2.a(SDL_getenv.o) has no symbols
/usr/bin/ranlib: file: build/.libs/libSDL2.a(SDL_malloc.o) has no symbols
/usr/bin/ranlib: file: build/.libs/libSDL2.a(SDL_qsort.o) has no symbols
/usr/bin/ranlib: file: build/.libs/libSDL2.a(SDL_stdlib.o) has no symbols
/usr/bin/ranlib: file: build/.libs/libSDL2.a(SDL_x11opengles.o) has no symbols
libtool: link: ranlib build/.libs/libSDL2.a
ranlib: file: build/.libs/libSDL2.a(SDL_audiodev.o) has no symbols
ranlib: file: build/.libs/libSDL2.a(SDL_yuv_mmx.o) has no symbols
ranlib: file: build/.libs/libSDL2.a(SDL_render_d3d.o) has no symbols
ranlib: file: build/.libs/libSDL2.a(SDL_libgl2D.o) has no symbols
ranlib: file: build/.libs/libSDL2.a(SDL_ndsrender.o) has no symbols
ranlib: file: build/.libs/libSDL2.a(SDL_render_gles.o) has no symbols
ranlib: file: build/.libs/libSDL2.a(SDL_render_gles2.o) has no symbols
ranlib: file: build/.libs/libSDL2.a(SDL_shaders_gles2.o) has no symbols
ranlib: file: build/.libs/libSDL2.a(SDL_getenv.o) has no symbols
ranlib: file: build/.libs/libSDL2.a(SDL_malloc.o) has no symbols
ranlib: file: build/.libs/libSDL2.a(SDL_qsort.o) has no symbols
ranlib: file: build/.libs/libSDL2.a(SDL_stdlib.o) has no symbols
ranlib: file: build/.libs/libSDL2.a(SDL_x11opengles.o) has no symbols

我不知道这是否与它有关,但以前我必须进行此修复以阻止它抱怨SDL_x11sym.h:106:1.

4

1 回答 1

4

好的,这就是我所做的:

  1. $ ./autogen.sh在终端中运行。

  2. ./Xcode/SDL/SDL.xcodeproj在 Xcode 中打开。

  3. 运行Framework目标:

    SDL2 框架目标

  4. 在 finder 中打开生成的框架:

    在查找器中打开框架

  5. 复制SDL2.framework/Library/Frameworks/

    复制框架

呜呜

于 2012-06-03T05:06:22.163 回答