Re: [OT] How to add cairo linking and compilation flags to makefile ?
- From: John Cupitt <jcupitt gmail com>
- To: Colossus <colossus 3000 it>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: [OT] How to add cairo linking and compilation flags to makefile ?
- Date: Wed, 5 Oct 2005 10:29:26 +0100
On 10/5/05, Colossus <colossus 3000 it> wrote:
sorry for the OT. I upgraded to gtk 2.8 and cairo and obviously my
glade makefile project doesn't contain -I/usr/include/cairo. I added
manually to it in my_project/Makefile and my_project/src/Makefile but
it doesn't work, I keep getting cairo.h file not found in the output
of makefile:
1) How can I fix this ?
2) How can I have -I/usr/include/cairo automatically added in
makefile, when I issue automake to add new .c and .h files in Makefile ?
It should be there automatically if you are using pkg-config.
You need lines like
CFLAGS=`pkg-config gtk+-2.0 --cflags`
LDADD=`pkg-config gtk+-2.0 --libs`
in your Makefile.am. I forget the exact names.
J
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]