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 fails on Debian 9 #643

Closed hello-code closed 6 years ago

hello-code commented 6 years ago

Hi therecipe! Thank your awesome work! But I can't run successful...

$ uname -a
Linux debian 4.9.0-6-amd64 #1 SMP Debian 4.9.88-1+deb9u1 (2018-05-07) x86_64 GNU/Linux

~/.bashrc :

# Golang
export GOROOT=$HOME/go
export PATH=$PATH:$GOROOT/bin
export GOPATH0=$HOME/development/go
# ext
export GOPATH1=$GOPATH0/g1
export GOPATH2=$GOPATH0/g2
export GOPATH3=$GOPATH0/g3

export GOPATH=$GOPATH1:$GOPATH2:$GOPATH3
export PATH=$PATH:$GOPATH1/bin

# Qt
QT_DIR=$HOME/Qt
QT_VERSION=5.10.0

export CGO_CXXFLAGS_ALLOW=".*"
export CGO_LDFLAGS_ALLOW=".*"
export CGO_CFLAGS_ALLOW=".*"

ANDROID_SDK_DIR="$HOME/Android/Sdk"
ANDROID_NDK_DIR="$HOME/Android/Ndk"
JDK_DIR=$HOME/jdk/jdk1.8.0_172/

export JAVA_HOME=$JDK_DIR
export PATH=$PATH:$JDK_DIR/bin

#export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$QT_DIR/5.10.0/gcc_64/lib/pkgconfig/
#export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$QT_DIR/5.10.0/gcc_64/lib/
#export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:/usr/include/  
export QT_QMAKE_DIR=$QT_DIR/5.10.0/gcc_64/bin/

qtsetup

