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.38k stars 735 forks source link

[Windows_x64]QAbstractAnimation: No such file or directory. #977

Open piaoyunsoft opened 4 years ago

piaoyunsoft commented 4 years ago

step1: pacman -Syyu pacman -S mingw-w64-x86_64-qt-creator mingw-w64-x86_64-qt5-static pacman -Scc

step2: go get -u -v -tags=no_env github.com/therecipe/qt/cmd/...

step3: $(go env GOPATH)/bin/qtsetup

1

2

therecipe commented 4 years ago

Hey

Could you maybe try to run the setup again? On the screenshot it looks like the setup failed because some dir under AppData\Local\Temp couldn't be removed.

ergoz commented 4 years ago

same problem with

i spent 2 days but no luck. i tried a lot of variants

C:\Users\ergoz>%GOPATH%\bin\qtsetup
time="2020-03-21T01:27:52+03:00" level=info msg="running: 'qtsetup prep'"
time="2020-03-21T01:27:52+03:00" level=info msg="successfully created qtrcc symlink in your PATH (C:\\msys64\\usr\\bin\\qtrcc.exe)"
time="2020-03-21T01:27:52+03:00" level=info msg="successfully created qtmoc symlink in your PATH (C:\\msys64\\usr\\bin\\qtmoc.exe)"
time="2020-03-21T01:27:52+03:00" level=info msg="successfully created qtminimal symlink in your PATH (C:\\msys64\\usr\\bin\\qtminimal.exe)"
time="2020-03-21T01:27:52+03:00" level=info msg="successfully created qtdeploy symlink in your PATH (C:\\msys64\\usr\\bin\\qtdeploy.exe)"
time="2020-03-21T01:27:52+03:00" level=info msg="successfully created go symlink in your PATH (C:\\msys64\\usr\\bin\\go.exe)"
time="2020-03-21T01:27:52+03:00" level=info msg="running: 'qtsetup check windows' [docker=false] [vagrant=false]"
time="2020-03-21T01:27:52+03:00" level=info msg="GOOS:                        'windows'"
time="2020-03-21T01:27:52+03:00" level=info msg="GOARCH:                      'amd64'"
time="2020-03-21T01:27:52+03:00" level=info msg="GOVERSION:                   'go1.14'"
time="2020-03-21T01:27:52+03:00" level=info msg="GOROOT:                   *  'C:\\Go'"
time="2020-03-21T01:27:52+03:00" level=info msg="GOPATH:                   *  'C:\\Users\\ergoz\\go'"
time="2020-03-21T01:27:52+03:00" level=info msg="GOBIN:                       'C:\\Users\\ergoz\\go\\bin'"
time="2020-03-21T01:27:52+03:00" level=info msg="GOMOD:                       ''"
time="2020-03-21T01:27:52+03:00" level=info msg="QT_HASH:                     '5074eb6d8c41fdae5d1956af7c286160a40dd8fd'"
time="2020-03-21T01:27:52+03:00" level=info msg="QT_API:                   *  '5.13.0'"
time="2020-03-21T01:27:52+03:00" level=info msg="QT_VERSION:               *  '5.13.2'"
time="2020-03-21T01:27:52+03:00" level=info msg="QT_DIR:                   *  'C:\\Qt\\5.13.2\\mingw73_64\\bin'"
time="2020-03-21T01:27:52+03:00" level=info msg="QT_STUB:                     'false'"
time="2020-03-21T01:27:52+03:00" level=info msg="QT_DEBUG:                    'false'"
time="2020-03-21T01:27:52+03:00" level=info msg="QT_QMAKE_DIR:                ''"
time="2020-03-21T01:27:52+03:00" level=info msg="QT_WEBKIT:                   'false'"
time="2020-03-21T01:27:52+03:00" level=info msg="QT_STATIC:                   'false'"
time="2020-03-21T01:27:52+03:00" level=info msg="QT_GEN_TSD:                  'false'"
time="2020-03-21T01:27:52+03:00" level=info msg="QT_GEN_OPENGL:               'false'"
time="2020-03-21T01:27:52+03:00" level=info msg="QT_GEN_QUICK_EXTRAS:         'false'"
time="2020-03-21T01:27:52+03:00" level=info msg="QT_RESOURCES_BIG:            'false'"
time="2020-03-21T01:27:52+03:00" level=info msg="QT_NOT_CACHED:               'false'"
time="2020-03-21T01:27:52+03:00" level=info msg="QT_DEBUG_CONSOLE:            'false'"
time="2020-03-21T01:27:52+03:00" level=info msg="QT_MSYS2:                    'true'"
time="2020-03-21T01:27:52+03:00" level=info msg="QT_MSYS2_DIR:                'C:\\msys64\\mingw64'"
time="2020-03-21T01:27:52+03:00" level=info msg="QT_MSYS2_ARCH:               'amd64'"
time="2020-03-21T01:27:52+03:00" level=info msg="QT_MSYS2_STATIC:             'false'"
time="2020-03-21T01:27:52+03:00" level=info msg="running: 'qtsetup generate windows' [docker=false] [vagrant=false]"
time="2020-03-21T01:27:58+03:00" level=info msg="generating full qt/core"
time="2020-03-21T01:28:15+03:00" level=info msg="generating full qt/androidextras"
time="2020-03-21T01:28:16+03:00" level=info msg="generating full qt/gui"
time="2020-03-21T01:28:39+03:00" level=info msg="generating full qt/network"
time="2020-03-21T01:28:45+03:00" level=info msg="generating full qt/xml"
time="2020-03-21T01:28:47+03:00" level=info msg="generating full qt/dbus"
time="2020-03-21T01:28:49+03:00" level=info msg="generating full qt/nfc"
time="2020-03-21T01:28:50+03:00" level=info msg="generating full qt/script"
time="2020-03-21T01:28:51+03:00" level=info msg="generating full qt/sensors"
time="2020-03-21T01:28:56+03:00" level=info msg="generating full qt/positioning"
time="2020-03-21T01:28:58+03:00" level=info msg="generating full qt/widgets"
time="2020-03-21T01:29:45+03:00" level=info msg="generating full qt/sql"
time="2020-03-21T01:29:48+03:00" level=info msg="generating full qt/qml"
time="2020-03-21T01:29:51+03:00" level=info msg="generating full qt/websockets"
time="2020-03-21T01:29:52+03:00" level=info msg="generating full qt/xmlpatterns"
time="2020-03-21T01:29:53+03:00" level=info msg="generating full qt/bluetooth"
time="2020-03-21T01:29:55+03:00" level=info msg="generating full qt/webchannel"
time="2020-03-21T01:29:56+03:00" level=info msg="generating full qt/svg"
time="2020-03-21T01:29:57+03:00" level=info msg="generating full qt/multimedia"
time="2020-03-21T01:30:15+03:00" level=info msg="generating full qt/quick"
time="2020-03-21T01:30:20+03:00" level=info msg="generating full qt/help"
time="2020-03-21T01:30:25+03:00" level=info msg="generating full qt/location"
time="2020-03-21T01:30:27+03:00" level=info msg="generating full qt/scripttools"
time="2020-03-21T01:30:27+03:00" level=info msg="generating full qt/uitools"
time="2020-03-21T01:30:27+03:00" level=info msg="generating full qt/winextras"
time="2020-03-21T01:30:28+03:00" level=info msg="generating full qt/testlib"
time="2020-03-21T01:30:29+03:00" level=info msg="generating full qt/serialport"
time="2020-03-21T01:30:29+03:00" level=info msg="generating full qt/serialbus"
time="2020-03-21T01:30:31+03:00" level=info msg="generating full qt/printsupport"
time="2020-03-21T01:30:34+03:00" level=info msg="generating full qt/designer"
time="2020-03-21T01:30:39+03:00" level=info msg="generating full qt/scxml"
time="2020-03-21T01:30:40+03:00" level=info msg="generating full qt/gamepad"
time="2020-03-21T01:30:41+03:00" level=info msg="generating full qt/datavisualization    [GPLv3]"
time="2020-03-21T01:30:47+03:00" level=info msg="generating full qt/charts               [GPLv3]"
time="2020-03-21T01:30:59+03:00" level=info msg="generating full qt/virtualkeyboard      [GPLv3]"
time="2020-03-21T01:31:01+03:00" level=info msg="generating full qt/speech"
time="2020-03-21T01:31:02+03:00" level=info msg="generating full qt/quickcontrols2"
time="2020-03-21T01:31:02+03:00" level=info msg="generating full qt/sailfish"
time="2020-03-21T01:31:02+03:00" level=info msg="generating full qt/remoteobjects"
time="2020-03-21T01:31:06+03:00" level=info msg="running: 'qtsetup install windows' [docker=false] [vagrant=false]"
time="2020-03-21T01:31:06+03:00" level=info msg="installing full qt/core"
github.com/therecipe/qt/core
# github.com/therecipe/qt/core
core.cpp:10:3: error: #error ------------------------------------------------------------------
   10 |  #error ------------------------------------------------------------------
      |   ^~~~~
core.cpp:11:3: error: #error please run: '$(go env GOPATH)/bin/qtsetup'
   11 |  #error please run: '$(go env GOPATH)/bin/qtsetup'
      |   ^~~~~
core.cpp:12:3: error: #error more info here: https:
   12 |  #error more info here: https://github.com/therecipe/qt/wiki/Installation
      |   ^~~~~
core.cpp:13:3: error: #error ------------------------------------------------------------------
   13 |  #error ------------------------------------------------------------------
      |   ^~~~~
core.cpp:15:10: fatal error: QAbstractAnimation: No such file or directory
   15 | #include <QAbstractAnimation>
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.

time="2020-03-21T01:34:41+03:00" level=error msg="failed to install 'core'; aborting setup"

C:\Users\ergoz>
b0123456789 commented 4 years ago

I has same problem with golang 1.13 qt 5.13.0

ruixiwu commented 4 years ago

I have the same problem qt5.14.2 and go 1.14 in windows 10 home edition

colemathes commented 4 years ago

I am currently having the same problem win 10 home