调用gtk编译出现这样的错误信息?请大神帮解决下

Limei491947 · · 1404 次点击 · · 开始浏览    
这是一个创建于 的文章,其中的信息可能已经有所发展或是发生改变。

d:/go/bin/go.exe build [C:/Users/Administrator/src/project] # github.com/mattn/go-gtk/glib In file included from glib.go:5, from _cgo_export.c:4: d:\go\src\github.com\mattn\go-gtk\glib/glib.go.h:183:1: warning: 'GThreadFunctions' is deprecated [-Wdeprecated-declarations] 183 | static void _g_thread_init(GThreadFunctions *vtable) { | ^~~~~~ In file included from C:/msys64/mingw64/include/glib-2.0/glib.h:114, from d:\go\src\github.com\mattn\go-gtk\glib/glib.go.h:4: C:/msys64/mingw64/include/glib-2.0/glib/deprecated/gthread.h:58:8: note: declared here 58 | struct _GThreadFunctions | ^~~~~~~~~~~~~~~~~ # github.com/mattn/go-gtk/glib In file included from d:\go\src\github.com\mattn\go-gtk\glib\glib.go:5: d:\go\src\github.com\mattn\go-gtk\glib/glib.go.h:183:1: warning: 'GThreadFunctions' is deprecated [-Wdeprecated-declarations] 183 | static void _g_thread_init(GThreadFunctions *vtable) { | ^~~~~~ In file included from C:/msys64/mingw64/include/glib-2.0/glib.h:114, from d:\go\src\github.com\mattn\go-gtk\glib/glib.go.h:4: C:/msys64/mingw64/include/glib-2.0/glib/deprecated/gthread.h:58:8: note: declared here 58 | struct _GThreadFunctions | ^~~~~~~~~~~~~~~~~ cgo-gcc-prolog: In function '_cgo_314f9b9ac766_Cfunc__g_thread_init': cgo-gcc-prolog:192:3: warning: 'GThreadFunctions' is deprecated [-Wdeprecated-declarations] C:/msys64/mingw64/include/glib-2.0/glib/deprecated/gthread.h:58:8: note: declared here 58 | struct _GThreadFunctions | ^~~~~~~~~~~~~~~~~ # pkg-config --cflags -- 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 Package 'gtk+-2.0', required by 'virtual:world', not found pkg-config: exit status 1 # pkg-config --cflags -- gdk-2.0 gthread-2.0 Package gdk-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gdk-2.0.pc' to the PKG_CONFIG_PATH environment variable Package 'gdk-2.0', required by 'virtual:world', not found Package 'gthread-2.0', required by 'virtual:world', not found pkg-config: exit status 1 错误: 进程退出代码 2.

有疑问加站长微信联系(非本文作者))

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

1404 次点击  ∙  1 赞  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传