d@debian:~$ qtsetup check
INFO[0000] running: 'qtsetup check linux' [docker=false] [vagrant=false] 
INFO[0000] GOOS:                        'linux'         
INFO[0000] GOARCH:                      'amd64'         
INFO[0000] GOVERSION:                   'go1.10.2'      
INFO[0000] GOROOT:                   *  '/home/d/go'    
INFO[0000] GOPATH:                   *  '/home/d/development/go/g1' 
INFO[0000] GOBIN:                       '/home/d/development/go/g1/bin' 
INFO[0000] QT_HASH:                     '7038382d6c7bb5fd3957df56bbedf8ec4ca6b67c' 
INFO[0000] QT_VERSION:                  '5.10.0'        
INFO[0000] QT_VERSION_MAJOR:            '5.10.0'        
INFO[0000] QT_DIR:                      '/home/d/Qt'    
INFO[0000] QT_STUB:                     'false'         
INFO[0000] QT_DEBUG:                    'false'         
INFO[0000] QT_QMAKE_DIR:             *  '/home/d/Qt/5.10.0/gcc_64/bin' 
INFO[0000] QT_WEBKIT:                   'false'         
INFO[0000] QT_DISTRO:                   'ubuntu'        
INFO[0000] QT_PKG_CONFIG:               'false'         
d@debian:~$ export QT_PKG_CONFIG=true
d@debian:~$ qtsetup check
INFO[0000] running: 'qtsetup check linux' [docker=false] [vagrant=false] 
INFO[0000] GOOS:                        'linux'         
INFO[0000] GOARCH:                      'amd64'         
INFO[0000] GOVERSION:                   'go1.10.2'      
INFO[0000] GOROOT:                   *  '/home/d/go'    
INFO[0000] GOPATH:                   *  '/home/d/development/go/g1' 
INFO[0000] GOBIN:                       '/home/d/development/go/g1/bin' 
INFO[0000] QT_HASH:                     '7038382d6c7bb5fd3957df56bbedf8ec4ca6b67c' 
INFO[0000] QT_VERSION:                  '5.10.0'        
INFO[0000] QT_VERSION_MAJOR:            '5.10.0'        
INFO[0000] QT_DIR:                      '/home/d/Qt'    
INFO[0000] QT_STUB:                     'false'         
INFO[0000] QT_DEBUG:                    'false'         
INFO[0000] QT_QMAKE_DIR:             *  '/home/d/Qt/5.10.0/gcc_64/bin' 
INFO[0000] QT_WEBKIT:                   'false'         
INFO[0000] QT_DISTRO:                   'ubuntu'        
INFO[0000] QT_PKG_CONFIG:            *  'true'          
INFO[0000] QT_DOC_DIR:                  '/usr/share/qt5/doc' 
INFO[0000] QT_MISC_DIR:                 '/home/d/Qt/5.10.0/gcc_64' 
d@debian:~$ qtsetup 
INFO[0000] running: 'qtsetup prep'                      
INFO[0000] successfully created qtrcc symlink in your PATH (/home/d/go/bin/qtrcc) 
INFO[0000] successfully created qtmoc symlink in your PATH (/home/d/go/bin/qtmoc) 
INFO[0000] successfully created qtminimal symlink in your PATH (/home/d/go/bin/qtminimal) 
INFO[0000] successfully created qtdeploy symlink in your PATH (/home/d/go/bin/qtdeploy) 
INFO[0000] running: 'qtsetup check linux' [docker=false] [vagrant=false] 
INFO[0000] GOOS:                        'linux'         
INFO[0000] GOARCH:                      'amd64'         
INFO[0000] GOVERSION:                   'go1.10.2'      
INFO[0000] GOROOT:                   *  '/home/d/go'    
INFO[0000] GOPATH:                   *  '/home/d/development/go/g1' 
INFO[0000] GOBIN:                       '/home/d/development/go/g1/bin' 
INFO[0000] QT_HASH:                     '7038382d6c7bb5fd3957df56bbedf8ec4ca6b67c' 
INFO[0000] QT_VERSION:                  '5.10.0'        
INFO[0000] QT_VERSION_MAJOR:            '5.10.0'        
INFO[0000] QT_DIR:                      '/home/d/Qt'    
INFO[0000] QT_STUB:                     'false'         
INFO[0000] QT_DEBUG:                    'false'         
INFO[0000] QT_QMAKE_DIR:             *  '/home/d/Qt/5.10.0/gcc_64/bin' 
INFO[0000] QT_WEBKIT:                   'false'         
INFO[0000] QT_DISTRO:                   'ubuntu'        
INFO[0000] QT_PKG_CONFIG:            *  'true'          
INFO[0000] QT_DOC_DIR:                  '/usr/share/qt5/doc' 
INFO[0000] QT_MISC_DIR:                 '/home/d/Qt/5.10.0/gcc_64' 
INFO[0000] running: 'qtsetup generate linux' [docker=false] [vagrant=false] 
WARN[0000] parser.LoadModule                             error=EOF module=RemoteObjects
WARN[0000] parser.LoadModule                             error=EOF module=SerialBus
WARN[0000] parser.LoadModule                             error=EOF module=Scxml
WARN[0000] parser.LoadModule                             error=EOF module=AndroidExtras
WARN[0000] parser.LoadModule                             error=EOF module=WebView
WARN[0000] parser.LoadModule                             error=EOF module=Gamepad
WARN[0000] parser.LoadModule                             error=EOF module=Speech
INFO[0003] generating full qt/core                      
INFO[0009] generating full qt/androidextras             
INFO[0009] generating full qt/gui                       
INFO[0026] generating full qt/network                   
INFO[0027] generating full qt/xml                       
INFO[0028] generating full qt/dbus                      
INFO[0029] generating full qt/nfc                       
INFO[0029] generating full qt/script                    
INFO[0029] generating full qt/sensors                   
INFO[0031] generating full qt/positioning               
INFO[0031] generating full qt/widgets                   
INFO[0047] generating full qt/sql                       
INFO[0048] generating full qt/qml                       
INFO[0049] generating full qt/websockets                
INFO[0049] generating full qt/xmlpatterns               
INFO[0050] generating full qt/bluetooth                 
INFO[0050] generating full qt/webchannel                
INFO[0051] generating full qt/svg                       
INFO[0051] generating full qt/multimedia                
INFO[0056] generating full qt/quick                     
INFO[0057] generating full qt/help                      
INFO[0059] generating full qt/location                  
INFO[0059] generating full qt/scripttools               
INFO[0059] generating full qt/uitools                   
INFO[0059] generating full qt/webengine                 
INFO[0060] generating full qt/testlib                   
INFO[0061] generating full qt/serialport                
INFO[0061] generating full qt/serialbus                 
INFO[0061] generating full qt/printsupport              
INFO[0062] generating full qt/designer                  
INFO[0064] generating full qt/scxml                     
INFO[0064] generating full qt/gamepad                   
INFO[0064] generating full qt/datavisualization         
INFO[0064] generating full qt/charts                    
INFO[0064] generating full qt/speech                    
INFO[0064] generating full qt/quickcontrols2            
INFO[0064] generating full qt/sailfish                  
INFO[0064] generating full qt/webview                   
INFO[0064] generating full qt/remoteobjects             
INFO[0064] running: 'qtsetup install linux' [docker=false] [vagrant=false] 
INFO[0064] installing full qt/core                      
INFO[0064] installing full qt/androidextras             
ERRO[0064] failed to run command                         cmd="go install -p 2 -v github.com/therecipe/qt/androidextras" env="GOROOT=/home/d/go CGO_CXXFLAGS_ALLOW=.* GOARCH=amd64 CGO_CFLAGS_ALLOW=.* CGO_LDFLAGS_ALLOW=.* GOOS=linux CGO_ENABLED=1 PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/d/app:/home/d/go/bin:/home/d/development/go/g1/bin:/home/d/jdk/jdk1.8.0_172//bin GOPATH=/home/d/development/go/g1:/home/d/development/go/g2:/home/d/development/go/g3" error="exit status 2" func=RunCmdOptionalError name="install androidextras"
github.com/therecipe/qt/androidextras
# github.com/therecipe/qt/androidextras
development/go/g1/src/github.com/therecipe/qt/androidextras/androidextras.go:11:10: undefined: QAndroidJniEnvironment

