go-qamel / qamel

Simple QML binding for Go
MIT License
176 stars 19 forks source link

Failed to create cgo file: failed to create cgo flags: #23

Closed sh1luo closed 4 years ago

sh1luo commented 4 years ago

Windows OS,have installed QT leastest version V5.14.1 online.

I just want to run the first example,hello-world demo.But after setting up profile,run qamel build -p qtest ,happened

qamel build -p qtest Starting build process.

Load config file...done Removing old build files...done Generating binding files... Failed to create cgo file: failed to create cgo flags: open F:\Go_WorkSpace\src\github.com\go-qamel\qamel\qamel.makefile.Release: The system cannot find the file specified.

F:\Go_WorkSpace\ is my GO_PATH

and go env as follows

go env set GO111MODULE=auto set GOARCH=amd64 set GOBIN= set GOCACHE=C:\Users\Administrator\AppData\Local\go-build set GOENV=C:\Users\Administrator\AppData\Roaming\go\env set GOEXE=.exe set GOFLAGS= set GOHOSTARCH=amd64 set GOHOSTOS=windows set GOINSECURE= set GONOPROXY= set GONOSUMDB= set GOOS=windows set GOPATH=F:\Go_WorkSpace set GOPRIVATE= set GOPROXY=https://goproxy.cn set GOROOT=c:\go set GOSUMDB=off set GOTMPDIR= set GOTOOLDIR=c:\go\pkg\tool\windows_amd64 set GCCGO=gccgo set AR=ar set CC=gcc set CXX=g++ set CGO_ENABLED=1 set GOMOD= set CGO_CFLAGS=-g -O2 set CGO_CPPFLAGS= set CGO_CXXFLAGS=-g -O2 set CGO_FFLAGS=-g -O2 set CGO_LDFLAGS=-g -O2 set PKG_CONFIG=pkg-config set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\ADMINI~1\AppData\Local\Temp\go-build492635418=/tmp/go-build -gno-record-gcc-switches

I want to know what is wront? thx :D