如果我试图编译GtkAda最小的GNAT编程Studio 6.1.0w示例,我会得到以下结果:
..。
gnatlink /home/myuser/own projects/ada/obj/main.ali -shared-libgcc -g -g -L/usr/lib/x86_64-linux-gnu/ -lgtkada -lgmodule-2.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lfontconfig -lfreetype -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lX11 -lm -o /home/gabre/own projects/ada/obj/main
/usr/lib/x86_64-linux-gnu//libcairo.so: undefined reference to `pixman_filter_create_separable_convolution'
/usr/lib/x86_64-linux-gnu//libcairo.so: undefined reference to `pixman_glyph_cache_remove'
/usr/lib/x86_64-linux-gnu//libcairo.so: undefined reference to `pixman_glyph_cache_freeze'
/usr/lib/x86_64-linux-gnu//libcairo.so: undefined reference to `pixman_glyph_cache_thaw'
/usr/lib/x86_64-linux-gnu//libcairo.so: undefined reference to `pixman_composite_glyphs'
/usr/lib/x86_64-linux-gnu//libcairo.so: undefined reference to `pixman_glyph_cache_lookup'
/usr/lib/x86_64-linux-gnu//libcairo.so: undefined reference to `pixman_glyph_get_mask_format'
/usr/lib/x86_64-linux-gnu//libcairo.so: undefined reference to `pixman_glyph_cache_insert'
/usr/lib/x86_64-linux-gnu//libcairo.so: undefined reference to `pixman_glyph_cache_create'
/usr/lib/x86_64-linux-gnu//libcairo.so: undefined reference to `pixman_composite_glyphs_no_mask'
collect2: ld returned 1 exit status
gnatlink: error when calling /usr/bin/gcc-4.6GPS执行的命令:
gnatmake -d -P/home/myuser/own projects/ada/AdaTest.gpr -vP2 -j4 -g如果我从终端尝试使用相同的命令,并且它也在GPSR5.0中工作(与最新的6.1.0w执行相同的命令),那么是什么原因导致了这种情况,我如何使GPS工作呢?
发布于 2015-01-26 08:43:51
我相信你在comp.lang.ada上也问过同样的问题。为了记录在案,Ludovic Brenta的回答是:安装libspinman-1-dev,然后在您的项目文件中编辑Linker'Linker_Options开关,以便它包含“-l像素-1”。
在从GPS运行时,链接器可能会看到gtk+附带的一个库的不同版本,这将有一个不同的依赖项列表。
https://stackoverflow.com/questions/28117395
复制相似问题