LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 10-17-2008, 12:55 PM   #1
allyanncah
LQ Newbie
 
Registered: Sep 2008
Posts: 13

Rep: Reputation: 0
Having trouble compiling GTK+ 2.


I'm mightily disappointed in Novell for not having this critical dependency for hundreds upon hundreds of programs in the base package.

Secondly, I can't compile this. I've tried rpms, tarballs of both the .gz and .bz2 flavors, and I'm not getting anywhere. I have glib, but when I try to compile Cairo, it whines about not being able to find fontconfig and freetype:

using CFLAGS:
-I/usr/local/include/libpng12 -I/usr/local/include/pixman-1 -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 -Wunsafe-loop-optimizations -Wdeclaration-after-statement -Wold-style-definition -Wno-missing-field-initializers -Wno-unused-parameter -Wno-attributes -Wno-long-long -Winline -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/

both of which are installed in /usr/local/lib. I've gotten errors about not being able to find pkg-config, which is really silly because it's also in /usr/local/lib.

I don't even know where to start! I can't even compile Pidgin. I don't know the first thing about redirecting things to show them where to look, and the rpm man page is honestly Greek to me. Any advice would be adored.
 
Old 10-17-2008, 01:03 PM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Try doing
Code:
export PKG_CONFIG_PATH=/usr/local/lib:$PKG_CONFIG_PATH
After that compile your application.
 
  


Reply


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
after compiling GTK deepsix Linux - Software 2 04-02-2005 07:12 PM
Trouble compiling GTK+ Dargason Linux From Scratch 9 07-29-2004 02:15 PM
compiling gaim/ gtk error (two versions of gtk) webazoid Linux - Software 0 07-06-2004 06:05 PM
compiling gtk LinFreak! Slackware 6 07-19-2003 07:48 PM
Compiling GTK+ 2.2.1 Ju Deddo Koinu Linux - Software 4 04-29-2003 12:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 07:55 AM.

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