首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >GIMP 2.6在Fedora 17上编译失败,出现致命错误: gegl.h:没有这样的文件或目录

GIMP 2.6在Fedora 17上编译失败,出现致命错误: gegl.h:没有这样的文件或目录
EN

Stack Overflow用户
提问于 2012-08-30 06:41:18
回答 1查看 524关注 0票数 1

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

代码语言:javascript
复制
[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
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-08-30 07:53:15

请重新运行配置:

代码语言:javascript
复制
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”库路径在链接时也是正确的。

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

https://stackoverflow.com/questions/12187500

复制
相关文章

相似问题

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