Re: [Gimp-user] GTK make problem
Martin Nordholts wrote: > On 08/06/2009 07:55 AM, julien wrote: > >> Hi, >> >> glib and gtk-related .pc files are in /usr/lib/pkgconfig. In >> /usr/local/lib/pkgconfig I have babl.pc, gegl.pc, gio-2.0.pc, >> gio-unix-2.0.pc, glib-2.0.pc but no gtk.pc, probably because it is not >> installed yet? >> >> I ran >> PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig >> export PKG_CONFIG_PATH >> and still I have this damned eroor on 'make': >> > > PKG_CONFIG_PATH is a configure time environment variable. make does not > care about PKG_CONFIG_PATH. You need to reconfigure with PKG_CONFIG_PATH > and probabl LD_LIBRARY_PATH set (but again, note that LD_LIBRARY_PATH is > not needed when later running the built software due to libtool's use of > rpaths. > > / Martin > As Martin says PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig export PKG_CONFIG_PATH ./configure Then 'make'. If 'make' still complains it may mean you've got the 'stripped' version of one or more packages and have to download the development versions (they usually have "-devel" in their names) which have header files needed for compilation. A similar problem came up about a month ago on the mailing list - it might also be worth your while having a look in the Gimp-user archives (July 2009; subject babl; author John Culleton, Doug, etc) Doug ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] GTK make problem
On 08/06/2009 07:55 AM, julien wrote: > Hi, > > glib and gtk-related .pc files are in /usr/lib/pkgconfig. In > /usr/local/lib/pkgconfig I have babl.pc, gegl.pc, gio-2.0.pc, > gio-unix-2.0.pc, glib-2.0.pc but no gtk.pc, probably because it is not > installed yet? > > I ran > PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig > export PKG_CONFIG_PATH > and still I have this damned eroor on 'make': PKG_CONFIG_PATH is a configure time environment variable. make does not care about PKG_CONFIG_PATH. You need to reconfigure with PKG_CONFIG_PATH and probabl LD_LIBRARY_PATH set (but again, note that LD_LIBRARY_PATH is not needed when later running the built software due to libtool's use of rpaths. / Martin -- My GIMP Blog: http://www.chromecode.com/ ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] GTK make problem
Hi, glib and gtk-related .pc files are in /usr/lib/pkgconfig. In /usr/local/lib/pkgconfig I have babl.pc, gegl.pc, gio-2.0.pc, gio-unix-2.0.pc, glib-2.0.pc but no gtk.pc, probably because it is not installed yet? I ran PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig export PKG_CONFIG_PATH and still I have this damned eroor on 'make': libtool: link: gcc -DGDK_PIXBUF_DISABLE_DEPRECATED -g -O2 -Wall -o .libs/gtk-query-immodules-2.0 queryimmodules.o ./.libs/libgtk-x11-2.0.so -L/usr/local/lib /home/julien/telechar/gtk+-2.16.5/gdk/.libs/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so /usr/lib/libglib-2.0.so -lpcre -lpangoft2-1.0 ../gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so ../gdk/.libs/libgdk-x11-2.0.so -lpangocairo-1.0 -lpango-1.0 /usr/lib/libXinerama.so /usr/lib/libXcursor.so /usr/lib/libXcomposite.so /usr/lib/libXext.so /usr/lib/libXdamage.so /usr/lib/libXfixes.so /usr/lib/libcairo.so /usr/lib/libfontconfig.so /usr/lib/libfreetype.so -lexpat /usr/lib/libglitz.so /usr/lib/libpng12.so -lz /usr/lib/libxcb-render-util.so /usr/lib/libxcb-render.so /usr/lib/libXrender.so /usr/lib/libpixman-1.so /usr/lib/libX11.so /usr/lib/libxcb-xlib.so /usr/lib/libxcb.so -lXau /home/.../telechar/gtk+-2.16.5/gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so /usr/local/lib/libgio-2.0.so /usr/local/lib/libgobject-2.0.so /usr/local/lib/libgmodule-2.0.so -ldl /usr/local/lib/libglib-2.0.so -lm ./.libs/libgtk-x11-2.0.so: undefined reference to `g_signal_chain_from_overridden_handler' /usr/local/lib/libgio-2.0.so: undefined reference to `g_poll' ./.libs/libgtk-x11-2.0.so: undefined reference to `g_signal_override_class_handler' ./.libs/libgtk-x11-2.0.so: undefined reference to `g_dpgettext2' ./.libs/libgtk-x11-2.0.so: undefined reference to `g_set_error_literal' ./.libs/libgtk-x11-2.0.so: undefined reference to `g_signal_new_class_handler' ./.libs/libgtk-x11-2.0.so: undefined reference to `g_dgettext' collect2: ld returned 1 exit status make[4]: *** [gtk-query-immodules-2.0] Error 1 The problem doesn't seem to be in pkgconfig or glib. What are these "undefined reference"? Doug a écrit : > > PKG_CONFIG_PATH needs to point to a pkconfig folder containing various > .pc files. > > Look in /usr/lib/pkconfig and /usr/local/lib/pkconfig and check where > various glib- and gtk-related .pc files are located. > You may well need both pkconfig folders. > Then > PKG_CONFIG_PATH=/usr/local/lib/pkconfig:/usr/lib/pkconfig; export > PKG_CONFIG_PATH; ./configure > > You should be able to compile but you may not be able to run, because > the program can't find this or that library which you know you have - > you get a message saying "couldn't find library lib..so." > > Setting LD_LIBRARY_PATH may avoid that happening, but quite often it > doesn't. > Usually it's because the program insists on looking for that library in > /usr/lib when you've got it in /usr/ local (or /usr/lib64 on a 64-bit > machine). > In that case, as root create absolute links from /usr/lib to all those > particular library lib..so... files in /usr/local/lib (or wherever). > It solves most problems. > > HTH > > Doug > > > > > julien wrote: >> Hi, >> >> I had installed glib-2.20.4 through a rpm built with checkinstall. I >> uninstalled it and re-installed glib with "make install". >> >> I have the glib-2.0 directory in /usr/share, /usr/local/share, >> /usr/local/lib >> >> The PKG-CONFIG_PATH and LD_LIBRARY_PATH environment variables are empty. >> >> I tried "export LD_LIBRARY_PATH='/usr/local/lib' && export >> PKG_CONFIG_PATH='/usr/local/lib' " before ./configure in the gtk+-2.16.5 >> directory : my problem persits. >> >> I also added the three glib-2.0 paths in ld.so.conf, without any success. >> >> Is this actually a glib path problem? I have the >> /usr/local/lib/libgio-2.0.so file... >> >> >>> On 08/01/2009 08:44 PM, julien wrote: >>> Hi, I am trying to install gtk+-2.16.5 from sources under openSuse-11.0, (before installing unstable GIMP for UI translation). "Configure" gives no error message. Running "make" gives this error: /usr/local/lib/libgio-2.0.so: undefined reference to `g_poll' I can't find how to resolve this problem. I'd be grateful for any help. >>> Looks like you're not linking against the proper GLib library, make sure >>> to setup PKG_CONFIG_PATH and LD_LIBRARY_PATH at configure time so that >>> the right dependencies are found preferably through the use of >>> config.site. >>> >>> / Martin >>> > > ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] GTK make problem
On 08/05/2009 11:54 AM, Doug wrote: > Look in /usr/lib/pkconfig and /usr/local/lib/pkconfig and check where > various glib- and gtk-related .pc files are located. > You may well need both pkconfig folders. > Then > PKG_CONFIG_PATH=/usr/local/lib/pkconfig:/usr/lib/pkconfig; export > PKG_CONFIG_PATH; ./configure > > You should be able to compile but you may not be able to run, because > the program can't find this or that library which you know you have - > you get a message saying "couldn't find library lib..so." > > Setting LD_LIBRARY_PATH may avoid that happening, but quite often it > doesn't. Setting LD_LIBRARY_PATH is only necessary at configure time. After that it is not necessary since libtool sets the necessary rpaths of the binaries it builds, at least for the babl/GLib/GTK+/GEGL/GIMP stack. And why use a prefix that requires root write privileges? Instead of manually setting PKG_CONFIG_PATH and LD_LIBRARY_PATH, let configure do that. Just put this in /home/user/dev/share/config.site: export PKG_CONFIG_PATH="/home/user/dev/lib/pkgconfig:$PKG_CONFIG_PATH" export LD_LIBRARY_PATH="/home/user/dev/lib:$LD_LIBRARY_PATH" and invoke ./autogen.sh or configure with --prefix=/home/user/dev. By having config.site there is no need to keep PKG_CONFIG_PATH and LD_LIBRARY_PATH globally, and automatic reconfiguration when making after e.g. configure.in/ac changes works without issues. / Martin -- My GIMP Blog: http://www.chromecode.com/ ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] GTK make problem
PKG_CONFIG_PATH needs to point to a pkconfig folder containing various .pc files. Look in /usr/lib/pkconfig and /usr/local/lib/pkconfig and check where various glib- and gtk-related .pc files are located. You may well need both pkconfig folders. Then PKG_CONFIG_PATH=/usr/local/lib/pkconfig:/usr/lib/pkconfig; export PKG_CONFIG_PATH; ./configure You should be able to compile but you may not be able to run, because the program can't find this or that library which you know you have - you get a message saying "couldn't find library lib..so." Setting LD_LIBRARY_PATH may avoid that happening, but quite often it doesn't. Usually it's because the program insists on looking for that library in /usr/lib when you've got it in /usr/ local (or /usr/lib64 on a 64-bit machine). In that case, as root create absolute links from /usr/lib to all those particular library lib..so... files in /usr/local/lib (or wherever). It solves most problems. HTH Doug julien wrote: > Hi, > > I had installed glib-2.20.4 through a rpm built with checkinstall. I > uninstalled it and re-installed glib with "make install". > > I have the glib-2.0 directory in /usr/share, /usr/local/share, > /usr/local/lib > > The PKG-CONFIG_PATH and LD_LIBRARY_PATH environment variables are empty. > > I tried "export LD_LIBRARY_PATH='/usr/local/lib' && export > PKG_CONFIG_PATH='/usr/local/lib' " before ./configure in the gtk+-2.16.5 > directory : my problem persits. > > I also added the three glib-2.0 paths in ld.so.conf, without any success. > > Is this actually a glib path problem? I have the > /usr/local/lib/libgio-2.0.so file... > > >> On 08/01/2009 08:44 PM, julien wrote: >> >>> Hi, >>> >>> I am trying to install gtk+-2.16.5 from sources under openSuse-11.0, >>> (before installing unstable GIMP for UI translation). >>> "Configure" gives no error message. >>> Running "make" gives this error: >>> >>> /usr/local/lib/libgio-2.0.so: undefined reference to `g_poll' >>> >>> I can't find how to resolve this problem. >>> I'd be grateful for any help. >>> >> Looks like you're not linking against the proper GLib library, make sure >> to setup PKG_CONFIG_PATH and LD_LIBRARY_PATH at configure time so that >> the right dependencies are found preferably through the use of config.site. >> >> / Martin >> ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] GTK make problem
Hi, I had installed glib-2.20.4 through a rpm built with checkinstall. I uninstalled it and re-installed glib with "make install". I have the glib-2.0 directory in /usr/share, /usr/local/share, /usr/local/lib The PKG-CONFIG_PATH and LD_LIBRARY_PATH environment variables are empty. I tried "export LD_LIBRARY_PATH='/usr/local/lib' && export PKG_CONFIG_PATH='/usr/local/lib' " before ./configure in the gtk+-2.16.5 directory : my problem persits. I also added the three glib-2.0 paths in ld.so.conf, without any success. Is this actually a glib path problem? I have the /usr/local/lib/libgio-2.0.so file... > > On 08/01/2009 08:44 PM, julien wrote: >> Hi, >> >> I am trying to install gtk+-2.16.5 from sources under openSuse-11.0, >> (before installing unstable GIMP for UI translation). >> "Configure" gives no error message. >> Running "make" gives this error: >> >> /usr/local/lib/libgio-2.0.so: undefined reference to `g_poll' >> >> I can't find how to resolve this problem. >> I'd be grateful for any help. > > Looks like you're not linking against the proper GLib library, make sure > to setup PKG_CONFIG_PATH and LD_LIBRARY_PATH at configure time so that > the right dependencies are found preferably through the use of config.site. > > / Martin > > ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] GTK make problem
On 08/01/2009 08:44 PM, julien wrote: > Hi, > > I am trying to install gtk+-2.16.5 from sources under openSuse-11.0, > (before installing unstable GIMP for UI translation). > "Configure" gives no error message. > Running "make" gives this error: > > /usr/local/lib/libgio-2.0.so: undefined reference to `g_poll' > > I can't find how to resolve this problem. > I'd be grateful for any help. Looks like you're not linking against the proper GLib library, make sure to setup PKG_CONFIG_PATH and LD_LIBRARY_PATH at configure time so that the right dependencies are found preferably through the use of config.site. / Martin ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
[Gimp-user] GTK make problem
Hi, I am trying to install gtk+-2.16.5 from sources under openSuse-11.0, (before installing unstable GIMP for UI translation). "Configure" gives no error message. Running "make" gives this error: make[3]: going into directory « /home/.../telechar/gtk+-2.16.5/gtk » /bin/sh ../libtool --mode=link gcc -DGDK_PIXBUF_DISABLE_DEPRECATED -g -O2 -Wall -o gtk-query-immodules-2.0 queryimmodules.o libgtk-x11-2.0.la ../gdk-pixbuf/libgdk_pixbuf-2.0.la ../gdk/libgdk-x11-2.0.la libtool: link: gcc -DGDK_PIXBUF_DISABLE_DEPRECATED -g -O2 -Wall -o .libs/gtk-query-immodules-2.0 queryimmodules.o ./.libs/libgtk-x11-2.0.so -L/usr/local/lib /home/.../telechar/gtk+-2.16.5/gdk/.libs/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so /usr/lib/libglib-2.0.so -lpcre -lpangoft2-1.0 ../gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so ../gdk/.libs/libgdk-x11-2.0.so -lpangocairo-1.0 -lpango-1.0 /usr/lib/libXinerama.so /usr/lib/libXcursor.so /usr/lib/libXcomposite.so /usr/lib/libXext.so /usr/lib/libXdamage.so /usr/lib/libXfixes.so /usr/lib/libcairo.so /usr/lib/libfontconfig.so /usr/lib/libfreetype.so -lexpat /usr/lib/libglitz.so /usr/lib/libpng12.so -lz /usr/lib/libxcb-render-util.so /usr/lib/libxcb-render.so /usr/lib/libXrender.so /usr/lib/libpixman-1.so /usr/lib/libX11.so /usr/lib/libxcb-xlib.so /usr/lib/libxcb.so -lXau /home/.../telechar/gtk+-2.16.5/gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so /usr/local/lib/libgio-2.0.so /usr/local/lib/libgobject-2.0.so /usr/local/lib/libgmodule-2.0.so -ldl /usr/local/lib/libglib-2.0.so -lm ./.libs/libgtk-x11-2.0.so: undefined reference to `g_signal_chain_from_overridden_handler' /usr/local/lib/libgio-2.0.so: undefined reference to `g_poll' ./.libs/libgtk-x11-2.0.so: undefined reference to `g_signal_override_class_handler' ./.libs/libgtk-x11-2.0.so: undefined reference to `g_dpgettext2' ./.libs/libgtk-x11-2.0.so: undefined reference to `g_set_error_literal' ./.libs/libgtk-x11-2.0.so: undefined reference to `g_signal_new_class_handler' ./.libs/libgtk-x11-2.0.so: undefined reference to `g_dgettext' collect2: ld returned 1 exit status make[3]: *** [gtk-query-immodules-2.0] Error 1 I can't find how to resolve this problem. I'd be grateful for any help. ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] gtk - make
Hi Bill, - I've been away for three days- well, I did what you suggested (moving the glib,gtk and gimp source to ../src), but nothing changed, only the directory that gimp leaves at the end becomes another one: .. make[1]: Leaving directory `/usr/local/src/gtk+' make: *** [all-recursive-am] Error 2 ... > My first question is: why are you installing these in your home directory? My last gimps (in SuSE 6.0 and 6.2) had their source also in the home-directory and this didn't affect the installation. I also have the required glib1.2.8 and gtk+ 1.2.8 on the SuSE-distribution-CD, but if I install these, gimp says, while compiling, that he can't find gtk+.config, which he tries to find in /usr/local/bin. When I compile glib by myself, it puts glib.config to /usr/local/bin. BTW - I'm root Hago ___ Gimp-user mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user
[Gimp-user] gtk - make
Hi, - sorry, another error that I don't understand. glib 1.2.8 is installed gtk+ "./configure" runs to its end. gtk+ "make" runs for half a minute, then I get the error-message: ... gtkaccelgroup.c: In function `gtk_accel_group_create_add': gtkaccelgroup.c:668: `GTK_TYPE_ACCEL_GROUP' undeclared (first use in this function) gtkaccelgroup.c:668: (Each undeclared identifier is reported only once gtkaccelgroup.c:668: for each function it appears in.) gtkaccelgroup.c:670: `GTK_TYPE_GDK_MODIFIER_TYPE' undeclared (first use in this function) gtkaccelgroup.c:671: `GTK_TYPE_ACCEL_FLAGS' undeclared (first use in this function) gtkaccelgroup.c: In function `gtk_accel_group_create_remove': gtkaccelgroup.c:687: `GTK_TYPE_ACCEL_GROUP' undeclared (first use in this function) gtkaccelgroup.c:689: `GTK_TYPE_GDK_MODIFIER_TYPE' undeclared (first use in this function) make[2]: *** [gtkaccelgroup.lo] Error 1 make[2]: Leaving directory `/home/gtk+/gtk' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/gtk+' make: *** [all-recursive-am] Error 2 I have no Idea what's happening What now? Hago ___ Gimp-user mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user