我想在Linux机器上安装UltraStarDeluxe。 make
使用由fpc (Free Pascal)
生成的编译脚本。在调用make
,以下是前ld
退出错误+警告消息:链接SDL_image错误
/usr/bin/ld: warning: ../game/link.res contains output sections; did you forget -T?
/usr/bin/ld: cannot find -lSDL_image
/home/sriram/ultraDX/ultrastardx-1.1-src/src/ultrastardx.dpr(344,1) Error: Error while linking
/home/sriram/ultraDX/ultrastardx-1.1-src/src/ultrastardx.dpr(344,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)
make[1]: *** [../game/ultrastardx] Error 1
make[1]: Leaving directory `/home/sriram/ultraDX/ultrastardx-1.1-src/src'
make: *** [all] Error 2
我从here知道警告信息(“你忘了-T”)是一个错误,已被删除。这是我的问题:
更新: 1.我搜索了更多的互联网,看到SDL代表简单直接媒体层。我安装了库,现在,根据question here,我/usr/local/lib
包含以下内容:
default.sfx libSDL-1.2.so.0.11.3 libSDL.la libSDL.so
libSDL-1.2.so.0 libSDL.a libSDLmain.a pkgconfig/
然而,错误,如上所述,仍然存在。我怎样才能摆脱它们?
更新2:
@wormsparty:我周围的错误得到了通过做rpm -U SDL_image-1.2.10-1.i586.rpm
。我现在得到package SDL_image-1.2.10-1.i586 is already installed
。我也检查了/usr/lib
,发现安装了以下库:
libSDL-1.2.so.0 libSDL-1.2.so.0.11.2 libSDL_image-1.2.so.0 libSDL_image-1.2.so.0.8.2 libSDL.so
这是我应该找的?
感谢您的回复!我从你建议的链接下载了'SDL_image-1.2.10-1.i586.rpm',并试图通过成为'root'并输入'rpm -i SDL_image-1.2.10-1.i586.rpm'来安装它。从SDL_image-1.2.10-1.i586的安装中获得'file /usr/lib/libSDL_image-1.2.so.0与来自软件包SDL_image-1.2.6-7.fc11.i586'的文件冲突。我该如何解决这个问题? – Sriram
所以这意味着你已经安装了SDL_image,但没有安装开发文件。这就像'yum install SDL_image-devel' – wormsparty
我已经更新了这个问题。请参阅上面的'更新2'。 – Sriram