LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 06-20-2012, 11:07 PM   #1
rmugunthan
Member
 
Registered: Jan 2009
Location: Coimbatore, India
Distribution: rhel
Posts: 49

Rep: Reputation: 3
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

Last edited by rmugunthan; 06-20-2012 at 11:09 PM.
 
Old 06-20-2012, 11:15 PM   #2
rmugunthan
Member
 
Registered: Jan 2009
Location: Coimbatore, India
Distribution: rhel
Posts: 49

Original Poster
Rep: Reputation: 3
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

Last edited by rmugunthan; 06-20-2012 at 11:23 PM.
 
Old 06-21-2012, 12:43 AM   #3
John VV
Guru
 
Registered: Aug 2005
Posts: 12,704

Rep: Reputation: 1688Reputation: 1688Reputation: 1688Reputation: 1688Reputation: 1688Reputation: 1688Reputation: 1688Reputation: 1688Reputation: 1688Reputation: 1688Reputation: 1688
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

Last edited by John VV; 06-21-2012 at 12:50 AM.
 
Old 06-21-2012, 03:35 AM   #4
rmugunthan
Member
 
Registered: Jan 2009
Location: Coimbatore, India
Distribution: rhel
Posts: 49

Original Poster
Rep: Reputation: 3
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).
 
Old 06-21-2012, 04:18 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
# 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.
 
Old 06-21-2012, 07:48 AM   #6
Knightron
Senior Member
 
Registered: Jan 2011
Location: Planet Earth
Distribution: Slackware.
Posts: 1,324
Blog Entries: 7

Rep: Reputation: 157Reputation: 157
@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.
 
  


Reply

Tags
gimp, gtk+, linux


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: GIMP Painter And GIMP Paint Studio Transform GIMP Into The Ultimate Painting Tool LXer Syndicated Linux News 0 02-08-2011 05:40 PM
[SOLVED] GIMP Installation Failed. Emor Slackware 10 01-06-2011 06:41 AM
gimp installation rohmanovich Linux - Newbie 3 01-31-2005 03:17 PM
GIMP installation problems Oxyd Linux - Software 2 12-27-2004 12:47 PM
Please help - Gimp RPM installation and general questions Annapanna Linux - Newbie 5 06-05-2002 02:12 PM


All times are GMT -5. The time now is 07:14 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration