我已经下载了 SDL2 并尝试使用终端命令构建它
./configure --prefix=/home/user/SDL && make && make install
它遍历了一系列事情,最终在吐出后停止:
Undefined symbols for architecture x86_64:
"_libiconv", referenced from:
_SDL_iconv in SDL_iconv.o
_SDL_iconv_string in SDL_iconv.o
"_libiconv_close", referenced from:
_SDL_iconv_close in SDL_iconv.o
_SDL_iconv_string in SDL_iconv.o
"_libiconv_open", referenced from:
_SDL_iconv_open in SDL_iconv.o
_SDL_iconv_string in SDL_iconv.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [build/libSDL2.la] Error 1
我打了又打,不知道该怎么办。帮助?
编辑:
分解它, ./configure 单独工作,然后运行 make afterwords 会引发这些错误。我不知道这是否有帮助。