pkg-config

General questions regarding the usage of CodeLite
Sami
CodeLite Curious
Posts: 6
Joined: Wed Mar 03, 2010 9:19 pm
Genuine User: Yes
IDE Question: C++
Contact:

pkg-config

Post 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
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: pkg-config

Post 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
Make sure you have read the HOW TO POST thread
Sami
CodeLite Curious
Posts: 6
Joined: Wed Mar 03, 2010 9:19 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: pkg-config

Post by Sami »

Thanks,
It work perfectly.

Sami.
Post Reply