LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Suse/Novell (http://www.linuxquestions.org/questions/suse-novell-60/)
-   -   pkg-config (http://www.linuxquestions.org/questions/suse-novell-60/pkg-config-353375/)

brimble2010 08-15-2005 04:40 AM

pkg-config
 
i am trying to install gtkspell it just wont happen, ive installed many many other prequesistes but now im stuck with this:

Quote:

checking for gtk+-2.0... Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found

configure: error: Library requirements (gtk+-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
any help please? :)

brimble2010 08-15-2005 04:54 AM

oh yea, btw im using Suse 9.1 and KDE 3.4

BUMP: 30 views and no replys :(
REBUMP: 40 views and im still stuck

Lynx_ss 08-19-2005 02:46 AM

I got this error trying to install gaim ;)

Just install the gtk2-devel package with yast and it should work.

Riddhi Rajaram 05-19-2008 08:01 AM

How to set path for the pkg-config in Makefile ?
 
Hi ,
I have installed GTK-DFB in my red hat linux - kernel 2.6 . All my installations were perfect and i have installed my new gtk in the path /usr/local while my default gtk is in the path /usr. I have modified in my application makefile to refer to my new path /usr/local as


INCPATH = `pkg-config gtk+-2.0 --cflags --libs` -I/usr/local/include/gtk-2.0/include -I/usr/local/include/gtk-2.0 -I/usr/local/include/gtk-2.0/gdk


LIBS = $(SUBLIBS) -L/usr/local/lib `pkg-config gtk+-2.0 --cflags --libs` `pkg-config glib-2.0 --cflags --libs` -L/usr/local/lib -lfreetype -ldl -lfontconfig -lcurl

But my binary is getting created by referring to the libs inside /usr folder . When i use ldd < binary name > i get the following ,

libgtk-directfb-2.0.so.0 => not found
libgdk-directfb-2.0.so.0 => not found
libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0x00675000)
libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0x002a4000)
libpangocairo-1.0.so.0 => not found
libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0x002e3000)
libcairo.so.2 => not found
libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x00dab000)
libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x00da6000)
libdl.so.2 => /lib/libdl.so.2 (0x00a0f000)
libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00c3c000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00b4d000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x00bd7000)
libdirectfb-1.1.so.0 => not found
libpng12.so.0 => /usr/lib/libpng12.so.0 (0x0069e000)
libfusion-1.1.so.0 => not found
libdirect-1.1.so.0 => not found
libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00af0000)
libcurl.so.3 => /usr/lib/libcurl.so.3 (0x00a6b000)
libjpg.so => /root/FL-3.1-RTP_DFB_GDK/source/projects/reference/linux/makefiles/dtop/release/libjpg.so (0x006ff000)
libm.so.6 => /lib/tls/libm.so.6 (0x009ea000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00cd9000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00c32000)
libc.so.6 => /lib/tls/libc.so.6 (0x008be000)
/lib/ld-linux.so.2 (0x008a1000)
libz.so.1 => /usr/lib/libz.so.1 (0x00a15000)
libexpat.so.0 => /usr/lib/libexpat.so.0 (0x00bb6000)
libidn.so.11 => /usr/lib/libidn.so.11 (0x00111000)
libssl.so.4 => /lib/libssl.so.4 (0x0031b000)
libcrypto.so.4 => /lib/libcrypto.so.4 (0x001b9000)
libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x0018b000)
libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x0034f000)
libcom_err.so.2 => /lib/libcom_err.so.2 (0x00de9000)
libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x00141000)
libresolv.so.2 => /lib/libresolv.so.2 (0x00b38000)

So the binary is referring to old path /usr and so some of the lib*.so files are not found .
What needs to be modified in the to make my application get compiled with my new set of libs inside the path /usr/local . Expecting suggestions ....


Thanks


All times are GMT -5. The time now is 02:57 AM.