首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >尝试编译Gimp时无法编译gegl

尝试编译Gimp时无法编译gegl
EN

Stack Overflow用户
提问于 2018-08-16 00:06:13
回答 1查看 316关注 0票数 0

我正在尝试使用git源代码和this method编译Gimp版本2.10。我是一个有多年经验的Gentoo用户,所以不是一个编译的初学者。Gentoo Portage有2.8版,但2.10看起来真的很好。我是一个热衷于摄影的人。

确定依赖关系...我需要babl,gegl和pango,因为安装的版本还不够晚。按照上面的说明,我已经在$HOME/gimp-git/中编译安装了babl,并在文件$PREFIX/share/config.site中设置了一个这样的环境

代码语言:javascript
复制
export PREFIX="$HOME/gimp-git"
export PATH="$PREFIX/bin:$PATH"
export PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig:$PKG_CONFIG_PATH:/usr/lib64/pkgconfig"
export LD_LIBRARY_PATH="$PREFIX/lib:$LD_LIBRARY_PATH"
export ACLOCAL_FLAGS="-I /usr/bin/"

我已经发布了命令

代码语言:javascript
复制
source $PREFIX/share/config.site

现在,当我尝试使用

代码语言:javascript
复制
./autogen.sh --prefix=$PREFIX

这没有问题,所以我发出了'make‘命令,它抛出了一个错误

代码语言:javascript
复制
<--- snip --->
gegl-tile-source.h:23:23: fatal error: babl/babl.h: No such file or directory
 #include <babl/babl.h>

那么这个文件就在

代码语言:javascript
复制
$PREFIX/include/babl-0.1/babl/babl.h

我甚至也把它放在这里,但同样的错误

代码语言:javascript
复制
include/babl/babl.h

关于如何让gegl构建找到babl.h文件,您有什么想法吗?

好的,既然我写了这篇文章,我已经把它添加到了我的$PREFIX/share/config.site文件中

代码语言:javascript
复制
export BABL_CFLAGS="$PREFIX/bin -I $PREFIX/include/babl-0.1/"
export BABL_LIBS="$PREFIX/lib/"

然后编译继续进行,直到下面这样:

代码语言:javascript
复制
gcc: warning: /home/francis/gimp-git/bin: linker input file unused because linking not done
./.libs/libgegl-0.4.so: undefined reference to `babl_format_with_space'
./.libs/libgegl-0.4.so: undefined reference to `babl_format'
./.libs/libgegl-0.4.so: undefined reference to `babl_format_get_n_components'
./.libs/libgegl-0.4.so: undefined reference to `babl_format_get_space'
./.libs/libgegl-0.4.so: undefined reference to `babl_format_get_type'
./.libs/libgegl-0.4.so: undefined reference to `babl_format_get_bytes_per_pixel'
./.libs/libgegl-0.4.so: undefined reference to `babl_type'
./.libs/libgegl-0.4.so: undefined reference to `babl_init'
./.libs/libgegl-0.4.so: undefined reference to `babl_model'
./.libs/libgegl-0.4.so: undefined reference to `babl_process'
./.libs/libgegl-0.4.so: undefined reference to `babl_ticks'
./.libs/libgegl-0.4.so: undefined reference to `babl_get_name'
./.libs/libgegl-0.4.so: undefined reference to `babl_exit'
./.libs/libgegl-0.4.so: undefined reference to `babl_format_has_alpha'
./.libs/libgegl-0.4.so: undefined reference to `babl_process_rows'
./.libs/libgegl-0.4.so: undefined reference to `babl_format_exists'
./.libs/libgegl-0.4.so: undefined reference to `babl_fish'
./.libs/libgegl-0.4.so: undefined reference to `babl_format_get_model'
collect2: error: ld returned 1 exit status
linking of temporary binary failed: Command '['/bin/sh', '../libtool', '--mode=link', '--tag=CC', '--silent', 'gcc', '-o', '/home/francis/FG-Docs/Downloads/gimpDeps/gegl-0.4.6/gegl/tmp-introspectomm_pwos/Gegl-0.4', '-export-dynamic', '-g', '-Ofast', '-mmmx', '-msse', '-ftree-vectorize', '-ffast-math', '-Wall', '-Wdeclaration-after-statement', '-Wmissing-prototypes', '-Wmissing-declarations', '-Winit-self', '-Wpointer-arith', '-Wold-style-definition', 'tmp-introspectomm_pwos/home/francis/FG-Docs/Downloads/gimpDeps/gegl-0.4.6/gegl/tmp-introspectomm_pwos/Gegl-0.4.o', '-L.', 'libgegl-0.4.la', '-lgio-2.0', '-lgobject-2.0', '-Wl,--export-dynamic', '-lgmodule-2.0', '-pthread', '-lglib-2.0']' returned non-zero exit status 1.
make[3]: *** [/usr/share/gobject-introspection-1.0/Makefile.introspection:160: Gegl-0.4.gir] Error 1
make[3]: Leaving directory '/home/francis/FG-Docs/Downloads/gimpDeps/gegl-0.4.6/gegl'
make[2]: *** [Makefile:906: all-recursive] Error 1
make[2]: Leaving directory '/home/francis/FG-Docs/Downloads/gimpDeps/gegl-0.4.6/gegl'
make[1]: *** [Makefile:635: all-recursive] Error 1
make[1]: Leaving directory '/home/francis/FG-Docs/Downloads/gimpDeps/gegl-0.4.6'
make: *** [Makefile:542: all] Error 2

所以我又有点卡住了!

EN

回答 1

Stack Overflow用户

发布于 2018-08-16 22:00:03

我按如下方式解决了这个问题。我正在使用Gentoo,发现了gimp-2.10.4的' ebuild‘,因此卸载了gimp-2.8,并安装了ebuild gimp-2.10.4

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/51862336

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档