Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行时,提示这个是方法不存在了么 #1

Open
fengyikang88 opened this issue May 12, 2021 · 9 comments
Open

运行时,提示这个是方法不存在了么 #1

fengyikang88 opened this issue May 12, 2021 · 9 comments

Comments

@fengyikang88
Copy link

/usr/local/go/bin/go build -o /private/var/folders/g4/_y6hyphn16l7rzfwpbznzjhm0000gn/T/___go_build_github_com_Casper_Mars_dbTool github.com/Casper-Mars/dbTool #gosetup

github.com/gotk3/gotk3/glib

cgo-gcc-prolog:71:35: warning: 'g_binding_get_source' is deprecated: Use 'g_binding_dup_source' instead [-Wdeprecated-declarations]
/usr/local/Cellar/glib/2.68.0/include/glib-2.0/gobject/gbinding.h:111:1: note: 'g_binding_get_source' has been explicitly marked deprecated here
/usr/local/Cellar/glib/2.68.0/include/glib-2.0/glib/gversionmacros.h:1047:49: note: expanded from macro 'GLIB_DEPRECATED_IN_2_68_FOR'
/usr/local/Cellar/glib/2.68.0/include/glib-2.0/glib/gmacros.h:1072:32: note: expanded from macro 'GLIB_DEPRECATED_FOR'
/usr/local/Cellar/glib/2.68.0/include/glib-2.0/glib/gmacros.h:1040:44: note: expanded from macro 'G_DEPRECATED_FOR'
cgo-gcc-prolog:107:35: warning: 'g_binding_get_target' is deprecated: Use 'g_binding_dup_target' instead [-Wdeprecated-declarations]
/usr/local/Cellar/glib/2.68.0/include/glib-2.0/gobject/gbinding.h:115:1: note: 'g_binding_get_target' has been explicitly marked deprecated here
/usr/local/Cellar/glib/2.68.0/include/glib-2.0/glib/gversionmacros.h:1047:49: note: expanded from macro 'GLIB_DEPRECATED_IN_2_68_FOR'
/usr/local/Cellar/glib/2.68.0/include/glib-2.0/glib/gmacros.h:1072:32: note: expanded from macro 'GLIB_DEPRECATED_FOR'
/usr/local/Cellar/glib/2.68.0/include/glib-2.0/glib/gmacros.h:1040:44: note: expanded from macro 'G_DEPRECATED_FOR'

github.com/gotk3/gotk3/gtk

../../../go/pkg/mod/github.com/gotk3/[email protected]/gtk/accel.go:264:5: val.accel_flags undefined (type _Ctype_struct__GtkAccelKey has no field or method accel_flags)
../../../go/pkg/mod/github.com/gotk3/[email protected]/gtk/accel.go:273:22: obj.accel_flags undefined (type *_Ctype_struct__GtkAccelKey has no field or method accel_flags)

@Casper-Mars
Copy link
Owner

请问是在什么系统下构建的?

@fengyikang88
Copy link
Author

MAC系统上面

@Casper-Mars
Copy link
Owner

Casper-Mars commented May 13, 2021

我在本地构建是没问题的,用的是macos 10.15,gtk是2.14.33。看你构建命令好像是goland的构建命令吧?试下用make工具进行构建,在项目根目录下有Makefile的,具体命令: make buildMac

@fengyikang88
Copy link
Author

go build -o DBTool-0_4_1-linux_amd64 -x -v ./
WORK=/var/folders/g4/_y6hyphn16l7rzfwpbznzjhm0000gn/T/go-build3144220170
cat /Users/mars/Library/Caches/go-build/43/43c6ff42fdb4d3d55d80d86a157e00aa2d1c0f9e67c66a5c3594e7378d3335d2-d # internal

github.com/gotk3/gotk3/glib

cgo-gcc-prolog:71:35: warning: 'g_binding_get_source' is deprecated: Use 'g_binding_dup_source' instead [-Wdeprecated-declarations]
/usr/local/Cellar/glib/2.68.0/include/glib-2.0/gobject/gbinding.h:111:1: note: 'g_binding_get_source' has been explicitly marked deprecated here
/usr/local/Cellar/glib/2.68.0/include/glib-2.0/glib/gversionmacros.h:1047:49: note: expanded from macro 'GLIB_DEPRECATED_IN_2_68_FOR'
/usr/local/Cellar/glib/2.68.0/include/glib-2.0/glib/gmacros.h:1072:32: note: expanded from macro 'GLIB_DEPRECATED_FOR'
/usr/local/Cellar/glib/2.68.0/include/glib-2.0/glib/gmacros.h:1040:44: note: expanded from macro 'G_DEPRECATED_FOR'
cgo-gcc-prolog:107:35: warning: 'g_binding_get_target' is deprecated: Use 'g_binding_dup_target' instead [-Wdeprecated-declarations]
/usr/local/Cellar/glib/2.68.0/include/glib-2.0/gobject/gbinding.h:115:1: note: 'g_binding_get_target' has been explicitly marked deprecated here
/usr/local/Cellar/glib/2.68.0/include/glib-2.0/glib/gversionmacros.h:1047:49: note: expanded from macro 'GLIB_DEPRECATED_IN_2_68_FOR'
/usr/local/Cellar/glib/2.68.0/include/glib-2.0/glib/gmacros.h:1072:32: note: expanded from macro 'GLIB_DEPRECATED_FOR'
/usr/local/Cellar/glib/2.68.0/include/glib-2.0/glib/gmacros.h:1040:44: note: expanded from macro 'G_DEPRECATED_FOR'

@Casper-Mars
Copy link
Owner

嗯嗯,我的打包环境是比较旧的,glib版本也是2.66的。估计就是这个版本间的问题,我更新下本地的环境再来试试复现你的问题吧

@fengyikang88
Copy link
Author

好的 谢谢您 希望可以用

@Casper-Mars
Copy link
Owner

通过brew,我本地的gtk+3已经升级到最新了。本地运行使用0.4.1没有复现你的问题。我本地的go是1.15版本的,升级到1.16也没复现出来。
能提供下你系统的和环境的详细信息吗?

@fengyikang88
Copy link
Author

Mac OS11.2.3. gtk+3. go1.16.2. 另外可以加个微 或者 Q么

@Casper-Mars
Copy link
Owner

我的系统没这么高,还是10.15。Q:326713510

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants