Qt binding for Go (Golang) with support for Windows / macOS / Linux / FreeBSD / Android / iOS / Sailfish OS / Raspberry Pi / AsteroidOS / Ubuntu Touch / JavaScript / WebAssembly
GNU Lesser General Public License v3.0
10.5k
stars
748
forks
source link
go: warning: "github.com/therecipe/qt/cmd/..." matched no packages #1285
My projects name is zformat .
The source code position: /User/bluemiaomiao/Developer/zformat .
My IDE: JetBrains GoLand.
My Go: go version go1.20.2 darwin/amd64
My XCode: Version 14.2 (14C18)
My Qt: 6.4.3 in /Users/bluemiaomiao/Qt (Install By Default)
System Version: Apple macOS Vertura
System Lang: Chinese(China Mainland) 简体中文
mkdir zformat
cd zformat
go mod init github.com/bluemiaomiao
export GO111MODULE=on
xcode-select --install
go get -v github.com/therecipe/qt
go install -v -tags=no_env github.com/therecipe/qt/cmd/...
The go install errors:
../../go/pkg/mod/github.com/therecipe/qt@v0.0.0-20200904063919-c0c124a5770d/internal/cmd/cmd.go:15:2: missing go.sum entry for module providing package github.com/sirupsen/logrus (imported by github.com/therecipe/qt/internal/cmd); to add:
go get github.com/therecipe/qt/internal/cmd@v0.0.0-20200904063919-c0c124a5770d
../../go/pkg/mod/github.com/therecipe/qt@v0.0.0-20200904063919-c0c124a5770d/internal/binding/files/docs/mod.go:4:2: no required module provides package github.com/therecipe/qt/internal/binding/files/docs/5.12.0; to add it:
go get github.com/therecipe/qt/internal/binding/files/docs/5.12.0
../../go/pkg/mod/github.com/therecipe/qt@v0.0.0-20200904063919-c0c124a5770d/internal/binding/files/docs/mod.go:5:2: no required module provides package github.com/therecipe/qt/internal/binding/files/docs/5.13.0; to add it:
go get github.com/therecipe/qt/internal/binding/files/docs/5.13.0
../../go/pkg/mod/github.com/therecipe/qt@v0.0.0-20200904063919-c0c124a5770d/internal/cmd/moc/moc.go:19:2: missing go.sum entry for module providing package golang.org/x/tools/imports (imported by github.com/therecipe/qt/internal/cmd/moc); to add:
go get github.com/therecipe/qt/internal/cmd/moc@v0.0.0-20200904063919-c0c124a5770d
I try to exec:
go mod tidy
go install -v -tags=no_env github.com/therecipe/qt/cmd/...
The errors:
go: warning: "github.com/therecipe/qt/cmd/..." matched no packages
Finally, I can not find qtsetup, qtdepoly etc on my $GOBIN.
I have also tried the following solutions:
cd /Users/bluemiaomiao/go/pkg/mod/github.com/therecipe/qt@v0.0.0-20200904063919-c0c124a5770d/cmd
go install qtsetup
The errors:
package qtdeploy is not in GOROOT (/usr/local/go/src/qtdeploy)
My projects name is
zformat
. The source code position:/User/bluemiaomiao/Developer/zformat
. My IDE: JetBrains GoLand. My Go:go version go1.20.2 darwin/amd64
My XCode: Version 14.2 (14C18) My Qt: 6.4.3 in/Users/bluemiaomiao/Qt
(Install By Default) System Version: Apple macOS Vertura System Lang: Chinese(China Mainland) 简体中文Details:
Go Envs:
Command:
The go install errors:
I try to exec:
The errors:
Finally, I can not find qtsetup, qtdepoly etc on my
$GOBIN
.I have also tried the following solutions:
The errors:
Help me pls!!