问题描述
我无法使用 autoconf 和 automake 为 GTK3 使用引导程序。我正在遵循 this 指南。
我已经安装了 gtk3:sudo apt install libgtk-3-dev
pkg-config --modversion gtk+-3.0
返回:3.22.30
pkg-config --cflags gtk+-3.0
返回:
-pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
如你所见,有很多重复(不知道是否可以)。
autoreconf - i
和 configure
都没有任何错误返回。
make
调用 gcc:
gcc -DPACKAGE_NAME=\"Vacolina\" -DPACKAGE_TARNAME=\"vacolina\" -DPACKAGE_VERSION=\"1\" -DPACKAGE_STRING=\"Vacolina\ 1\" -DPACKAGE_BUGREPORT=\"[email protected]\" -DPACKAGE_URL=\"\" -DPACKAGE=\"vacolina\" -DVERSION=\"1\" -I. -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -g -O2 -MT hello-world.o -MD -MP -MF .deps/hello-world.Tpo -c -o hello-world.o hello-world.c
并因一些缺失的功能而出错:
- gtk_window_set_child
- gtk_window_destroy
(记住这只是一个基本的引导代码,所以它现在使用的功能很少)
我搜索了 .h
中的每个 /usr/include/gtk-3.0
文件,但确实没有一个文件定义了这些函数。
我在这里遗漏了什么?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)