28
我從GTK tutorial的代碼base.c
。如何在Ubuntu上安裝gtk開發依賴關係?
我的工作Ubuntu的,當我編譯使用
$ gcc base.c -o base `pkg-config --cflags --libs gtk+-2.0`
我得到以下錯誤
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc' to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
base.c:1:20: fatal error: gtk/gtk.h: No such file or directory compilation terminated.
作爲新的Linux,有人可以幫助我在設置環境中,我可以編譯/運行來編譯/運行程序成功了嗎?