编译 gnustep-gui-0.16.0 未定义对 png_sizeof 的引用时出现问题
我正在尝试在 Linux 机器上编译 GNUstep,但 gnustep-gui-0.16.0 包失败。 我下载了 GNUstep Startup stable 0.20.1 (http://wwwmain.gnustep.org/resources/downloads .php)并按照有关如何编译的说明进行操作(./configure && make)。 我收到此错误:
libgnustep-gui.so:对'png_sizeof'的未定义引用
我已经编译了最新的libpng(1.2.34),我可以看到png_sizeof被定义为宏。 但是,我不太确定如何修复 gnustep-gui-0.16.0 版本。 我尝试传递安装 libpng 的 include/lib 目录来配置构建,但似乎没有任何帮助。
我有相当最新的 Linux 盒子,但使用的是 gcc 3.3(不能选择升级 - 但这应该不是问题)。
完整错误:
Making all for tool set_show_service...
Compiling file set_show_service.m ...
Linking tool set_show_service ...
../Source/./obj/libgnustep-gui.so: undefined reference to `png_sizeof'
collect2: ld returned 1 exit status
gmake[3]: *** [obj/set_show_service] Error 1
gmake[2]: *** [set_show_service.all.tool.variables] Error 2
gmake[1]: *** [internal-all] Error 2
gmake[1]: Leaving directory `/home/bla/local/src/gnustep-startup-0.22.0/build/gnustep-gui-0.16.0'
gmake[3]: *** [obj/set_show_service] Error 1
gmake[2]: *** [set_show_service.all.tool.variables] Error 2
gmake[1]: *** [internal-all] Error 2
有什么建议吗? 谢谢
I'm trying to compile GNUstep on a linux box but gnustep-gui-0.16.0 package is failing. I downloaded GNUstep Startup stable 0.20.1 (http://wwwmain.gnustep.org/resources/downloads.php)and follow instructions about how to compile (./configure && make). I'm getting this error:
libgnustep-gui.so: undefined reference to 'png_sizeof'
I have compiled latest libpng (1.2.34) and I can see that png_sizeof is defined as macro. However, I'm not quite sure how to fix the gnustep-gui-0.16.0 build. I tried to pass the include/lib directory where libpng is installed to configure build but nothing seems to help.
I have quite up to date linux box but using gcc 3.3 (upgrade is not an option - but this should not be a problem).
Full error:
Making all for tool set_show_service...
Compiling file set_show_service.m ...
Linking tool set_show_service ...
../Source/./obj/libgnustep-gui.so: undefined reference to `png_sizeof'
collect2: ld returned 1 exit status
gmake[3]: *** [obj/set_show_service] Error 1
gmake[2]: *** [set_show_service.all.tool.variables] Error 2
gmake[1]: *** [internal-all] Error 2
gmake[1]: Leaving directory `/home/bla/local/src/gnustep-startup-0.22.0/build/gnustep-gui-0.16.0'
gmake[3]: *** [obj/set_show_service] Error 1
gmake[2]: *** [set_show_service.all.tool.variables] Error 2
gmake[1]: *** [internal-all] Error 2
Any suggestions?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请注意,您可以运行
make messages=yes
让 GNUstep-make 更详细地说明它正在做什么。Note that you can run
make messages=yes
to let GNUstep-make be more verbose about what it is doing.当我用 --verbose (或 --debug ?)编译时,我注意到 gnustep 正在研究它的 ~/GNUstep/System/Library/Libraries 和 headers (以及其他地方),所以我移动了 libpng 的副本,我'我们刚刚重新编译到该区域,并且全部编译没有问题。
When I compiled with --verbose (or --debug ?) I noticed that the gnustep is looking into it's ~/GNUstep/System/Library/Libraries and Headers (among other places) so I moved a copy of libpng, that I've just recompiled, into that area and it all compiled without problems.