Thread: [Java-gnome-developer] Compilation problem .....
Brought to you by:
afcowie
From: sankar b. <sha...@gm...> - 2010-11-21 11:07:51
|
Hi i have downloaded the latest java-gnome. i am having some problems please help me. i am using fedora 12. i have executed the below commands like ./configure then make i am getting the bellow errors .. tmp/include/org_gnome_glib_GlibException.h tmp/include/org_gnome_glib_GObject.h tmp/include/org_gnome_glib_Signal.h tmp/include/org_gnome_glib_FatalError.h MKDIR tmp/objects/org/freedesktop/enchant GCC src/bindings/org/freedesktop/enchant/EnchantBrokerOverride.c src/bindings/org/freedesktop/enchant/EnchantBrokerOverride.c:35:21: error: gtk/gtk.h: No such file or directory src/bindings/org/freedesktop/enchant/EnchantBrokerOverride.c:36:21: error: enchant.h: No such file or directory In file included from src/bindings/org/freedesktop/enchant/EnchantBrokerOverride.c:38: src/jni/bindings_java.h:38:18: error: glib.h: No such file or directory src/jni/bindings_java.h:39:25: error: glib-object.h: No such file or directory src/jni/bindings_java.h:40:35: error: gdk-pixbuf/gdk-pixbuf.h: No such file or directory In file included from src/bindings/org/freedesktop/enchant/EnchantBrokerOverride.c:38: src/jni/bindings_java.h:50: error: expected declaration specifiers or ‘...’ before ‘GError’ compilation terminated due to -Wfatal-errors. make: *** [build-java] Error 1 i cant understand the make file so i cant modify it. i think if i add the pkg-config gtk+2.0 --cflags then the problem will be solved. Please help me to solve the problem. with regards............ |
From: Andrew C. <an...@op...> - 2010-11-21 12:51:54
Attachments:
fedora-configure-probes.patch
|
On Sun, 2010-11-21 at 16:31 +0530, sankar bose wrote: > GCC src/bindings/org/freedesktop/enchant/EnchantBrokerOverride.c > src/bindings/org/freedesktop/enchant/EnchantBrokerOverride.c:35:21: > error: gtk/gtk.h: No such file or directory > src/bindings/org/freedesktop/enchant/EnchantBrokerOverride.c:36:21: > error: enchant.h: No such file or directory > In file included from > src/bindings/org/freedesktop/enchant/EnchantBrokerOverride.c:38: You're missing the necessary build prerequisites. If you install the "development" packages for GTK etc you'll be on your way. ++ The top level configure script is supposed to check for those, but for whatever reason, no one running Fedora has contributed code to do this. But it should have the checks, definitely. Attached is patch (Bazaar bundle, actually) to 4.0.17 that introduces these probes. If you are just building from released .tar then please tell us what the FIXMEs are. If you are building from 'mainline', then please merge this bundle, correct the FIXMEs, and send us an updated branch we'll merge it to 'mainline' straight away. Either way, what we'd like to know is what *development* packages to suggest people install if the prerequisite is not met. Thanks, AfC Sydney -- Andrew Frederick Cowie Operational Dynamics is an operations and engineering consultancy focusing on IT strategy, organizational architecture, systems review, and effective procedures for change management: enabling successful deployment of mission critical information technology in enterprises, worldwide. http://www.operationaldynamics.com/ Sydney New York Toronto London |
From: sankar b. <sha...@gm...> - 2010-11-21 18:41:57
|
This sounds complete stupid but i am started using fedora just 2 days ago so can you please tell me how should i apply this patch. sorry for the inconvenience . with regards.......... |
From: Andrew C. <an...@op...> - 2010-11-22 09:43:01
|
On Mon, 2010-11-22 at 00:11 +0530, sankar bose wrote: > This sounds complete stupid but i am started using fedora just 2 days > ago so can you please tell me how should i apply this patch. Hopefully someone running Fedora can help tell you (and thence us) what dependencies you'll need to install. [the patch wouldn't have fixed your "problem"; it just would have helped you with understanding what prerequisites you are missing. But there definitely people out there building and using java-gnome on Fedora, so hopefully one of them can help us out here and, while they're at it, maybe point you at a package to use] Alexander - can you assist? AfC Sydney |
From: Alexander B. <ab...@ro...> - 2010-12-01 20:00:37
|
sön 2010-11-21 klockan 16:31 +0530 skrev sankar bose: > Hi > i am getting the bellow errors .. > src/bindings/org/freedesktop/enchant/EnchantBrokerOverride.c:35:21: > error: gtk/gtk.h: No such file or directory Hi, If you only need to use java-gnome and don't intend to hack on it directly then it might be enough for you to just install the java-gnome package in Fedora. Just do "pkcon install java-gnome" or as root "yum install java-gnome". (The Fedora package is still at 4.0.16 though because I can't really update java-gnome on the release branches F13 and F14 before I update it on the development branch F15, but it fails to build on F15 after libnotify 0.7.0 appeared.) To compile java-gnome from source you'll need to first install these packages: junit pkgconfig atk-devel cairo-devel gtk2-devel glib2-devel gtksourceview2-devel gtkspell-devel libglade2-devel libnotify-devel pango-devel unique-devel gettext python java-1.6.0-openjdk-devel enchant-devel gcc After that your make should hopefully succeed. /Alexander |