INFO[0064] installing full qt/gui                       
ERRO[0106] failed to run command                         cmd="go install -p 2 -v github.com/therecipe/qt/gui" env="GOROOT=/home/d/go CGO_CXXFLAGS_ALLOW=.* GOOS=linux CGO_ENABLED=1 PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/d/app:/home/d/go/bin:/home/d/development/go/g1/bin:/home/d/jdk/jdk1.8.0_172//bin GOPATH=/home/d/development/go/g1:/home/d/development/go/g2:/home/d/development/go/g3 GOARCH=amd64 CGO_CFLAGS_ALLOW=.* CGO_LDFLAGS_ALLOW=.*" error="exit status 2" func=RunCmdOptionalError name="install gui"
github.com/therecipe/qt
github.com/therecipe/qt/gui
# github.com/therecipe/qt/gui
gui.cpp:273:19: fatal error: content: No such file or directory
 #include <content>
                   ^
compilation terminated.

INFO[0106] installing full qt/network                   
ERRO[0110] failed to run command                         cmd="go install -p 2 -v github.com/therecipe/qt/network" env="GOROOT=/home/d/go CGO_CXXFLAGS_ALLOW=.* GOOS=linux CGO_ENABLED=1 PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/d/app:/home/d/go/bin:/home/d/development/go/g1/bin:/home/d/jdk/jdk1.8.0_172//bin GOPATH=/home/d/development/go/g1:/home/d/development/go/g2:/home/d/development/go/g3 GOARCH=amd64 CGO_CFLAGS_ALLOW=.* CGO_LDFLAGS_ALLOW=.*" error="exit status 2" func=RunCmdOptionalError name="install network"
github.com/therecipe/qt
github.com/therecipe/qt/network
# github.com/therecipe/qt/network
network.cpp:92:19: fatal error: content: No such file or directory
 #include <content>
                   ^
compilation terminated.

INFO[0110] installing full qt/xml                       
ERRO[0111] failed to run command                         cmd="go install -p 2 -v github.com/therecipe/qt/xml" env="GOROOT=/home/d/go CGO_CXXFLAGS_ALLOW=.* GOARCH=amd64 CGO_CFLAGS_ALLOW=.* CGO_LDFLAGS_ALLOW=.* GOOS=linux CGO_ENABLED=1 PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/d/app:/home/d/go/bin:/home/d/development/go/g1/bin:/home/d/jdk/jdk1.8.0_172//bin GOPATH=/home/d/development/go/g1:/home/d/development/go/g2:/home/d/development/go/g3" error="exit status 2" func=RunCmdOptionalError name="install xml"
github.com/therecipe/qt
github.com/therecipe/qt/xml
# github.com/therecipe/qt/xml
xml.cpp:47:19: fatal error: content: No such file or directory
 #include <content>
                   ^
compilation terminated.

