1

我正在尝试使用此处给出的说明从源代码(http://ftp.gnome.org/pub/gnome/sources/java-gnome/4.1/)构建 java-gnome 4.1.2:http://java- gnome.sourceforge.net/README.html

'./configure' 命令工作正常,表明没有依赖问题,但 'make' 给了我以下输出:

build/faster
GCC     generated/bindings/org/gnome/unique/UniqueApp.c
/usr/bin/gcc-4.6  -g -Wall -fPIC -I/usr/lib/jvm/java-7-oracle/include -                    I/usr/lib/jvm/java-7-oracle/include/linux -Wno-int-to-pointer-cast -Wno-pointer-to-int-    cast  -Werror-implicit-function-declaration -Wfatal-errors -Isrc/jni -Itmp/include -      pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/gtk-3.0/unix-print -I/usr/include/gtksourceview-3.0 -I/usr/include/libxml2 -I/usr/include/librsvg-2.0 -I/usr/include/enchant -o tmp/objects/org/gnome/unique/UniqueApp.o -c     generated/bindings/org/gnome/unique/UniqueApp.c
generated/bindings/org/gnome/unique/UniqueApp.c:44:27: fatal error: unique/unique.h: No such file or directory
compilation terminated.
make: *** [build-java] Error 1

有谁知道问题是什么?谢谢

4

2 回答 2

1

gcc无法unique/unique.h在提供的包含路径中找到。之后的每个路径-I都将被添加到包含路径的集合中。找到的位置unique/unique.h并确保该路径在gcc命令行上。

于 2013-01-19T14:34:07.607 回答
0

我遇到了同样的问题,在谷歌搜索了一段时间后出现空白,我最终将“唯一”目录从“unique-3.0”目录移动到 /usr/include。一切正常后

于 2014-06-09T17:47:14.110 回答