LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-27-2006, 12:44 AM   #1
thepr0fess0r
LQ Newbie
 
Registered: Apr 2005
Location: Rakeigh, NC
Distribution: Slack
Posts: 16

Rep: Reputation: 0
Installing (Updating) GTK+


I'm installing gtk+-2.8.12 from source, and it barks at me, for the following reason:

checking whether make sets $(MAKE)... (cached) yes
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for BASE_DEPENDENCIES... configure: error: Package requirements (glib-2.0 >= 2.8.5 atk >= 1.0.1 pango >= 1.9.0 cairo >= 0.9.2) were not met.
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.


Configure claims that I don't have glib, atk, pango or cairo, but I downloaded those, built and installed them! I tried changing my PKG_CONFIG_PATH variable to /usr/lib/pkgconfig/ and /usr/local/lib/pkgconfig/ but with no luck. Same error. I've tried to install gtk+ a number of times, and always gotten frustrated cause I keep running into this. I feel like it's a simple problem, I just can't get my head around it. Anyone out there have any advice?

Thanks.
 
Old 05-27-2006, 08:18 AM   #2
thepr0fess0r
LQ Newbie
 
Registered: Apr 2005
Location: Rakeigh, NC
Distribution: Slack
Posts: 16

Original Poster
Rep: Reputation: 0
Point of interest: The way I'm building things is:

./configure
make
sudo make install
 
Old 05-27-2006, 08:37 AM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
If you built the dependencies (glib2, atk, cairo, pango is the correct order) using the ./configure without any options, then they are all installed under /usr/local/lib. So before running ./configure for gtk, run:
Code:
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
 
Old 05-27-2006, 11:41 AM   #4
thepr0fess0r
LQ Newbie
 
Registered: Apr 2005
Location: Rakeigh, NC
Distribution: Slack
Posts: 16

Original Poster
Rep: Reputation: 0
So actually, it boiled down to not having pango installed. I re-tried all my installations (glib, atk, cairo, pango) and it barked at me for pango. Message follows:

make[2]: */bin/sh ../libtool --mode=link gcc -g -O2 -Wall -o pango-cairoview cairoview.o renderdemo.o argcontext.o ../pango/libpango-1.0.la ../pango/libpangoft2-1.0.la ../pango/libpangocairo-1.0.la -L/usr/local/lib -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -L/usr/local/lib -lcairo -L/usr/X11R6/lib -lX11
gcc -g -O2 -Wall -o .libs/pango-cairoview cairoview.o renderdemo.o argcontext.o ../pango/.libs/libpango-1.0.so -L/usr/local/lib ../pango/.libs/libpangoft2-1.0.so ../pango/.libs/libpangocairo-1.0.so -L/usr/X11R6/lib /home/ryansturmer/src/pango-1.10.3/pango/.libs/libpangoft2-1.0.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so /usr/lib/libglib-2.0.so /home/ryansturmer/src/pango-1.10.3/pango/.libs/libpango-1.0.so /usr/local/lib/libfontconfig.so /usr/local/lib/libgobject-2.0.so /usr/local/lib/libgmodule-2.0.so -ldl /usr/local/lib/libglib-2.0.so /usr/local/lib/libcairo.so -lXrender -lXext -lpng12 /usr/X11R6/lib/libfontconfig.so /usr/lib/libfreetype.so /usr/lib/libexpat.so /usr/local/lib/libfreetype.so -lz -lm -lX11
/usr/local/lib/libcairo.so: undefined reference to `FT_GlyphSlot_Embolden'
collect2: ld returned 1 exit status
make[2]: *** [pango-cairoview] Error 1
** [pango-cairoview] Error 1


After some reading, I've found that this may be due to a too-old version of freetype. I downloaded the latest and installed, but I still get this error! Any thoughts?

-R
 
Old 05-27-2006, 12:19 PM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
/usr/lib/libfreetype.so /usr/lib/libexpat.so /usr/local/lib/libfreetype.so
As you see there are 2 different directories whith the libfreetype library that the compiler uses. I suggest you to move the old freetype libraries (from /usr/lib to another dir), run "ldconfig" and re-run the ./configure script for pango.

Regards
 
Old 05-27-2006, 02:54 PM   #6
piete
Member
 
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
The short:
I would advise using `./configure --prefix=/usr && make && checkinstall` when doing these things.

The long:
http://www.linuxquestions.org/questi...d.php?t=417069

You'll find someone else had a similar problem, hopefully this will help =) I can dig out more links if it doesn't!

- Piete.
 
Old 05-27-2006, 10:22 PM   #7
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
Why don't use Slackware's packages ?? It has been upgraded in -current:

Quote:
l/gtk+2-2.8.18-i486-1.tgz: Upgraded to gtk+-2.8.18.
 
Old 10-01-2006, 02:08 PM   #8
mwinko
LQ Newbie
 
Registered: Oct 2006
Posts: 4

Rep: Reputation: 0
<COPY>
Well now after two days of trying to fullfil Basic depenedances it succeeded with

Code:
checking for BASE_DEPENDENCIES... yes
and went further finally stoping at:

Code:
checking Pango flags... -I/usr/local/include/pango-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/cairo   -L/usr/local/lib -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
configure: error:
*** Can't link to Pango. Pango is required to build
*** GTK+. For more information see pango.org
Isn`t Pango basic dependence? I guess it was found installed before so what`s the problem?
I tried to reinstall Pango over and over with no result... Any suggestions? need help...

Last edited by mwinko; 10-01-2006 at 02:34 PM.
 
Old 10-01-2006, 03:11 PM   #9
folkenfanel
Member
 
Registered: Sep 2004
Location: formerly Fanelia and Zaibach
Distribution: Slackware-current !
Posts: 342

Rep: Reputation: 59
Wink SlackBuild

You have to use a SlackBuild. I also compiled all of these from source, but using the Slackware SlackBuilds. No problems so far.

You can also check the FreeRock SlackBuilds, but I think they do pretty much the same.
 
Old 10-02-2006, 07:33 AM   #10
mwinko
LQ Newbie
 
Registered: Oct 2006
Posts: 4

Rep: Reputation: 0
Ehh but I`m a Mandriva user... I know this is the wrong section but I think there is some universal and shure way... (wander if U can help) and I don`t think there are any proper SlackBuilds 4 my distro;p

Last edited by mwinko; 10-02-2006 at 07:37 AM.
 
Old 11-08-2007, 06:31 AM   #11
shawnbrito
LQ Newbie
 
Registered: Oct 2003
Location: Sri Lanka
Distribution: Redhat
Posts: 1

Rep: Reputation: 0
Hey Guys...
I got the same error... You were right. Its the FreeType library conflicting issue. I removed all the /usr/lib/libfreetype* from the directory (since there were IDENTICAL files in the /usr/local/lib/).
Code:
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
Once I did the ./configure , make for pango, I got a missing file error (which I rectified by creating a symbolic link for that file - from /usr/lib/libfrexxxx to /usr/local/lib/libfreexxxxx)

It compiled at the end. without the Slackwhere!

Cheers!

Last edited by shawnbrito; 11-08-2007 at 06:32 AM.
 
Old 12-30-2007, 04:48 PM   #12
geek745
Member
 
Registered: Jul 2004
Location: Alton, IL
Distribution: Linux Mint; Slackware; Ubuntu; Slax
Posts: 172
Blog Entries: 2

Rep: Reputation: 34
thanks shawnbrito i needed this advice just today, looks like we have to clean out our old libs manually?
 
Old 12-31-2007, 03:12 AM   #13
evilDagmar
Member
 
Registered: Mar 2005
Location: Right behind you.
Distribution: NBG, then randomed.
Posts: 480

Rep: Reputation: 31
...or, you guys could actually just ask some people familiar with compiling these things.

pkg-config having a search path or not, there's a great number of things that misbehave if you have different prefixes for them. If everything it wanted were in /usr or if everything it wanted were in /usr/local, you'd have been fine. I've seen this enough from people on IRC reporting problems compiling things to not find it surprising.

I'm not saying I'm 100% sure this was what the issue was, but generally when you've got something you know was installed correctly, and PKG_CONFIG_PATH includes it, and it still fails, check that you don't have duplicate and differing versions of a lib installed (I've actually discussed this potential desynch between the path set in PKG_CONFIG_PATH and the search order the linker is likely to use with Pat before, so it's a "known" way to fail) and if you don't, be prepared to rebuild whichever packages are in the oddball prefix to use the same prefix as everything else.

Last edited by evilDagmar; 12-31-2007 at 04:39 AM. Reason: Added explanation of why/when pkg-config using apps break
 
  


Reply

Tags
configure, glib, gtk, installation, pango



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
updating gtk....effects??? ankur_linuxfan Fedora 1 02-08-2005 05:58 AM
help with updating glib and gtk mrford Linux - Software 0 09-13-2004 06:33 PM
pgadmin3 problems after updating gtk devinWhalen Linux - Software 0 06-11-2004 11:18 AM
Updating GTK Help Wiggy Slackware 1 04-26-2004 02:42 PM
Updating gLib and GTK Darksun Linux - Software 1 04-24-2004 04:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:35 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