INFO[0111] installing full qt/dbus                      
INFO[0111] installing full qt/nfc                       
INFO[0112] installing full qt/script                    
INFO[0112] installing full qt/sensors                   
ERRO[0113] failed to run command                         cmd="go install -p 2 -v github.com/therecipe/qt/sensors" env="GOROOT=/home/d/go CGO_CXXFLAGS_ALLOW=.* GOPATH=/home/d/development/go/g1:/home/d/development/go/g2:/home/d/development/go/g3 GOARCH=amd64 CGO_CFLAGS_ALLOW=.* CGO_LDFLAGS_ALLOW=.* GOOS=linux CGO_ENABLED=1 PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/d/app:/home/d/go/bin:/home/d/development/go/g1/bin:/home/d/jdk/jdk1.8.0_172//bin" error="exit status 2" func=RunCmdOptionalError name="install sensors"
github.com/therecipe/qt
github.com/therecipe/qt/sensors
# github.com/therecipe/qt/sensors
sensors.cpp:104:15: fatal error: net: No such file or directory
 #include <net>
               ^
compilation terminated.

INFO[0113] installing full qt/positioning               
INFO[0113] installing full qt/widgets                   
ERRO[0155] failed to run command                         cmd="go install -p 2 -v github.com/therecipe/qt/widgets" env="GOROOT=/home/d/go CGO_CXXFLAGS_ALLOW=.* GOOS=linux CGO_ENABLED=1 PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/d/app:/home/d/go/bin:/home/d/development/go/g1/bin:/home/d/jdk/jdk1.8.0_172//bin GOPATH=/home/d/development/go/g1:/home/d/development/go/g2:/home/d/development/go/g3 GOARCH=amd64 CGO_CFLAGS_ALLOW=.* CGO_LDFLAGS_ALLOW=.*" error="exit status 2" func=RunCmdOptionalError name="install widgets"
github.com/therecipe/qt
github.com/therecipe/qt/gui
# github.com/therecipe/qt/gui
gui.cpp:273:19: fatal error: content: No such file or directory
 #include <content>
                   ^
compilation terminated.

INFO[0155] installing full qt/sql                       
ERRO[0198] failed to run command                         cmd="go install -p 2 -v github.com/therecipe/qt/sql" env="CGO_CFLAGS_ALLOW=.* CGO_LDFLAGS_ALLOW=.* GOOS=linux CGO_ENABLED=1 PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/d/app:/home/d/go/bin:/home/d/development/go/g1/bin:/home/d/jdk/jdk1.8.0_172//bin GOPATH=/home/d/development/go/g1:/home/d/development/go/g2:/home/d/development/go/g3 GOARCH=amd64 GOROOT=/home/d/go CGO_CXXFLAGS_ALLOW=.*" error="exit status 2" func=RunCmdOptionalError name="install sql"
github.com/therecipe/qt
github.com/therecipe/qt/gui
# github.com/therecipe/qt/gui
gui.cpp:273:19: fatal error: content: No such file or directory
 #include <content>
                   ^
compilation terminated.

INFO[0198] installing full qt/qml                       
ERRO[0202] failed to run command                         cmd="go install -p 2 -v github.com/therecipe/qt/qml" env="CGO_CFLAGS_ALLOW=.* CGO_LDFLAGS_ALLOW=.* GOOS=linux CGO_ENABLED=1 PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/d/app:/home/d/go/bin:/home/d/development/go/g1/bin:/home/d/jdk/jdk1.8.0_172//bin GOPATH=/home/d/development/go/g1:/home/d/development/go/g2:/home/d/development/go/g3 GOARCH=amd64 GOROOT=/home/d/go CGO_CXXFLAGS_ALLOW=.*" error="exit status 2" func=RunCmdOptionalError name="install qml"
github.com/therecipe/qt
github.com/therecipe/qt/network
# github.com/therecipe/qt/network
network.cpp:92:19: fatal error: content: No such file or directory
 #include <content>
                   ^
compilation terminated.

INFO[0202] installing full qt/websockets                
ERRO[0206] failed to run command                         cmd="go install -p 2 -v github.com/therecipe/qt/websockets" env="GOPATH=/home/d/development/go/g1:/home/d/development/go/g2:/home/d/development/go/g3 GOARCH=amd64 CGO_CFLAGS_ALLOW=.* CGO_LDFLAGS_ALLOW=.* GOOS=linux CGO_ENABLED=1 PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/d/app:/home/d/go/bin:/home/d/development/go/g1/bin:/home/d/jdk/jdk1.8.0_172//bin GOROOT=/home/d/go CGO_CXXFLAGS_ALLOW=.*" error="exit status 2" func=RunCmdOptionalError name="install websockets"
github.com/therecipe/qt
github.com/therecipe/qt/network
# github.com/therecipe/qt/network
network.cpp:92:19: fatal error: content: No such file or directory
 #include <content>
                   ^
