LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   Having trouble compiling GTK+ 2. (https://www.linuxquestions.org/questions/suse-opensuse-60/having-trouble-compiling-gtk-2-a-677142/)

allyanncah 10-17-2008 12:55 PM

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.

reddazz 10-17-2008 01:03 PM

Try doing
Code:

export PKG_CONFIG_PATH=/usr/local/lib:$PKG_CONFIG_PATH
After that compile your application.


All times are GMT -5. The time now is 09:30 AM.