Page 1 of 1

pkg-config

Posted: Wed Mar 17, 2010 8:15 pm
by Sami
Hi,

Is there a way to include pkg-config to project search path and workspace code completion.

Suggestion.
I think its a good idea to add support to pkg-config in project wizard (and project properties) by specifying the list of installed libs to include so they can be linked correctly without the need for manually add the required cflags and libs.

Regards.
Sami

Re: pkg-config

Posted: Wed Mar 17, 2010 8:29 pm
by eranif
I am using similar tool (wx-config) to get the paths/libraries installed

In the project settings -> compiler I am adding:

Compiler Options:

Code: Select all

$(shell wx-config --debug=yes --unicode=yes --cxxflags)
In the linker tab (of the project settings)
Linker Options:

Code: Select all

$(shell wx-config --debug=yes --unicode=yes --libs)
You can do the same for the pkg-config

About adding it to wizards:
The wizards are simply a template files on the disk which are loaded by the 'New Project' file. To create a "real" wizard for a speicific library (e.g. Qt) you need to write a plugin for this

Eran

Re: pkg-config

Posted: Wed Mar 17, 2010 8:47 pm
by Sami
Thanks,
It work perfectly.

Sami.