compilation terminated.

INFO[0206] installing full qt/xmlpatterns               
ERRO[0210] failed to run command                         cmd="go install -p 2 -v github.com/therecipe/qt/xmlpatterns" env="GOPATH=/home/d/development/go/g1:/home/d/development/go/g2:/home/d/development/go/g3 GOARCH=amd64 CGO_CFLAGS_ALLOW=.* CGO_LDFLAGS_ALLOW=.* GOOS=linux CGO_ENABLED=1 PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/d/app:/home/d/go/bin:/home/d/development/go/g1/bin:/home/d/jdk/jdk1.8.0_172//bin GOROOT=/home/d/go CGO_CXXFLAGS_ALLOW=.*" error="exit status 2" func=RunCmdOptionalError name="install xmlpatterns"
github.com/therecipe/qt
github.com/therecipe/qt/network
# github.com/therecipe/qt/network
network.cpp:92:19: fatal error: content: No such file or directory
 #include <content>
                   ^
compilation terminated.

INFO[0210] installing full qt/bluetooth                 
ERRO[0214] failed to run command                         cmd="go install -p 2 -v github.com/therecipe/qt/bluetooth" env="GOROOT=/home/d/go CGO_CXXFLAGS_ALLOW=.* GOPATH=/home/d/development/go/g1:/home/d/development/go/g2:/home/d/development/go/g3 GOARCH=amd64 CGO_CFLAGS_ALLOW=.* CGO_LDFLAGS_ALLOW=.* GOOS=linux CGO_ENABLED=1 PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/d/app:/home/d/go/bin:/home/d/development/go/g1/bin:/home/d/jdk/jdk1.8.0_172//bin" error="exit status 2" func=RunCmdOptionalError name="install bluetooth"
github.com/therecipe/qt
github.com/therecipe/qt/network
# github.com/therecipe/qt/network
network.cpp:92:19: fatal error: content: No such file or directory
 #include <content>
                   ^
compilation terminated.

INFO[0214] installing full qt/webchannel                
INFO[0214] installing full qt/svg                       
ERRO[0256] failed to run command                         cmd="go install -p 2 -v github.com/therecipe/qt/svg" env="PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/d/app:/home/d/go/bin:/home/d/development/go/g1/bin:/home/d/jdk/jdk1.8.0_172//bin GOPATH=/home/d/development/go/g1:/home/d/development/go/g2:/home/d/development/go/g3 GOARCH=amd64 CGO_CFLAGS_ALLOW=.* CGO_LDFLAGS_ALLOW=.* GOOS=linux CGO_ENABLED=1 GOROOT=/home/d/go CGO_CXXFLAGS_ALLOW=.*" error="exit status 2" func=RunCmdOptionalError name="install svg"
github.com/therecipe/qt
github.com/therecipe/qt/gui
# github.com/therecipe/qt/gui
gui.cpp:273:19: fatal error: content: No such file or directory
 #include <content>
                   ^
compilation terminated.

INFO[0256] installing full qt/multimedia                
ERRO[0299] failed to run command                         cmd="go install -p 2 -v github.com/therecipe/qt/multimedia" env="CGO_CXXFLAGS_ALLOW=.* GOROOT=/home/d/go CGO_ENABLED=1 PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/d/app:/home/d/go/bin:/home/d/development/go/g1/bin:/home/d/jdk/jdk1.8.0_172//bin GOPATH=/home/d/development/go/g1:/home/d/development/go/g2:/home/d/development/go/g3 GOARCH=amd64 CGO_CFLAGS_ALLOW=.* CGO_LDFLAGS_ALLOW=.* GOOS=linux" error="exit status 2" func=RunCmdOptionalError name="install multimedia"
github.com/therecipe/qt
github.com/therecipe/qt/network
github.com/therecipe/qt/gui
# github.com/therecipe/qt/network
network.cpp:92:19: fatal error: content: No such file or directory
 #include <content>
                   ^
compilation terminated.
# github.com/therecipe/qt/gui
gui.cpp:273:19: fatal error: content: No such file or directory
 #include <content>
                   ^
compilation terminated.

INFO[0299] installing full qt/quick                     
ERRO[0340] failed to run command                         cmd="go install -p 2 -v github.com/therecipe/qt/quick" env="GOROOT=/home/d/go CGO_CXXFLAGS_ALLOW=.* CGO_LDFLAGS_ALLOW=.* GOOS=linux CGO_ENABLED=1 PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/d/app:/home/d/go/bin:/home/d/development/go/g1/bin:/home/d/jdk/jdk1.8.0_172//bin GOPATH=/home/d/development/go/g1:/home/d/development/go/g2:/home/d/development/go/g3 GOARCH=amd64 CGO_CFLAGS_ALLOW=.*" error="exit status 2" func=RunCmdOptionalError name="install quick"
github.com/therecipe/qt
github.com/therecipe/qt/network
github.com/therecipe/qt/gui
# github.com/therecipe/qt/network
network.cpp:92:19: fatal error: content: No such file or directory
 #include <content>
                   ^
compilation terminated.
# github.com/therecipe/qt/gui
gui.cpp:273:19: fatal error: content: No such file or directory
 #include <content>
                   ^
compilation terminated.

INFO[0340] installing full qt/help                      
ERRO[0383] failed to run command                         cmd="go install -p 2 -v github.com/therecipe/qt/help" env="CGO_CFLAGS_ALLOW=.* CGO_LDFLAGS_ALLOW=.* GOOS=linux CGO_ENABLED=1 PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/d/app:/home/d/go/bin:/home/d/development/go/g1/bin:/home/d/jdk/jdk1.8.0_172//bin GOPATH=/home/d/development/go/g1:/home/d/development/go/g2:/home/d/development/go/g3 GOARCH=amd64 GOROOT=/home/d/go CGO_CXXFLAGS_ALLOW=.*" error="exit status 2" func=RunCmdOptionalError name="install help"
github.com/therecipe/qt
github.com/therecipe/qt/gui
# github.com/therecipe/qt/gui
gui.cpp:273:19: fatal error: content: No such file or directory
 #include <content>
                   ^
compilation terminated.

INFO[0383] installing full qt/location                  
INFO[0383] installing full qt/scripttools               
ERRO[0424] failed to run command                         cmd="go install -p 2 -v github.com/therecipe/qt/scripttools" env="CGO_CFLAGS_ALLOW=.* CGO_LDFLAGS_ALLOW=.* GOOS=linux CGO_ENABLED=1 PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/d/app:/home/d/go/bin:/home/d/development/go/g1/bin:/home/d/jdk/jdk1.8.0_172//bin GOPATH=/home/d/development/go/g1:/home/d/development/go/g2:/home/d/development/go/g3 GOARCH=amd64 GOROOT=/home/d/go CGO_CXXFLAGS_ALLOW=.*" error="exit status 2" func=RunCmdOptionalError name="install scripttools"
github.com/therecipe/qt
github.com/therecipe/qt/gui
# github.com/therecipe/qt/gui
gui.cpp:273:19: fatal error: content: No such file or directory
 #include <content>
                   ^
compilation terminated.

INFO[0424] installing full qt/uitools                   
ERRO[0465] failed to run command                         cmd="go install -p 2 -v github.com/therecipe/qt/uitools" env="GOROOT=/home/d/go CGO_CXXFLAGS_ALLOW=.* CGO_CFLAGS_ALLOW=.* CGO_LDFLAGS_ALLOW=.* GOOS=linux CGO_ENABLED=1 PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/d/app:/home/d/go/bin:/home/d/development/go/g1/bin:/home/d/jdk/jdk1.8.0_172//bin GOPATH=/home/d/development/go/g1:/home/d/development/go/g2:/home/d/development/go/g3 GOARCH=amd64" error="exit status 2" func=RunCmdOptionalError name="install uitools"
github.com/therecipe/qt
github.com/therecipe/qt/gui
# github.com/therecipe/qt/gui
gui.cpp:273:19: fatal error: content: No such file or directory
 #include <content>
                   ^
compilation terminated.

INFO[0465] installing full qt/webengine                 
ERRO[0507] failed to run command                         cmd="go install -p 2 -v github.com/therecipe/qt/webengine" env="GOPATH=/home/d/development/go/g1:/home/d/development/go/g2:/home/d/development/go/g3 GOARCH=amd64 CGO_CFLAGS_ALLOW=.* CGO_LDFLAGS_ALLOW=.* GOOS=linux CGO_ENABLED=1 PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/d/app:/home/d/go/bin:/home/d/development/go/g1/bin:/home/d/jdk/jdk1.8.0_172//bin GOROOT=/home/d/go CGO_CXXFLAGS_ALLOW=.*" error="exit status 2" func=RunCmdOptionalError name="install webengine"
github.com/therecipe/qt
github.com/therecipe/qt/network
github.com/therecipe/qt/gui
# github.com/therecipe/qt/network
network.cpp:92:19: fatal error: content: No such file or directory
 #include <content>
                   ^
compilation terminated.
# github.com/therecipe/qt/gui
gui.cpp:273:19: fatal error: content: No such file or directory
 #include <content>
                   ^
compilation terminated.

INFO[0507] installing full qt/testlib                   
ERRO[0548] failed to run command                         cmd="go install -p 2 -v github.com/therecipe/qt/testlib" env="GOROOT=/home/d/go CGO_CXXFLAGS_ALLOW=.* CGO_CFLAGS_ALLOW=.* CGO_LDFLAGS_ALLOW=.* GOOS=linux CGO_ENABLED=1 PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/d/app:/home/d/go/bin:/home/d/development/go/g1/bin:/home/d/jdk/jdk1.8.0_172//bin GOPATH=/home/d/development/go/g1:/home/d/development/go/g2:/home/d/development/go/g3 GOARCH=amd64" error="exit status 2" func=RunCmdOptionalError name="install testlib"
github.com/therecipe/qt
github.com/therecipe/qt/gui
# github.com/therecipe/qt/gui
gui.cpp:273:19: fatal error: content: No such file or directory
 #include <content>
                   ^
compilation terminated.

INFO[0548] installing full qt/serialport                
INFO[0548] installing full qt/serialbus                 
INFO[0548] installing full qt/printsupport              
ERRO[0592] failed to run command                         cmd="go install -p 2 -v github.com/therecipe/qt/printsupport" env="GOROOT=/home/d/go CGO_CXXFLAGS_ALLOW=.* GOOS=linux CGO_ENABLED=1 PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/d/app:/home/d/go/bin:/home/d/development/go/g1/bin:/home/d/jdk/jdk1.8.0_172//bin GOPATH=/home/d/development/go/g1:/home/d/development/go/g2:/home/d/development/go/g3 GOARCH=amd64 CGO_CFLAGS_ALLOW=.* CGO_LDFLAGS_ALLOW=.*" error="exit status 2" func=RunCmdOptionalError name="install printsupport"
github.com/therecipe/qt
github.com/therecipe/qt/gui
# github.com/therecipe/qt/gui
gui.cpp:273:19: fatal error: content: No such file or directory
 #include <content>
                   ^
compilation terminated.

INFO[0592] installing full qt/designer                  
ERRO[0638] failed to run command                         cmd="go install -p 2 -v github.com/therecipe/qt/designer" env="CGO_CXXFLAGS_ALLOW=.* GOROOT=/home/d/go CGO_ENABLED=1 PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/d/app:/home/d/go/bin:/home/d/development/go/g1/bin:/home/d/jdk/jdk1.8.0_172//bin GOPATH=/home/d/development/go/g1:/home/d/development/go/g2:/home/d/development/go/g3 GOARCH=amd64 CGO_CFLAGS_ALLOW=.* CGO_LDFLAGS_ALLOW=.* GOOS=linux" error="exit status 2" func=RunCmdOptionalError name="install designer"
github.com/therecipe/qt
github.com/therecipe/qt/gui
# github.com/therecipe/qt/gui
gui.cpp:273:19: fatal error: content: No such file or directory
 #include <content>
                   ^
compilation terminated.

INFO[0638] installing full qt/scxml                     
INFO[0638] installing full qt/gamepad                   
INFO[0638] installing full qt/datavisualization         
INFO[0638] installing full qt/charts                    
INFO[0638] installing full qt/speech                    
INFO[0639] installing full qt/quickcontrols2            
INFO[0639] installing full qt/sailfish                  
ERRO[0681] failed to run command                         cmd="go install -p 2 -v github.com/therecipe/qt/sailfish" env="GOROOT=/home/d/go CGO_CXXFLAGS_ALLOW=.* CGO_LDFLAGS_ALLOW=.* GOOS=linux CGO_ENABLED=1 PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/d/app:/home/d/go/bin:/home/d/development/go/g1/bin:/home/d/jdk/jdk1.8.0_172//bin GOPATH=/home/d/development/go/g1:/home/d/development/go/g2:/home/d/development/go/g3 GOARCH=amd64 CGO_CFLAGS_ALLOW=.*" error="exit status 2" func=RunCmdOptionalError name="install sailfish"
github.com/therecipe/qt
github.com/therecipe/qt/network
github.com/therecipe/qt/gui
# github.com/therecipe/qt/network
network.cpp:92:19: fatal error: content: No such file or directory
 #include <content>
                   ^
