therecipe / qt

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

fail to run '$(go env GOPATH)/bin/qtsetup full ios' #1096

Open jayking0912 opened 4 years ago

jayking0912 commented 4 years ago

It's ok when i build macos app, when i try to build ios app ,it's fail ,i try to exec qtsetup,but it does not work, here is my enviroment and error info

INFO[0000] GOOS: 'darwin'
INFO[0000] GOARCH: 'amd64'
INFO[0000] GOVERSION: 'go1.13.4'
INFO[0000] GOROOT: '/usr/local/go' INFO[0000] GOPATH: '/Users/pi/go'
INFO[0000] GOBIN: '/Users/pi/go/bin' INFO[0000] GOMOD: ''
INFO[0000] QT_HASH: '5074eb6d8c41fdae5d1956af7c286160a40dd8fd' INFO[0000] QT_API: * ''
INFO[0000] QT_VERSION: '5.13.0'
INFO[0000] QT_DIR: '/Users/pi/Qt5.13.0' INFO[0000] QT_STUB: 'false'
INFO[0000] QT_DEBUG: 'false'
INFO[0000] QT_QMAKE_DIR: ''
INFO[0000] QT_WEBKIT: 'false'
INFO[0000] QT_STATIC: 'false'
INFO[0000] QT_GEN_TSD: 'false'
INFO[0000] QT_GEN_OPENGL: 'false'
INFO[0000] QT_GEN_QUICK_EXTRAS: 'false'
INFO[0000] QT_RESOURCES_BIG: 'false'
INFO[0000] QT_NOT_CACHED: 'false'
INFO[0000] QT_HOMEBREW: 'false'
INFO[0000] QT_MACPORTS: 'false'
INFO[0000] QT_NIX: 'false'
INFO[0000] QT_FELGO: 'false'
INFO[0000] XCODE_DIR: '/Applications/Xcode.app' INFO[0000] QT_PKG_CONFIG: 'false'
INFO[0000] running: 'qtsetup generate ios' [docker=false] [vagrant=false]

ERRO[0027] failed to run command _func=RunCmd cmd="go build -p 8 -v -ldflags=all=\"-w\" -trimpath -o /Users/pi/go/src/github.com/therecipe/qt/internal/examples/quick/calc/deploy/ios/libgo.a -tags=ios,minimal -pkgdir /Users/pi/go/pkg/ios_darwin_arm64 -buildmode c-archive" dir=/Users/pi/go/src/github.com/therecipe/qt/internal/examples/quick/calc env="GOOS=darwin PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Library/Apple/usr/bin http_proxy=http://127.0.0.1:7890 QT_API=5.12.0 GO111MODULE=off GOARCH=arm64 CGO_LDFLAGS_ALLOW=. LANG=zh_CN.UTF-8 TERM_PROGRAM=Apple_Terminal TMPDIR=/var/folders/9/g0v20hln563bng1rx2c1kchc0000gn/T/ USER=pi =/Users/pi/go/bin/qtsetup XPC_FLAGS=0x0 TERM_PROGRAM_VERSION=433 HOME=/Users/pi CGO_ENABLED=1 CGO_CXXFLAGS_ALLOW=. TERM=xterm-256color SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.RCJmNq2Qvj/Listeners https_proxy=http://127.0.0.1:7890 CGO_CPPFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk -miphoneos-version-min=11.0 -arch arm64 CGO_LDFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk -miphoneos-version-min=11.0 -arch arm64 TERM_SESSION_ID=E06DBCF2-7B5D-4DA4-A6F5-1BB38FCDFD22 CGO_CFLAGS_ALLOW=.* LOGNAME=pi PWD=/Users/pi/Desktop/calculator_ios OLDPWD=/Users/pi GOPATH=/Users/pi/go GOROOT=/usr/local/go XPC_SERVICE_NAME=0 SHELL=/bin/zsh SHLVL=1" error="exit status 2" name="build for ios on darwin" runtime/cgo github.com/therecipe/qt/core

github.com/therecipe/qt/core

core-minimal.cpp:10:3: error: ------------------------------------------------------------------ core-minimal.cpp:11:3: error: please run: '$(go env GOPATH)/bin/qtsetup' core-minimal.cpp:12:3: error: more info here: https://github.com/therecipe/qt/wiki/Installation core-minimal.cpp:13:3: error: ------------------------------------------------------------------ core-minimal.cpp:15:10: fatal error: 'QBitArray' file not found

ddkwork commented 4 years ago

i have same problen

uppercaveman commented 3 years ago

i have same problen