Pkg-Config not working with Cygwin on Windows(?)

2,566 views
Skip to first unread message

PhiliTK

unread,
Oct 27, 2011, 1:50:50 PM10/27/11
to pkg-config-support-for-eclipse-cdt
Hello!

Yesterday I installed the plug-in on the last Eclipse CDT available
(Indigo) but when i go to Properties --> C/C++ Build --> Settings -->
Pkg-config, the list is empty.
I previosly installed pkg-config 0.23b-10 in Cygwin and the .pc files
are in C:\cygwin\lib\pkgconfig.
Tried setting this path in the PKG_CONFIG_PATH, restarted but nothing
changed.

I have Windows XP sp3 and Cygwin 1.7.

Any ideas why it doesn't work?

Thanks in advance,
Phili.

Petri Tuononen

unread,
Oct 28, 2011, 12:57:09 AM10/28/11
to pkg-config-suppor...@googlegroups.com
Hi!

First I would check that the following packages are installed on Cygwin
(in addition to pkg-config of course)

binutils
gcc
gcc-core
gcc-g++
make
gdb

(executing cygcheck -c command on cygwin bash shell will list all
installed packages)

and that C:\cygwin\bin has been appended to PATH environment variable.
Pkg-config.exe is located in C:\cygwin\bin so clearly the path needs to
reside in PATH env. so that Eclipse is able to find the pkg-config
utility. In other words PKG_CONFIG_PATH should not be set anything else
than C:\cygwin\bin in your case. However you might want to try setting
PKG_CONFIG_LIBDIR as C:\cygwin\lib\pkgconfig

Hope this helps.
Petri

PhiliTK

unread,
Oct 28, 2011, 2:43:13 PM10/28/11
to pkg-config-support-for-eclipse-cdt
Thank you very much!! It works now.
I was setting PKG_CONFIG_PATH wrong. I had C:\cygwin\lib\pkgconfig, so
I replaced it with C:\cygwin\bin and it worked. There was no need to
set the PKG_CONFIG_LIBDIR. By the way, the other packages where
installed correctly and the PATH env. on eclipse was set ok as well.

Best regards,
Phili.

Petri Tuononen

unread,
Oct 28, 2011, 11:33:28 PM10/28/11
to pkg-config-suppor...@googlegroups.com
Great, I am very glad to hear that :)

Pkg-config should (usually) find the libraries itself so the
PKG_CONFIG_LIBDIR is included just in case.

Petri

Reply all
Reply to author
Forward
0 new messages