webui-dev/go-webui

err

Closed this issue · 4 comments

..\..\go\pkg\mod\github.com\webui-dev\go-webui\v2@v2.4.1\lib.go:15:10: fatal error: webui.h: No such file or directory
   15 | #include "webui.h"
      |          ^~~~~~~~~
compilation terminated.

how do i fix this?
i also tried before

go get github.com/webui-dev/go-webui/v2/@latest
irm https://raw.githubusercontent.com/webui-dev/go-webui/main/setup.ps1 | iex
go env -w CGO_ENABLED=1
go build

and i have aswell tdm64-gcc, and i also inited so whats the issue

Hey @EvilBytecode ,

You'll need to setup the webui-c library that this go module is binding to.
There is script that makes this very simple. Please check out Step 2. of the installation section in the readme. https://github.com/webui-dev/go-webui#installation

hi, i did that and it still returned that err

Hmm 🤔 there might be an issue that is related to the gopath.

Can you share gopath to see if it has spaces unicode inside of it that might interfered with the script?
E.g. via Get-ChildItem go

You can also check whether the webui.h file actually exists but just is not found. It should be located in $GOPATH/pkg/mod/github.com/webui-dev/go-webui/v2@v2.4.1/
Then there should be a webui/include directory with webui.h.

made it works somehow, ty 👍