LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-18-2007, 02:08 PM   #1
deeppurple
LQ Newbie
 
Registered: Mar 2007
Posts: 4

Rep: Reputation: 0
problem installing gtk+-2.8.9


hello all,
after numerous attempts to install gtk+-2.8.9 from its source (which i must say is an ardous task in itself :-( ), i'm constantly getting some error or the other. Now am stuck up with the following error:
i installed all the dependencies mentioned (i.e libtiff,libpng,jpegsrc,glib,atk,pango,cairo) with versions as mentioned and which were available at the home site gtk.org. Now when i'm installing cairo, i'm getting the following configure error


...
...
...
checking for supported warning flags...
checking whether gcc supports -Wall... yes
checking whether gcc supports -Wextra... yes
checking whether gcc supports -Wsign-compare... yes
checking whether gcc supports -Werror-implicit-function-declaration... yes
checking whether gcc supports -Wpointer-arith... yes
checking whether gcc supports -Wwrite-strings... yes
checking whether gcc supports -Wstrict-prototypes... yes
checking whether gcc supports -Wmissing-prototypes... yes
checking whether gcc supports -Wmissing-declarations... yes
checking whether gcc supports -Wnested-externs... yes
checking whether gcc supports -Wpacked... yes
checking whether gcc supports -Wswitch-enum... yes
checking whether gcc supports -Wmissing-format-attribute... yes
checking whether gcc supports -Wstrict-aliasing=2... yes
checking whether gcc supports -Winit-self... yes
checking whether gcc supports -Wunsafe-loop-optimizations... no
checking whether gcc supports -Wdeclaration-after-statement... yes
checking whether gcc supports -Wold-style-definition... yes
checking whether gcc supports -Wno-missing-field-initializers... yes
checking whether gcc supports -Wno-unused-parameter... yes
checking which warning flags were supported... -Wall -Wextra -Wsign-compare -Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Wdeclaration-after-statement -Wold-style-definition -Wno-missing-field-initializers -Wno-unused-parameter
checking whether gcc supports -fno-strict-aliasing... yes
checking for MMX/SSE intrinsics in the compiler... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating pixman/Makefile
config.status: creating pixman/src/Makefile
config.status: creating src/Makefile
config.status: creating test/Makefile
config.status: creating doc/Makefile
config.status: creating doc/public/Makefile
config.status: creating doc/public/version.xml
config.status: creating src/cairo.pc
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing src/cairo-features.h commands
config.status: creating src/cairo-features.h
config.status: src/cairo-features.h is unchanged

cairo will be compiled with the following surface backends:
image: yes (always builtin)
Xlib: yes
Xlib Xrender: yes
Quartz: no (disabled, use --enable-quartz to enable)
XCB: no (disabled, use --enable-xcb to enable)
Win32: no (requires a Win32 platform)
PostScript: yes
PDF: yes
SVG: yes
glitz: no (disabled, use --enable-glitz to enable)
BeOS: no (disabled, use --enable-beos to enable)
DirectFB: no (disabled, use --enable-directfb to enable)

the following font backends:
FreeType: no (requires fontconfig
Win32: no (requires a Win32 platform)
ATSUI: no (disabled, use --enable-atsui to enable)

the following features:
PNG functions: yes

and the following debug options:
gcov support: no
test surfaces: no
pdf testing: no (requires poppler-glib >= 0.4.1)
svg testing: no (requires librsvg-2.0 >= 2.14.0)

using CFLAGS:
-I/usr/local/include/libpng12 -Wall -Wextra -Wsign-compare -Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Wdeclaration-after-statement -Wold-style-definition -Wno-missing-field-initializers -Wno-unused-parameter -fno-strict-aliasing

configure: error: Cairo requires at least one font backend.
Please install freetype and fontconfig, then try again:
http://freetype.org/ http://fontconfig.org/


but i already installed the above and even 'locate freetype' shows its there!!
PS: while configure i gave the option as ./configure -prefix=/opt/gtk

can anybody pls guide me where am i geting it wrong?

thnx in advance
 
Old 03-18-2007, 02:11 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
can i stop you here and ask a few more general questions?

what distro are you running?
why are you trying to install gtk2 from source in the first place?
do you know that nealry *all* distributions will preinstall gtk2 libraries by default?
do you know that to compile other software that uses gtk2 you just need to install a simple -devel package, be it an rpm or a deb etc...?
 
Old 03-18-2007, 02:24 PM   #3
deeppurple
LQ Newbie
 
Registered: Mar 2007
Posts: 4

Original Poster
Rep: Reputation: 0
thnx a lot for such a prompt reply, following are the answers to the questions you asked:
what distro are you running?

am using ubuntu 6.06

why are you trying to install gtk2 from source in the first place?

well, i wasn't aware of any alternatives..though i tried to figure out some already available rpm for the same, but could not get across! can you suggest some other alternative..i know its a painful experience to try to build it from source..all this dependecy list is killing me!!

do you know that nealry *all* distributions will preinstall gtk2 libraries by default?

yeah, i heard but alas!! could not find one.. will preinstalled libs work for me instead of building from source??

do you know that to compile other software that uses gtk2 you just need to install a simple -devel package, be it an rpm or a deb etc...?

sorry..no idea about this! am a newbie..
plz guide me regarding this..
thnx once again
 
Old 03-18-2007, 02:41 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
ubuntu WILL have installed them... they even use gnome by default which is primarily based upon gtk2 libraries. if you DO install gtk2 yourself, you'll probably wreck your system as you'll have two different versions installed at once, yuck.

on ubuntu, try this...

sudo apt-get install libgtk2-dev

job should be done and dusted... i'd still look at why you want to compile stuff against gtk2 in the first place... maybe the app you want is already in apt and you've no reason to be doing any of this?
 
Old 03-21-2007, 09:56 AM   #5
deeppurple
LQ Newbie
 
Registered: Mar 2007
Posts: 4

Original Poster
Rep: Reputation: 0
thanx a lot ..
will give it a try and get back in case i need any further help on the same!!

regards..
 
  


Reply



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
Problem installing GTK victorsk Mandriva 2 01-19-2006 03:57 PM
problem installing GTK wisdom Linux - Software 6 06-15-2005 04:48 AM
problem installing GTK+-1.2.9 gobi_dgm Linux - Newbie 1 02-08-2005 06:10 AM
problem installing GTK einnor Mandriva 2 01-26-2005 07:16 AM
installing GTK 2 problem santasballz Linux - Software 3 02-18-2004 08:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:36 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration