2010年10月21日星期四

config glib 版本

../../config-custom.h:15:18: error: glib.h: No such file or directory


gcc `pkg-config --cflags --libs glib-2.0` file.c -o program


Your need the contents of pkg-config --libs --cflags glib-2.0 in your makefile. So your makefile should have this line in it somewhere:

CFLAGS=`pkg-config --cflags --libs glib-2.0`

I forget how to do this with autoconf. But I can look it up... If you need gtk, do the same thing, replacing glib-2.0 with gtk+-2.0.

没有评论:

发表评论