2013-01-19 57 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。一切工作後