构建SDL2 - 架构x86_64,libiconv的未定义符号

时间:2014-01-06 20:17:12

标签: c++ sdl libiconv

我已下载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抛出这些错误。我不知道这是否有帮助。

0 个答案:

没有答案