1

yum 在 Fedora 17 上安装 GIMP 2.8,但我想使用 2.6,所以我正在尝试编译它。但是,我一直收到这个错误,说它找不到gegl.h,它已安装并在包含路径上:

[root@life gegl]# pwd
/home/james/packages/gimp-2.6.12/app/gegl

[root@life gegl]# make
gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../.. -I../../app -I../../app /usr/include/gegl-0.1/ -pthread -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng15 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -I/usr/local/include -DG_LOG_DOMAIN=\"Gimp-GEGL\" -DGIMP_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE  -g -O2 -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -Wold-style-definition -Wformat-security -MT gimp-gegl.o -MD -MP -MF .deps/gimp-gegl.Tpo -c -o gimp-gegl.o gimp-gegl.c
gimp-gegl.c:24:18: fatal error: gegl.h: No such file or directory
compilation terminated.
make: *** [gimp-gegl.o] Error 1

[root@life gegl]# ls -l /usr/include/gegl-0.1/gegl.h 
-rw-r--r--. 1 root root 31086 Nov 18  2011 /usr/include/gegl-0.1/gegl.h
4

1 回答 1

1

请重新运行配置:

gcc -DHAVE_CONFIG_H 
  -I. 
  -I../.. 
  -I../.. 
  -I../.. 
  -I../../app 
  -I../../app 
  /usr/include/gegl-0.1/ // THIS IS WRONG: it should be "-I/usr/include/gegl-0.1"
  -pthread 
  ...

还请确保您的“-L”和/或“-l”库路径在链接时也是正确的。

于 2012-08-29T23:53:15.280 回答