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

gowebview.go:89:9: undefined: newWindow (and ld errors) #10

Open
Jiw0cha opened this issue Dec 3, 2020 · 2 comments
Open

gowebview.go:89:9: undefined: newWindow (and ld errors) #10

Jiw0cha opened this issue Dec 3, 2020 · 2 comments

Comments

@Jiw0cha
Copy link

Jiw0cha commented Dec 3, 2020

Hi.
Remove line 1, from gowebview_unix.go

And go run main.go (example)

# github.com/Inkeliz/gowebview
/usr/bin/ld: $WORK/b002/_x002.o: in function `_cgo_7ba92eb280bf_Cfunc_webview_create':
/tmp/go-build/cgo-gcc-prolog:66: undefined reference to `webview_create'
/usr/bin/ld: $WORK/b002/_x002.o: in function `_cgo_7ba92eb280bf_Cfunc_webview_get_window':
/tmp/go-build/cgo-gcc-prolog:109: undefined reference to `webview_get_window'
/usr/bin/ld: $WORK/b002/_x002.o: in function `_cgo_7ba92eb280bf_Cfunc_webview_destroy':
/tmp/go-build/cgo-gcc-prolog:81: undefined reference to `webview_destroy'
/usr/bin/ld: $WORK/b002/_x002.o: in function `_cgo_7ba92eb280bf_Cfunc_webview_eval':
/tmp/go-build/cgo-gcc-prolog:94: undefined reference to `webview_eval'
/usr/bin/ld: $WORK/b002/_x002.o: in function `_cgo_7ba92eb280bf_Cfunc_webview_init':
/tmp/go-build/cgo-gcc-prolog:125: undefined reference to `webview_init'
/usr/bin/ld: $WORK/b002/_x002.o: in function `_cgo_7ba92eb280bf_Cfunc_webview_navigate':
/tmp/go-build/cgo-gcc-prolog:138: undefined reference to `webview_navigate'
/usr/bin/ld: $WORK/b002/_x002.o: in function `_cgo_7ba92eb280bf_Cfunc_webview_run':
/tmp/go-build/cgo-gcc-prolog:150: undefined reference to `webview_run'
/usr/bin/ld: $WORK/b002/_x002.o: in function `_cgo_7ba92eb280bf_Cfunc_webview_set_size':
/tmp/go-build/cgo-gcc-prolog:166: undefined reference to `webview_set_size'
/usr/bin/ld: $WORK/b002/_x002.o: in function `_cgo_7ba92eb280bf_Cfunc_webview_set_title':
/tmp/go-build/cgo-gcc-prolog:179: undefined reference to `webview_set_title'
/usr/bin/ld: $WORK/b002/_x002.o: in function `_cgo_7ba92eb280bf_Cfunc_webview_terminate':
/tmp/go-build/cgo-gcc-prolog:191: undefined reference to `webview_terminate'
collect2: error: ld returned 1 exit status
@inkeliz
Copy link
Owner

inkeliz commented Dec 3, 2020

Darwin/Linux isn't supported, as described on the readme. You should use https://github.com/webview/webview instead, if you need to support those platforms. For now, it only supports Windows and Android.

@Jiw0cha
Copy link
Author

Jiw0cha commented Dec 5, 2020

Darwin/Linux isn't supported, as described on the readme.

Thanks. I am not attentive, apparently. Support pending?

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