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.49k stars 748 forks source link

qtsetup doesn't work on Debian 9 #687

Closed winks closed 5 years ago

winks commented 6 years ago

After 3 misguided attempts at compiling Qt 5.11.1 (probably my fault, something was wrong, I had other versions here) I thought it should work, but I got these errors:

INFO[0000] running: 'qtsetup prep'                      
WARN[0000] failed to create qtrcc symlink in your PATH (/usr/local/go/bin/qtrcc); please use /home/florian/code/go/bin/qtrcc instead 
WARN[0000] failed to create qtmoc symlink in your PATH (/usr/local/go/bin/qtmoc); please use /home/florian/code/go/bin/qtmoc instead 
WARN[0000] failed to create qtminimal symlink in your PATH (/usr/local/go/bin/qtminimal); please use /home/florian/code/go/bin/qtminimal instead 
WARN[0000] failed to create qtdeploy symlink in your PATH (/usr/local/go/bin/qtdeploy); please use /home/florian/code/go/bin/qtdeploy instead 
INFO[0000] running: 'qtsetup check linux' [docker=false] [vagrant=false] 
INFO[0000] GOOS:                        'linux'         
INFO[0000] GOARCH:                      'amd64'         
INFO[0000] GOVERSION:                   'go1.9'         
INFO[0000] GOROOT:                   *  '/usr/local/go' 
INFO[0000] GOPATH:                   *  '/home/florian/code/go' 
INFO[0000] GOBIN:                       '/home/florian/code/go/bin' 
INFO[0000] QT_HASH:                     'fcc16d8acf4345e0496acd0eb8c14ffd6f0656ae' 
INFO[0000] QT_VERSION:               *  '5.11.1'        
INFO[0000] QT_VERSION_MAJOR:            '5.11.1'        
INFO[0000] QT_DIR:                   *  '/opt/local/qt-5.11.1' 
INFO[0000] QT_STUB:                     'false'         
INFO[0000] QT_DEBUG:                    'false'         
INFO[0000] QT_QMAKE_DIR:             *  '/opt/local/qt-5.11.1/bin' 
INFO[0000] QT_WEBKIT:                   'false'         
INFO[0000] QT_DISTRO:                   'ubuntu'        
INFO[0000] QT_PKG_CONFIG:               'false'         
INFO[0000] running: 'qtsetup generate linux' [docker=false] [vagrant=false] 
ERRO[0000] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtremoteobjects/qtremoteobjects.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtremoteobjects/qtremoteobjects.index: no such file or directory"
ERRO[0000] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtdbus/qtdbus.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtdbus/qtdbus.index: no such file or directory"
ERRO[0000] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtcharts/qtcharts.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtcharts/qtcharts.index: no such file or directory"
ERRO[0000] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtnfc/qtnfc.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtnfc/qtnfc.index: no such file or directory"
WARN[0000] parser.LoadModule                             error=EOF module=Nfc
WARN[0000] parser.LoadModule                             error=EOF module=DBus
ERRO[0000] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtquickcontrols2/qtquickcontrols2.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtquickcontrols2/qtquickcontrols2.index: no such file or directory"
WARN[0000] parser.LoadModule                             error=EOF module=QuickControls2
ERRO[0000] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtxml/qtxml.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtxml/qtxml.index: no such file or directory"
WARN[0000] parser.LoadModule                             error=EOF module=Xml
ERRO[0000] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtscxml/qtscxml.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtscxml/qtscxml.index: no such file or directory"
WARN[0000] parser.LoadModule                             error=EOF module=Scxml
ERRO[0000] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qthelp/qthelp.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qthelp/qthelp.index: no such file or directory"
ERRO[0000] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtscript/qtscript.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtscript/qtscript.index: no such file or directory"
WARN[0000] parser.LoadModule                             error=EOF module=Script
ERRO[0000] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtwidgets/qtwidgets.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtwidgets/qtwidgets.index: no such file or directory"
ERRO[0000] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtpurchasing/qtpurchasing.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtpurchasing/qtpurchasing.index: no such file or directory"
ERRO[0000] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtwebengine/qtwebengine.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtwebengine/qtwebengine.index: no such file or directory"
ERRO[0000] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtpositioning/qtpositioning.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtpositioning/qtpositioning.index: no such file or directory"
ERRO[0000] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtsvg/qtsvg.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtsvg/qtsvg.index: no such file or directory"
ERRO[0000] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtdatavisualization/qtdatavisualization.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtdatavisualization/qtdatavisualization.index: no such file or directory"
ERRO[0000] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtserialbus/qtserialbus.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtserialbus/qtserialbus.index: no such file or directory"
ERRO[0000] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtprintsupport/qtprintsupport.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtprintsupport/qtprintsupport.index: no such file or directory"
ERRO[0000] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtqml/qtqml.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtqml/qtqml.index: no such file or directory"
WARN[0000] parser.LoadModule                             error=EOF module=Qml
WARN[0000] parser.LoadModule                             error=EOF module=Positioning
WARN[0000] parser.LoadModule                             error=EOF module=SerialBus
ERRO[0000] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtmultimedia/qtmultimedia.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtmultimedia/qtmultimedia.index: no such file or directory"
WARN[0000] parser.LoadModule                             error=EOF module=Multimedia
ERRO[0000] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtquick/qtquick.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtquick/qtquick.index: no such file or directory"
WARN[0000] parser.LoadModule                             error=EOF module=Quick
WARN[0000] parser.LoadModule                             error=EOF module=Purchasing
WARN[0000] parser.LoadModule                             error=EOF module=Widgets
WARN[0000] parser.LoadModule                             error=EOF module=Help
WARN[0000] parser.LoadModule                             error=EOF module=RemoteObjects
ERRO[0000] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtandroidextras/qtandroidextras.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtandroidextras/qtandroidextras.index: no such file or directory"
WARN[0000] parser.LoadModule                             error=EOF module=AndroidExtras
ERRO[0000] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtlocation/qtlocation.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtlocation/qtlocation.index: no such file or directory"
WARN[0000] parser.LoadModule                             error=EOF module=Location
ERRO[0000] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtwebsockets/qtwebsockets.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtwebsockets/qtwebsockets.index: no such file or directory"
WARN[0000] parser.LoadModule                             error=EOF module=WebSockets
ERRO[0000] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtspeech/qtspeech.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtspeech/qtspeech.index: no such file or directory"
WARN[0000] parser.LoadModule                             error=EOF module=Speech
ERRO[0000] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qttestlib/qttestlib.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qttestlib/qttestlib.index: no such file or directory"
WARN[0000] parser.LoadModule                             error=EOF module=TestLib
ERRO[0000] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtwebview/qtwebview.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtwebview/qtwebview.index: no such file or directory"
WARN[0000] parser.LoadModule                             error=EOF module=WebView
ERRO[0000] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtdesigner/qtdesigner.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtdesigner/qtdesigner.index: no such file or directory"
WARN[0000] parser.LoadModule                             error=EOF module=Designer
ERRO[0000] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtxmlpatterns/qtxmlpatterns.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtxmlpatterns/qtxmlpatterns.index: no such file or directory"
WARN[0000] parser.LoadModule                             error=EOF module=XmlPatterns
ERRO[0000] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtgamepad/qtgamepad.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtgamepad/qtgamepad.index: no such file or directory"
WARN[0000] parser.LoadModule                             error=EOF module=Gamepad
ERRO[0000] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtgui/qtgui.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtgui/qtgui.index: no such file or directory"
WARN[0000] parser.LoadModule                             error=EOF module=Gui
ERRO[0000] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtcore/qtcore.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtcore/qtcore.index: no such file or directory"
WARN[0000] parser.LoadModule                             error=EOF module=Core
ERRO[0000] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtscripttools/qtscripttools.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtscripttools/qtscripttools.index: no such file or directory"
WARN[0000] parser.LoadModule                             error=EOF module=ScriptTools
ERRO[0000] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtbluetooth/qtbluetooth.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtbluetooth/qtbluetooth.index: no such file or directory"
WARN[0000] parser.LoadModule                             error=EOF module=Bluetooth
ERRO[0000] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtsql/qtsql.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtsql/qtsql.index: no such file or directory"
WARN[0000] parser.LoadModule                             error=EOF module=Sql
ERRO[0000] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtnetwork/qtnetwork.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtnetwork/qtnetwork.index: no such file or directory"
WARN[0000] parser.LoadModule                             error=EOF module=Network
ERRO[0000] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtuitools/qtuitools.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtuitools/qtuitools.index: no such file or directory"
WARN[0000] parser.LoadModule                             error=EOF module=UiTools
ERRO[0000] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtsensors/qtsensors.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtsensors/qtsensors.index: no such file or directory"
WARN[0000] parser.LoadModule                             error=EOF module=Sensors
ERRO[0000] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtwebchannel/qtwebchannel.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtwebchannel/qtwebchannel.index: no such file or directory"
WARN[0000] parser.LoadModule                             error=EOF module=WebChannel
WARN[0000] parser.LoadModule                             error=EOF module=WebEngine
WARN[0000] parser.LoadModule                             error=EOF module=Svg
WARN[0000] parser.LoadModule                             error=EOF module=PrintSupport
ERRO[0000] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtserialport/qtserialport.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtserialport/qtserialport.index: no such file or directory"
WARN[0000] parser.LoadModule                             error=EOF module=SerialPort
INFO[0000] generating full qt/core                      
INFO[0000] generating full qt/androidextras             
INFO[0000] generating full qt/gui                       
INFO[0000] generating full qt/network                   
INFO[0000] generating full qt/xml                       
INFO[0000] generating full qt/dbus                      
INFO[0000] generating full qt/nfc                       
INFO[0000] generating full qt/script                    
INFO[0000] generating full qt/sensors                   
INFO[0000] generating full qt/positioning               
INFO[0000] generating full qt/widgets                   
INFO[0000] generating full qt/sql                       
INFO[0000] generating full qt/qml                       
INFO[0000] generating full qt/websockets                
INFO[0000] generating full qt/xmlpatterns               
INFO[0000] generating full qt/bluetooth                 
INFO[0000] generating full qt/webchannel                
INFO[0000] generating full qt/svg                       
INFO[0000] generating full qt/multimedia                
INFO[0000] generating full qt/quick                     
INFO[0001] generating full qt/help                      
INFO[0001] generating full qt/location                  
INFO[0001] generating full qt/scripttools               
INFO[0001] generating full qt/uitools                   
INFO[0001] generating full qt/webengine                 
ERRO[0001] failed to run command                         cmd="/opt/local/qt-5.11.1/bin/qmake -o Mfile ../webengine.pro -spec linux-g++ CONFIG+=release" dir=/home/florian/code/go/src/github.com/therecipe/qt/webengine env= error="exit status 3" func=RunCmdOptional name="run qmake for linux on linux"
Info: creating stash file /home/florian/code/go/src/github.com/therecipe/qt/webengine/.qmake.stash
Project ERROR: Unknown module(s) in QT: webengine webenginewidgets webenginecore

ERRO[0001] failed to load /home/florian/code/go/src/github.com/therecipe/qt/webengine/Mfile  error="open /home/florian/code/go/src/github.com/therecipe/qt/webengine/Mfile: no such file or directory"
INFO[0001] generating full qt/testlib                   
INFO[0001] generating full qt/serialport                
INFO[0001] generating full qt/serialbus                 
INFO[0001] generating full qt/printsupport              
INFO[0001] generating full qt/designer                  
INFO[0001] generating full qt/scxml                     
INFO[0001] generating full qt/gamepad                   
INFO[0001] generating full qt/purchasing                
INFO[0001] generating full qt/datavisualization         
INFO[0001] generating full qt/charts                    
INFO[0001] generating full qt/speech                    
INFO[0001] generating full qt/quickcontrols2            
INFO[0001] generating full qt/sailfish                  
INFO[0001] generating full qt/webview                   
INFO[0001] generating full qt/remoteobjects             
INFO[0002] running: 'qtsetup install linux' [docker=false] [vagrant=false] 
INFO[0002] installing full qt/core                      
INFO[0003] installing full qt/androidextras             
ERRO[0003] failed to run command                         cmd="go install -p 8 -v github.com/therecipe/qt/androidextras" env="CGO_ENABLED=1 GOROOT=/usr/local/go GOARCH=amd64 CGO_CFLAGS_ALLOW=.* GOOS=linux PATH=/home/florian/.nix-profile/bin:/home/florian/.nix-profile/sbin:/home/florian/bin:/home/florian/code/dotfiles/bin:/home/florian/bin:/home/florian/code/dotfiles/bin:/home/florian/.cargo/bin:~/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/florian/.rvm/bin:/usr/local/go/bin:/home/florian/.cargo/bin GOPATH=/home/florian/code/go CGO_CXXFLAGS_ALLOW=.* CGO_LDFLAGS_ALLOW=.*" error="exit status 2" func=RunCmdOptionalError name="install androidextras"
github.com/therecipe/qt/androidextras
# github.com/therecipe/qt/androidextras
../therecipe/qt/androidextras/androidextras.go:11:10: undefined: QAndroidJniEnvironment

