Provides automation of configuration needed for projects using pkg-config, such as GTK+ and gtkmm. Pkg-config utility outputs the necessary options needed to build a given package(s) that can be passed as compiler options.
Pkg-config support will set compiler and linker flags automatically that GCC needs to build selected packages - specifically includes, libraries, and some other GCC flags.
Cross platform support
Project can be held in a version control system and even if the packages have been selected in Linux, pulling the project in Windows will automatically update the flags (file-system paths etc).
Cross compilation environment support
Pkg-config plugin configuration is now per-project configuration rather than a global configuration. Path to the pkg-config binary can be set per-project.
UI Features
Property page
Used to select packages and set pkg-config configurations.
How to use
Find Pkg-config settings in project properties -> C/C++ Build -> Settings -> Pkg-config tab
Select packages that your project needs to build correctly. Under Advanced dialog you can set path to pkg-config utility and adjust the path with your custom parameters if you wish.
Requirements
* Pkg-config utility installed * Libraries you need (e.g. gtk+, gtkmm) * For Windows: MinGW or Cygwin * CDT 8.0 and Eclipse 3.7.x (Indigo) or newer
Update site
https://raw.githubusercontent.com/TuononenP/pkg-config.p2/master/site.xml
Development site
https://github.com/TuononenP/pkg-config-support-for-eclipse-cdt
Mailing list
http://groups.google.com/group/pkg-config-support-for-eclipse-cdt
pkg-config-support-for-eclipse-cdt@googlegroups.com
Note:
If you are having problems installing it is most probably because of not having CDT 8.0 or above.
Windows users: Do not install Gtk+ or Gtkmm in a path containing spaces, because pkg-config does not support spaces in paths.
Reviews Sign in to post reviews
Pkg-config support for Eclipse CDT 1.0.0
Submitted by Vasilije Blaženi on Mon, 2021-07-12 08:59
Correction of my previous comment: I've succesfully installed pkg-config on Eclipse CDT 2021-06, but not by drag-and-drop method, but clicking on Install button after finding pkg-config on Eclipse Marketplace from Help menu.
I've successfully installed pkg-config plugin on Eclipse CDT 2020-09. I don't know if it does matter, but I've updated Eclipse CDT 2020-09 previously.
Re: Pkg-config support for Eclipse CDT 1.0.0
Submitted by Vasilije Blaženi on Tue, 2021-07-13 06:25
The second paragraph fell in by mistake. I'm sorry.
pkg-config on Eclipse CDT 2021-06
Submitted by Vasilije Blaženi on Mon, 2021-07-12 08:05
I couldn't install pkg-config on Eclipse CDT 2021-06 under Debian 10.10 :-(
pkg-config on Eclipse CDT 2020-09
Submitted by Vasilije Blaženi on Thu, 2020-10-29 21:33
I've successfully installed pkg-config plugin on Eclipse CDT 2020-09. I don't know if it does matter, but I've updated Eclipse CDT 2020-09 previously.
Re: pkg-config on Eclipse CDT 2020-09
Submitted by Vasilije Blaženi on Fri, 2020-11-06 16:49
I've just installed the Eclipse CDT 2020-09 again, and the pkg-config too, without updating Eclipse CDT previously.
Eclipse CDT 2018-09 last ?
Submitted by Anne Ranch on Sat, 2020-07-25 15:20
Any chance to "upadate" to current WORKING 2020-03 version?
Not sure if I can "import" from 2018-09 at any form - source , execuable . library .
pkg-config plugin omitting letters on -I include dirs
Submitted by P Ocker on Tue, 2019-01-01 18:58
For example on compilation -IC:/msys64/mingw64/include/gtkmm-3.0 becomes -IC:/m y 64/mingw64/include/gtkmm-3.0. The library -l s (ells) are good and are listed/indexed under linker libraries.
I worked round (hacked) by creating a settings XML file from pkg-config output on the command line and importing same to the Eclipse project. This hack is not maintainable though.
I had used Mysys2 to install Mingw , Cygwin , gtk ... all up to date newest stable version and the problem is repeated on both tool chains.
Any suggestions to fix? Ta
Installation error
Submitted by Henrique Mendonca on Tue, 2018-11-20 21:26
Eclipse 2018-09 and Oxygen gives me "Unable to read repository at https :// raw.githubusercontent.com/TuononenP/pkg-config.p2/master/site.xml/content.xml."
infact browsing https :// raw.githubusercontent.com/TuononenP/pkg-config.p2/master/site.xml/content.xml gives me a 404 :(
I tested it in Neon on
I tested it in Neon on Fedora23. When I activate the pkg-config option is project's properties. The include paths and libraries does not work. But it works in Mars and Luna edition.
Can't install as of 2013-10-31
Submitted by Will Rouesnel on Wed, 2013-10-30 11:00
The update site links to petrituononen.com, which is not serving content as of the date in the subject line.
Alternative update site (as of March 2016)
Submitted by Kirill Khrushchinskiy on Sat, 2016-03-26 10:33
raw.githubusercontent.com/TuononenP/pkg-config.p2/master/site.xml
Awesome
Submitted by Simon Schultze-Florey on Tue, 2011-12-06 17:57
This plugin saved my day. Thanks!
Excellent plug-in
Submitted by Missing name Mising name on Sat, 2011-06-18 11:34
This is a must have. I can't do without it.
Keep up the good work.