LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   gimp installation on suse (https://www.linuxquestions.org/questions/linux-newbie-8/gimp-installation-on-suse-4175412580/)

rmugunthan 06-20-2012 11:07 PM

gimp installation on suse
 
Hi,

While trying to compile the gimp-2.8 package i got the below error message.

checking for pkg-config... /usr/bin/pkg-config
checking for GTK+ - version >= 2.24.10... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error: Test for GTK+ failed. See the file 'INSTALL' for help.
server:/opt/gimp-2.8_dump/gimp-2.8.0 #


But i already installed the gtk+-3.2.4 and glib-2.30.2 version. Still i got the above error message. Let me know if i missed something.

server:/opt/gimp-2.8_dump/gimp-2.8.0 # pkg-config --modversion gtk+-3.0
3.2.4

I added the gtk+ installed path in the /etc/ld.so.conf file and exported in PATH also.

Regards,
Mugunthan R

rmugunthan 06-20-2012 11:15 PM

Also i checked the config.log file and found the below.


configure:17415: checking for pkg-config
configure:17446: result: /usr/bin/pkg-config
configure:17468: checking for GTK+ - version >= 2.24.10
configure:17596: result: no
configure:17624: gcc -o conftest -std=gnu99 -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -Wold-style-definition -Wmissing-format-attribute -Wformat-security -fno-common -fdiagnostics-show-option conftest.c >&5
conftest.c:47:21: error: gtk/gtk.h: No such file or directory
conftest.c:52: warning: function declaration isn't a prototype [-Wstrict-prototypes]
conftest.c: In function 'main':
conftest.c:52: warning: old-style function definition [-Wold-style-definition]
conftest.c:53: error: 'gtk_major_version' undeclared (first use in this function)
conftest.c:53: error: (Each undeclared identifier is reported only once
conftest.c:53: error: for each function it appears in.)
conftest.c:53: error: 'gtk_minor_version' undeclared (first use in this function)
conftest.c:53: error: 'gtk_micro_version' undeclared (first use in this function)
configure:17624: $? = 1


I have the gtk.h file in the /opt/gtk+-3.2.4/include/gtk-3.0/gtk/ directory.

Regards,
Mugunthan R

John VV 06-21-2012 12:43 AM

on opensuse12.1 you do not install gimp2.8
UNLESS you build SECOND and NEWER versions of things like "glib" and GTK,BABL,GEGL, png15 and a whole mess of things

that if you are not ( yes in bold and CAP ) very VERY VERY CAREFUL - and i mean VERY VERY careful will kill the Operating system if you install the newer versions of basic operating system parts in a place that the Operating system can FIND

so if you REALLY and i mean REALLY want to do this it will take some time
you will need to build the whole development tree for 2.8 outside of the OS , in a location that the OS can NOT find
in it's own build folder that is not in the system $PATH

then MANUALLY or write your OWN build scripts BY HAND to point the gimp source to a SECOND and different $PATH, $PKG_CONFIG_PATH ,$LD_LIBRARY_PATH

------- WARNING -------
if you replace any of the suse12.1 SYSTEM PROGRAMS with new and DIFFERENT versions ( as in ONE dumb and stupid "typo" -- and they DO HAPPEN TO US ALL - you WILL KILL THE INSTALL OF 12.1 !!!!!



so do you REALLY want to do this ????????
gimp2.8 "?can?" be built on 12.1 but it is not going to be easy


Quote:

But i already installed the gtk+-3.2.4 and glib-2.30.2 version.
how ?
if you installed them to /usr
it is to late
you killed your install
it is not fixable ( easily that is ) R.I.P
and reinstall 12.1


all of those NEW versions of critical system files MUST be built in it's own build folder for this project
say point EVERYTHING ( i mean EVERYTHING needed for ALL the dependencies for the dependencies to some place like ???
say
/opt/gimptesting
so that in that folder you build a complete and second operating system file structure
/opt/gimptesting/bin
/opt/gimptesting/lib64
/opt/gimptesting/lib64/pkgconfig
/opt/gimptesting/include
/opt/gimptesting/share



to put this a different way
i have been building gimp since about 2002~3 and quite often the testing development tree the odd # versions)

and building 2.8 on opensuse 12.1 is something i AM NOT going to do
gimp 2.6.12 builds just fine on 12.1

rmugunthan 06-21-2012 03:35 AM

Thanks for the suggestion. I am using SUSE 10 SP3. I installed all the applications in /opt filesystem and exported those using PKG_CONFIG_PATH and PATH variables.

While tring to install gtk+-2.24.10 version i get the below error messages. I can't find the solution for that.

/opt/gimp-2.8_dump/gtk+-2.24.10/gdk/.libs/libgdk-x11-2.0.so: undefined reference to `XCompositeReleaseOverlayWindow'
/opt/gimp-2.8_dump/gtk+-2.24.10/gdk/.libs/libgdk-x11-2.0.so: undefined reference to `XCompositeGetOverlayWindow'

For that reason only i installed the latest gtk+ (3.2.4 using --disable-xcomposite).

knudfl 06-21-2012 04:18 AM

# 4
Quote:

For that reason only i installed the latest gtk+ -3.2.4 ..
GIMP 2.8.0 is a gtk2 application. Cannot use gtk3.

Knightron 06-21-2012 07:48 AM

@rmugunthan
Have you seen this link?
http://software.opensuse.org/package/gimp

It is very helpful, i've used packages from here to get Gimp 2.8 up and running on Opensuse 12.1
You are using Suse 10 though, which doesn't appear to have any available upgrades. You have one hard task ahead of you. I've tried compiling gimp 2.8 three times now, once on Debian squeeze, once on Slackware, and once on Opensuse 12.1. Each time i've failed. I must mention though that i am very inexperienced in compiling and i didn't know about development packages, and couldn't understand why a dependency was going undetected when it was installed. gtk2 and glib are the hardest packages. Might i add you may want to look into checkinstall.

What knudfl says is true. gimp says gtk 2.xx or higher, but it gtk3 does not count as higher, it's a different set of packages.


All times are GMT -5. The time now is 11:25 PM.