INFO[0003] installing full qt/gui                       
INFO[0003] installing full qt/network                   
INFO[0004] installing full qt/xml                       
INFO[0004] installing full qt/dbus                      
INFO[0004] installing full qt/nfc                       
INFO[0005] installing full qt/script                    
INFO[0005] installing full qt/sensors                   
INFO[0005] installing full qt/positioning               
INFO[0006] installing full qt/widgets                   
INFO[0006] installing full qt/sql                       
INFO[0006] installing full qt/qml                       
INFO[0007] installing full qt/websockets                
INFO[0007] installing full qt/xmlpatterns               
INFO[0008] installing full qt/bluetooth                 
INFO[0008] installing full qt/webchannel                
INFO[0008] installing full qt/svg                       
INFO[0009] installing full qt/multimedia                
INFO[0010] installing full qt/quick                     
INFO[0010] installing full qt/help                      
INFO[0011] installing full qt/location                  
INFO[0011] installing full qt/scripttools               
INFO[0012] installing full qt/uitools                   
INFO[0012] installing full qt/webengine                 
INFO[0012] installing full qt/testlib                   
INFO[0013] installing full qt/serialport                
INFO[0013] installing full qt/serialbus                 
INFO[0013] installing full qt/printsupport              
INFO[0014] installing full qt/designer                  
INFO[0014] installing full qt/scxml                     
INFO[0015] installing full qt/gamepad                   
INFO[0015] installing full qt/purchasing                
INFO[0015] installing full qt/datavisualization         
INFO[0016] installing full qt/charts                    
INFO[0016] installing full qt/speech                    
INFO[0016] installing full qt/quickcontrols2            
INFO[0017] installing full qt/sailfish                  
INFO[0017] installing full qt/webview                   
INFO[0017] installing full qt/remoteobjects             
WARN[0018] failed to install:                           
WARN[0018] androidextras                                
INFO[0018] running: 'qtsetup test linux' [docker=false] [vagrant=false] 
INFO[0018] testing qml/application                      
ERRO[0019] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtremoteobjects/qtremoteobjects.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtremoteobjects/qtremoteobjects.index: no such file or directory"
WARN[0019] parser.LoadModule                             error=EOF module=RemoteObjects
ERRO[0019] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtcore/qtcore.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtcore/qtcore.index: no such file or directory"
WARN[0019] parser.LoadModule                             error=EOF module=Core
ERRO[0019] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qthelp/qthelp.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qthelp/qthelp.index: no such file or directory"
ERRO[0019] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtdesigner/qtdesigner.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtdesigner/qtdesigner.index: no such file or directory"
ERRO[0019] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtqml/qtqml.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtqml/qtqml.index: no such file or directory"
WARN[0019] parser.LoadModule                             error=EOF module=Qml
ERRO[0019] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtscxml/qtscxml.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtscxml/qtscxml.index: no such file or directory"
WARN[0019] parser.LoadModule                             error=EOF module=Scxml
ERRO[0019] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtsql/qtsql.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtsql/qtsql.index: no such file or directory"
WARN[0019] parser.LoadModule                             error=EOF module=Sql
WARN[0019] parser.LoadModule                             error=EOF module=Help
ERRO[0019] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtandroidextras/qtandroidextras.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtandroidextras/qtandroidextras.index: no such file or directory"
WARN[0019] parser.LoadModule                             error=EOF module=AndroidExtras
WARN[0019] parser.LoadModule                             error=EOF module=Designer
ERRO[0019] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtuitools/qtuitools.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtuitools/qtuitools.index: no such file or directory"
WARN[0019] parser.LoadModule                             error=EOF module=UiTools
ERRO[0019] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtcharts/qtcharts.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtcharts/qtcharts.index: no such file or directory"
ERRO[0019] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtgamepad/qtgamepad.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtgamepad/qtgamepad.index: no such file or directory"
ERRO[0019] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtgui/qtgui.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtgui/qtgui.index: no such file or directory"
WARN[0019] parser.LoadModule                             error=EOF module=Gui
ERRO[0019] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtxml/qtxml.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtxml/qtxml.index: no such file or directory"
WARN[0019] parser.LoadModule                             error=EOF module=Xml
ERRO[0019] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtspeech/qtspeech.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtspeech/qtspeech.index: no such file or directory"
WARN[0019] parser.LoadModule                             error=EOF module=Speech
ERRO[0019] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtquickcontrols2/qtquickcontrols2.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtquickcontrols2/qtquickcontrols2.index: no such file or directory"
ERRO[0019] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtserialbus/qtserialbus.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtserialbus/qtserialbus.index: no such file or directory"
ERRO[0019] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtnfc/qtnfc.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtnfc/qtnfc.index: no such file or directory"
ERRO[0019] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtquick/qtquick.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtquick/qtquick.index: no such file or directory"
ERRO[0019] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtwebchannel/qtwebchannel.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtwebchannel/qtwebchannel.index: no such file or directory"
ERRO[0019] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtserialport/qtserialport.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtserialport/qtserialport.index: no such file or directory"
WARN[0019] parser.LoadModule                             error=EOF module=SerialPort
ERRO[0019] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtsensors/qtsensors.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtsensors/qtsensors.index: no such file or directory"
ERRO[0019] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtwidgets/qtwidgets.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtwidgets/qtwidgets.index: no such file or directory"
ERRO[0019] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtpositioning/qtpositioning.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtpositioning/qtpositioning.index: no such file or directory"
WARN[0019] parser.LoadModule                             error=EOF module=Positioning
WARN[0019] parser.LoadModule                             error=EOF module=Sensors
ERRO[0019] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtlocation/qtlocation.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtlocation/qtlocation.index: no such file or directory"
WARN[0019] parser.LoadModule                             error=EOF module=Location
ERRO[0019] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtsvg/qtsvg.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtsvg/qtsvg.index: no such file or directory"
WARN[0019] parser.LoadModule                             error=EOF module=Svg
WARN[0019] parser.LoadModule                             error=EOF module=Nfc
WARN[0019] parser.LoadModule                             error=EOF module=WebChannel
ERRO[0019] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtdatavisualization/qtdatavisualization.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtdatavisualization/qtdatavisualization.index: no such file or directory"
WARN[0019] parser.LoadModule                             error=EOF module=SerialBus
ERRO[0019] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtbluetooth/qtbluetooth.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtbluetooth/qtbluetooth.index: no such file or directory"
WARN[0019] parser.LoadModule                             error=EOF module=Bluetooth
ERRO[0019] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qttestlib/qttestlib.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qttestlib/qttestlib.index: no such file or directory"
WARN[0019] parser.LoadModule                             error=EOF module=TestLib
ERRO[0019] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtscripttools/qtscripttools.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtscripttools/qtscripttools.index: no such file or directory"
WARN[0019] parser.LoadModule                             error=EOF module=ScriptTools
ERRO[0019] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtwebsockets/qtwebsockets.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtwebsockets/qtwebsockets.index: no such file or directory"
WARN[0019] parser.LoadModule                             error=EOF module=WebSockets
WARN[0019] parser.LoadModule                             error=EOF module=Gamepad
ERRO[0019] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtxmlpatterns/qtxmlpatterns.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtxmlpatterns/qtxmlpatterns.index: no such file or directory"
WARN[0019] parser.LoadModule                             error=EOF module=XmlPatterns
ERRO[0019] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtnetwork/qtnetwork.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtnetwork/qtnetwork.index: no such file or directory"
WARN[0019] parser.LoadModule                             error=EOF module=Network
ERRO[0019] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtdbus/qtdbus.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtdbus/qtdbus.index: no such file or directory"
WARN[0019] parser.LoadModule                             error=EOF module=DBus
WARN[0019] parser.LoadModule                             error=EOF module=QuickControls2
ERRO[0019] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtprintsupport/qtprintsupport.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtprintsupport/qtprintsupport.index: no such file or directory"
WARN[0019] parser.LoadModule                             error=EOF module=PrintSupport
ERRO[0019] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtwebview/qtwebview.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtwebview/qtwebview.index: no such file or directory"
WARN[0019] parser.LoadModule                             error=EOF module=WebView
ERRO[0019] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtpurchasing/qtpurchasing.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtpurchasing/qtpurchasing.index: no such file or directory"
WARN[0019] parser.LoadModule                             error=EOF module=Purchasing
ERRO[0019] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtwebengine/qtwebengine.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtwebengine/qtwebengine.index: no such file or directory"
WARN[0019] parser.LoadModule                             error=EOF module=WebEngine
WARN[0019] parser.LoadModule                             error=EOF module=Quick
ERRO[0019] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtmultimedia/qtmultimedia.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtmultimedia/qtmultimedia.index: no such file or directory"
WARN[0019] parser.LoadModule                             error=EOF module=Multimedia
WARN[0019] parser.LoadModule                             error=EOF module=Widgets
ERRO[0019] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtscript/qtscript.index  error="open /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtscript/qtscript.index: no such file or directory"
WARN[0019] parser.LoadModule                             error=EOF module=Script
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x110 pc=0x774a2b]

