2013-01-19 58 views
1

我试图从源代码构建java-gnome 4.1.2(http://ftp.gnome.org/pub /gnome/sources/java-gnome/4.1/)使用这里给出的指示:http://java-gnome.sourceforge.net/README.htmlmake:*** [build-java]错误1从源代码构建java-gnome 4.1.2

的“的./configure”命令工作正常,表明不存在依赖问题,但‘让’给了我下面的输出:

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 

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

回答

1

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

+0

嗯我有一个独特的文件夹在正确的地方,但没有unique.h文件在任何地方(据我所见,没有任何.h和.java的.h文件)我假设这是一个应该产生的文件,而不是我应该从某些依赖关系或其他文件生成的文件?我将如何去了解为什么我没有这个文件? – db579

+0

它看起来像是另一个库,您将需要进行设置。 https://github.com/mate-desktop/mate-power-manager/issues/5 https://live.gnome.org/LibUnique 您也可以只能够做类似:' sudo apt-get install libunique-3.0-0'。看来量子已经为java-gnome包装了。考虑使用它们? – altendky

+0

apt-get install告诉我我已经安装了最新版本。这是依赖之一。我仍然使用Precise,所以我没有考虑使用量子包 - 是一种选择吗? – db579

0

我遇到了同样的问题,经过一段时间Google搜索后,我最终将“unique-3.0”目录中的“unique”目录移至/ usr/include。一切工作后