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. |
Point of interest: The way I'm building things is:
./configure make sudo make install |
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 |
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 |
Quote:
Regards |
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. |
Why don't use Slackware's packages ?? It has been upgraded in -current:
Quote:
|
<COPY>
Well now after two days of trying to fullfil Basic depenedances it succeeded with Code:
checking for BASE_DEPENDENCIES... yes 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 I tried to reinstall Pango over and over with no result... Any suggestions? need help... |
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. |
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
|
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 It compiled at the end. without the Slackwhere! Cheers! |
thanks shawnbrito i needed this advice just today, looks like we have to clean out our old libs manually?
|
...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. |
All times are GMT -5. The time now is 04:32 PM. |