goroutine 1 [running]:
github.com/therecipe/qt/internal/cmd/minimal.Minimal(0xc42007c1e0, 0x53, 0x83e532, 0x5, 0x0, 0x0)
    /home/florian/code/go/src/github.com/therecipe/qt/internal/cmd/minimal/minimal.go:193 +0xb6b
github.com/therecipe/qt/internal/cmd/deploy.Deploy(0x83e043, 0x4, 0x83e532, 0x5, 0xc42007c1e0, 0x53, 0x0, 0x0, 0x0, 0x0, ...)
    /home/florian/code/go/src/github.com/therecipe/qt/internal/cmd/deploy/deploy.go:61 +0xf27
github.com/therecipe/qt/internal/cmd/setup.Test(0x83e532, 0x5, 0x830000, 0x0, 0x0)
    /home/florian/code/go/src/github.com/therecipe/qt/internal/cmd/setup/test.go:148 +0x736
main.main()
    /home/florian/code/go/src/github.com/therecipe/qt/cmd/qtsetup/main.go:107 +0x3a3
go version go1.9 linux/amd64
Description:    Debian GNU/Linux 9.3 (stretch)
QMake version 3.1
Using Qt version 5.11.1 in /opt/local/qt-5.11.1/lib

These puzzle me the most, as I've never seen these paths: ERRO[0019] failed to load /opt/local/qt-5.11.1/Docs/Qt-5.11.1/qtscript/qtscript.index

For completness, my qt configure command:

time ./configure -prefix /opt/local/qt-5.11.1 -opensource -confirm-license -release -nomake examples -nomake tests
winks commented 6 years ago

Only after the fact I went through the issues and saw that Qt 5.11 is supposedly not supported yet, but I get the exact same error with Qt 5.10.1.

Holding off on upgrading Go for now, but please tell me if it should help.

therecipe commented 6 years ago

Hey

Seems like the setup can't find the *.index files, which are necessary for the code generation in the default location. Usually you would have to build them with make docs, maybe take a look here.

But you can probably also work around this by exporting QT_API=5.11.1, this should let the tooling use the *.index files from $GOPATH/src/github.com/therecipe/qt/internal/binding/files/docs/...

therecipe commented 5 years ago

Will close this now, please reopen if this is still relevant