程序问答   发布时间:2022-06-01  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了缺少 GTK3 功能大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

如何解决缺少 GTK3 功能?

开发过程中遇到缺少 GTK3 功能的问题如何解决?下面主要结合日常开发的经验,给出你关于缺少 GTK3 功能的解决方法建议,希望对你解决缺少 GTK3 功能有所启发或帮助;

无法使用 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 - iconfigure 都没有任何错误返回。

@H_16_5@make 调用 gcc:

gcc -DPACKAGE_name=\"Vacolina\" -DPACKAGE_TARname=\"vacolina\" -DPACKAGE_VERSION=\"1\" -DPACKAGE_StriNG=\"Vacolina\ 1\" -DPACKAGE_BUGREPORT=\"my-email@gmail.com\" -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 (将#修改为@)

大佬总结

以上是大佬教程为你收集整理的缺少 GTK3 功能全部内容,希望文章能够帮你解决缺少 GTK3 功能所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签:功能缺少