can't compile !! cannot find package
marjanj opened this issue · 3 comments
hi, i try to run and compile
=============
C:\test>go run GoBot.go
GoBot.go:4:2: cannot find package "GoBot2/components" in any of:
C:\Go\src\GoBot2\components (from $GOROOT)
($GOPATH not set)
=============
C:\test>go build GoBot.go
GoBot.go:4:2: cannot find package "GoBot2/components" in any of:
C:\Go\src\GoBot2\components (from $GOROOT)
($GOPATH not set)
=============
what can i do now ?
how can i fix it ?
i download all package u used and made directory !
github.com/NebulousLabs/go-upnp
golang.org/x/sys/windows/registry
github.com/AllenDang/w32
github.com/atotto/clipboard
github.com/StackExchange/wmi
but still got error.
http://prntscr.com/hdpk2f
it seems, it is the environment directory issue.
i have error too
$ go build -o GoBot.exe -ldflags "-H windowsgui" "C:\GoBot2\GoBot.go"
C:\Go\src\GoBot2\components\ScreenCapture.go:19:2: non-standard import "github.com/AllenDang/w32" in standard package "GoBot2/components"
was replace w32 from here