开发者

GTK+ macport on os x

I currently installed gtk2 through macport on os x 10.6 but when i tried to use library l开发者_Go百科ike

#include <gtk/gtk.h>

it still doesn't recognize it and give me compile errors. does anyone know how to install gtk2?


If you have pkg-config on your system, try:

pkg-config --cflags gtk+-2.0


MacPorts installs its header files and libraries in /opt/local/include and /opt/local/lib, respectively. Did you add -I/opt/local/include and -L/opt/local/lib to your compiler flags?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