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`
how use pkg-config in CodeLite
-
- CodeLite Curious
- Posts: 4
- Joined: Mon May 17, 2010 5:47 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: how use pkg-config in CodeLite
In project -> settings -> compiler, add to the 'Compiler Options' field the following line:
Note that codelite uses a semi-colon list, so if you have other options, you should separate them using ';'
Eran
Code: Select all
$(shell pkg-config --cflags glib-2.0)
Eran
Make sure you have read the HOW TO POST thread
-
- 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
thank you. It`s work.