compilation terminated.
# github.com/therecipe/qt/gui
gui.cpp:273:19: fatal error: content: No such file or directory
 #include <content>
                   ^
compilation terminated.

INFO[0681] installing full qt/webview                   
INFO[0681] installing full qt/remoteobjects             
WARN[0681] failed to install:                           
WARN[0681] androidextras                                
WARN[0681] gui                                          
WARN[0681] network                                      
WARN[0681] xml                                          
WARN[0681] sensors                                      
WARN[0681] widgets                                      
WARN[0681] sql                                          
WARN[0681] qml                                          
WARN[0681] websockets                                   
WARN[0681] xmlpatterns                                  
WARN[0681] bluetooth                                    
WARN[0681] svg                                          
WARN[0681] multimedia                                   
WARN[0681] quick                                        
WARN[0681] help                                         
WARN[0681] scripttools                                  
WARN[0681] uitools                                      
WARN[0681] webengine                                    
WARN[0681] testlib                                      
WARN[0681] printsupport                                 
WARN[0681] designer                                     
WARN[0681] sailfish                                     
INFO[0681] running: 'qtsetup test linux' [docker=false] [vagrant=false] 
INFO[0681] testing qml/application                      
INFO[0690] testing qml/drawer_nav_x                     
INFO[0706] testing qml/gallery                          
INFO[0716] testing quick/calc                           
INFO[0728] testing widgets/line_edits                   
ERRO[0741] failed to run command                         cmd="go build -p 2 -v -ldflags=all=\"-s\" \"-w\" -o /home/d/development/go/g1/src/github.com/therecipe/qt/internal/examples/widgets/line_edits/deploy/linux/line_edits -tags=\"minimal\"" dir=/home/d/development/go/g1/src/github.com/therecipe/qt/internal/examples/widgets/line_edits env="CGO_ENABLED=1 PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/d/app:/home/d/go/bin:/home/d/development/go/g1/bin:/home/d/jdk/jdk1.8.0_172//bin GOPATH=/home/d/development/go/g1:/home/d/development/go/g2:/home/d/development/go/g3 GOARCH=amd64 CGO_CFLAGS_ALLOW=.* GOOS=linux CGO_CXXFLAGS_ALLOW=.* CGO_LDFLAGS_ALLOW=.* GOROOT=/home/d/go" error="exit status 2" func=RunCmd name="build for linux on linux"
github.com/therecipe/qt
github.com/therecipe/qt/core
github.com/therecipe/qt/gui
github.com/therecipe/qt/widgets
# github.com/therecipe/qt/widgets
widgets-minimal.cpp:58:19: fatal error: content: No such file or directory
 #include <content>
                   ^
compilation terminated.

Can you help me? Thanks million!
therecipe commented 6 years ago

Hey

Could you try to apply this patch?

diff --git a/internal/binding/templater/template_cpp.go b/internal/binding/templater/template_cpp.go
index 08b1f62d..7331abb8 100644
--- a/internal/binding/templater/template_cpp.go
+++ b/internal/binding/templater/template_cpp.go
@@ -589,7 +589,8 @@ func preambleCpp(module string, input []byte, mode int, target, tags string) []b
                "QRemoteObjectStringLiterals",
                "ui",
                "QStringList",
-               "QtDwmApiDll":
+               "QtDwmApiDll",
+               "content":
                {
                    continue
                }

Alternatively just blacklist "content" here: https://github.com/therecipe/qt/blob/master/internal/binding/templater/template_cpp.go#L593

This seems to be a bug and I will add the fix to the next commit.

hello-code commented 6 years ago

Thank you! I have use your docker now.

therecipe commented 6 years ago

"content" is now backlisted with: https://github.com/therecipe/qt/commit/2df4248fbc3b38f129e77e6b056b8904c1d9c512