how use pkg-config in CodeLite

CodeLite installation/troubleshooting forum
llerr
CodeLite Curious
Posts: 4
Joined: Mon May 17, 2010 5:47 pm
Genuine User: Yes
IDE Question: C++
Contact:

how use pkg-config in CodeLite

Post by llerr »

OS MS Windows
CodeLite 2.5.0.4025
g++

I try use pkg-config in my project
"project setting -> compiler -> additional search path " i write `pkg-config --cflags glib-2.0`
but in build console i see "-I-IC:/Gtk+/include/glib-2.0 -IC:/Gtk+/lib/glib-2.0/include " not all includes
if i write in
"project setting -> compiler -> compiler option" i see -g `pkg-config --cflags glib-2.0`
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: how use pkg-config in CodeLite

Post by eranif »

In project -> settings -> compiler, add to the 'Compiler Options' field the following line:

Code: Select all

$(shell pkg-config --cflags glib-2.0)
Note that codelite uses a semi-colon list, so if you have other options, you should separate them using ';'

Eran
Make sure you have read the HOW TO POST thread
llerr
CodeLite Curious
Posts: 4
Joined: Mon May 17, 2010 5:47 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: how use pkg-config in CodeLite

Post by llerr »

thank you. It`s work.
Post Reply