1

我正在尝试使用 git 源和此方法编译 Gimp 2.10 版。我是一个有多年经验的 Gentoo 用户,所以不是编译的初学者。Gentoo Portage 有 2.8 版本,但 2.10 看起来非常好。我是一个热心的摄影师。

好的依赖项......我需要 bbl、gegl 和 pango,因为安装的版本还不够晚。根据上述说明,我在 $HOME/gimp-git/ 中编译了安装的 babl,并在文件 $PREFIX/share/config.site 中设置了一个环境

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/"

我已发出命令

source $PREFIX/share/config.site

现在当我尝试编译gegl

./autogen.sh --prefix=$PREFIX

没问题,所以我发出'make'命令并引发错误

<--- snip --->
gegl-tile-source.h:23:23: fatal error: babl/babl.h: No such file or directory
 #include <babl/babl.h>

那个文件在

$PREFIX/include/babl-0.1/babl/babl.h

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

include/babl/babl.h

关于如何让gegl构建找到babl.h文件的任何想法将不胜感激?

好的,因为我写了这个,我已经把它添加到我的 $PREFIX/share/config.site 文件中

export BABL_CFLAGS="$PREFIX/bin -I $PREFIX/include/babl-0.1/"
export BABL_LIBS="$PREFIX/lib/"

编译继续进行,直到:

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

所以我又有点卡住了!

4

1 回答 1

0

我解决了这个问题如下。我正在使用 Gentoo 并为 gimp-2.10.4 发现了一个“ebuild”,因此卸载了 gimp-2.8 并安装了 ebuild gimp-2.10.4

于 2018-08-16T14:00:02.757 回答