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

usr/bin/ld: skipping incompatible /home/weeds/Qt5.10.0/5.10.0/gcc_64/lib/libQt5MultimediaWidgets.so when searching for -lQt5MultimediaWidgets #655

Closed qianguozheng closed 6 years ago

qianguozheng commented 6 years ago

when I use go run main.go in qt/cmd/qtsetup folder, I got the below false, I got the qt sdk 5.10.0 and install it, everything is ok please help me check where an I wrong ? Thanks

INFO[0000] running: 'qtsetup prep'                      
WARN[0000] failed to create qtrcc symlink in your PATH (/usr/local/go/bin/qtrcc); please use /usr/local/go/bin/qtrcc instead 
WARN[0000] failed to create qtmoc symlink in your PATH (/usr/local/go/bin/qtmoc); please use /usr/local/go/bin/qtmoc instead 
WARN[0000] failed to create qtminimal symlink in your PATH (/usr/local/go/bin/qtminimal); please use /usr/local/go/bin/qtminimal instead 
WARN[0000] failed to create qtdeploy symlink in your PATH (/usr/local/go/bin/qtdeploy); please use /usr/local/go/bin/qtdeploy instead 
INFO[0000] running: 'qtsetup check linux' [docker=false] [vagrant=false] 
INFO[0000] GOOS:                        'linux'         
INFO[0000] GOARCH:                      '386'           
INFO[0000] GOVERSION:                   'go1.10.3'      
INFO[0000] GOROOT:                   *  '/usr/local/go/' 
INFO[0000] GOPATH:                   *  '/usr/local/go' 
INFO[0000] GOBIN:                       '/usr/local/go/bin' 
INFO[0000] QT_HASH:                     '5355937d17e9eee62460706cb9a033180014400e' 
INFO[0000] QT_VERSION:               *  '5.10.0'        
INFO[0000] QT_VERSION_MAJOR:         *  '5.10.0'        
INFO[0000] QT_DIR:                   *  '/home/weeds/Qt5.10.0' 
INFO[0000] QT_STUB:                     'false'         
INFO[0000] QT_DEBUG:                    'false'         
INFO[0000] QT_QMAKE_DIR:                ''              
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] 
INFO[0008] generating full qt/core                      
INFO[0016] generating full qt/androidextras             
INFO[0016] generating full qt/gui                       
INFO[0043] generating full qt/network                   
INFO[0046] generating full qt/xml                       
INFO[0047] generating full qt/dbus                      
INFO[0048] generating full qt/nfc                       
INFO[0048] generating full qt/script                    
INFO[0049] generating full qt/sensors                   
INFO[0051] generating full qt/positioning               
INFO[0052] generating full qt/widgets                   
INFO[0076] generating full qt/sql                       
INFO[0077] generating full qt/qml                       
INFO[0079] generating full qt/websockets                
INFO[0079] generating full qt/xmlpatterns               
INFO[0080] generating full qt/bluetooth                 
INFO[0081] generating full qt/webchannel                
INFO[0081] generating full qt/svg                       
INFO[0082] generating full qt/multimedia                
INFO[0089] generating full qt/quick                     
INFO[0092] generating full qt/help                      
INFO[0095] generating full qt/location                  
INFO[0095] generating full qt/scripttools               
INFO[0096] generating full qt/uitools                   
INFO[0096] generating full qt/webengine                 
INFO[0097] generating full qt/testlib                   
INFO[0098] generating full qt/serialport                
INFO[0098] generating full qt/serialbus                 
INFO[0099] generating full qt/printsupport              
INFO[0101] generating full qt/designer                  
INFO[0103] generating full qt/scxml                     
INFO[0104] generating full qt/gamepad                   
INFO[0105] generating full qt/purchasing                
INFO[0105] generating full qt/datavisualization         
INFO[0107] generating full qt/charts                    
INFO[0111] generating full qt/speech                    
INFO[0112] generating full qt/quickcontrols2            
INFO[0112] generating full qt/sailfish                  
INFO[0112] generating full qt/webview                   
INFO[0112] generating full qt/remoteobjects             
INFO[0112] running: 'qtsetup install linux' [docker=false] [vagrant=false] 
INFO[0112] installing full qt/core                      
ERRO[0147] failed to run command                         cmd="go install -p 4 -v github.com/therecipe/qt/core" env="GOARCH=386 CGO_CXXFLAGS_ALLOW=.* CGO_LDFLAGS_ALLOW=.* CGO_ENABLED=1 GOPATH=/usr/local/go/src GOROOT=/usr/local/go/ CGO_CFLAGS_ALLOW=.* GOOS=linux PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/ar9344/OpenWrt-Toolchain-ar71xx-for-mips_34kc-gcc-4.8-linaro_uClibc-0.9.33.2/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/:/opt/x86/OpenWrt-Toolchain-x86-64_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64/toolchain-x86_64_gcc-4.8-linaro_uClibc-0.9.33.2/bin:/usr/local/go/bin:/opt/ar9344/OpenWrt-Toolchain-ar71xx-for-mips_34kc-gcc-4.8-linaro_uClibc-0.9.33.2/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/:/opt/x86/OpenWrt-Toolchain-x86-64_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64/toolchain-x86_64_gcc-4.8-linaro_uClibc-0.9.33.2/bin:/usr/local/go/bin" error="exit status 2" func=RunCmdOptionalError name="install core"
github.com/therecipe/qt
github.com/therecipe/qt/core
# github.com/therecipe/qt/core
/usr/bin/ld: skipping incompatible /home/weeds/Qt5.10.0/5.10.0/gcc_64/lib/libQt5MultimediaWidgets.so when searching for -lQt5MultimediaWidgets
/usr/bin/ld: cannot find -lQt5MultimediaWidgets
/usr/bin/ld: cannot find -lpulse-mainloop-glib
/usr/bin/ld: cannot find -lpulse
/usr/bin/ld: cannot find -lglib-2.0
/usr/bin/ld: skipping incompatible /home/weeds/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Designer.so when searching for -lQt5Designer
/usr/bin/ld: cannot find -lQt5Designer
/usr/bin/ld: skipping incompatible /home/weeds/Qt5.10.0/5.10.0/gcc_64/lib/libQt5QuickWidgets.so when searching for -lQt5QuickWidgets
/usr/bin/ld: cannot find -lQt5QuickWidgets
/usr/bin/ld: skipping incompatible /home/weeds/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so when searching for -lQt5Widgets
/usr/bin/ld: cannot find -lQt5Widgets
/usr/bin/ld: skipping incompatible /home/weeds/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Multimedia.so when searching for -lQt5Multimedia
/usr/bin/ld: cannot find -lQt5Multimedia
/usr/bin/ld: skipping incompatible /home/weeds/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Quick.so when searching for -lQt5Quick
/usr/bin/ld: cannot find -lQt5Quick
/usr/bin/ld: skipping incompatible /home/weeds/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Gui.so when searching for -lQt5Gui
/usr/bin/ld: cannot find -lQt5Gui
/usr/bin/ld: skipping incompatible /home/weeds/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Qml.so when searching for -lQt5Qml
/usr/bin/ld: cannot find -lQt5Qml
/usr/bin/ld: skipping incompatible /home/weeds/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Network.so when searching for -lQt5Network
/usr/bin/ld: cannot find -lQt5Network
/usr/bin/ld: skipping incompatible /home/weeds/Qt5.10.0/5.10.0/gcc_64/lib/libQt5DBus.so when searching for -lQt5DBus
/usr/bin/ld: cannot find -lQt5DBus
/usr/bin/ld: skipping incompatible /home/weeds/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Xml.so when searching for -lQt5Xml
/usr/bin/ld: cannot find -lQt5Xml
/usr/bin/ld: skipping incompatible /home/weeds/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Test.so when searching for -lQt5Test
/usr/bin/ld: cannot find -lQt5Test
/usr/bin/ld: skipping incompatible /home/weeds/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Core.so when searching for -lQt5Core
/usr/bin/ld: cannot find -lQt5Core
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status

INFO[0147] installing full qt/androidextras             
ERRO[0177] failed to run command                         cmd="go install -p 4 -v github.com/therecipe/qt/androidextras" env="CGO_ENABLED=1 GOPATH=/usr/local/go/src GOARCH=386 CGO_CXXFLAGS_ALLOW=.* CGO_LDFLAGS_ALLOW=.* GOOS=linux PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/ar9344/OpenWrt-Toolchain-ar71xx-for-mips_34kc-gcc-4.8-linaro_uClibc-0.9.33.2/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/:/opt/x86/OpenWrt-Toolchain-x86-64_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64/toolchain-x86_64_gcc-4.8-linaro_uClibc-0.9.33.2/bin:/usr/local/go/bin:/opt/ar9344/OpenWrt-Toolchain-ar71xx-for-mips_34kc-gcc-4.8-linaro_uClibc-0.9.33.2/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/:/opt/x86/OpenWrt-Toolchain-x86-64_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64/toolchain-x86_64_gcc-4.8-linaro_uClibc-0.9.33.2/bin:/usr/local/go/bin GOROOT=/usr/local/go/ CGO_CFLAGS_ALLOW=.*" error="exit status 2" func=RunCmdOptionalError name="install androidextras"
github.com/therecipe/qt
github.com/therecipe/qt/core
# github.com/therecipe/qt/core
/usr/bin/ld: skipping incompatible /home/weeds/Qt5.10.0/5.10.0/gcc_64/lib/libQt5MultimediaWidgets.so when searching for -lQt5MultimediaWidgets
/usr/bin/ld: cannot find -lQt5MultimediaWidgets
/usr/bin/ld: cannot find -lpulse-mainloop-glib
/usr/bin/ld: cannot find -lpulse
/usr/bin/ld: cannot find -lglib-2.0
/usr/bin/ld: skipping incompatible /home/weeds/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Designer.so when searching for -lQt5Designer
/usr/bin/ld: cannot find -lQt5Designer
/usr/bin/ld: skipping incompatible /home/weeds/Qt5.10.0/5.10.0/gcc_64/lib/libQt5QuickWidgets.so when searching for -lQt5QuickWidgets
/usr/bin/ld: cannot find -lQt5QuickWidgets
/usr/bin/ld: skipping incompatible /home/weeds/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so when searching for -lQt5Widgets
/usr/bin/ld: cannot find -lQt5Widgets
/usr/bin/ld: skipping incompatible /home/weeds/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Multimedia.so when searching for -lQt5Multimedia
/usr/bin/ld: cannot find -lQt5Multimedia
/usr/bin/ld: skipping incompatible /home/weeds/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Quick.so when searching for -lQt5Quick
/usr/bin/ld: cannot find -lQt5Quick
/usr/bin/ld: skipping incompatible /home/weeds/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Gui.so when searching for -lQt5Gui
/usr/bin/ld: cannot find -lQt5Gui
/usr/bin/ld: skipping incompatible /home/weeds/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Qml.so when searching for -lQt5Qml
/usr/bin/ld: cannot find -lQt5Qml
/usr/bin/ld: skipping incompatible /home/weeds/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Network.so when searching for -lQt5Network
/usr/bin/ld: cannot find -lQt5Network
/usr/bin/ld: skipping incompatible /home/weeds/Qt5.10.0/5.10.0/gcc_64/lib/libQt5DBus.so when searching for -lQt5DBus
/usr/bin/ld: cannot find -lQt5DBus
/usr/bin/ld: skipping incompatible /home/weeds/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Xml.so when searching for -lQt5Xml
/usr/bin/ld: cannot find -lQt5Xml
/usr/bin/ld: skipping incompatible /home/weeds/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Test.so when searching for -lQt5Test
/usr/bin/ld: cannot find -lQt5Test
/usr/bin/ld: skipping incompatible /home/weeds/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Core.so when searching for -lQt5Core
/usr/bin/ld: cannot find -lQt5Core
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status

INFO[0177] installing full qt/gui                       
ERRO[0207] failed to run command                         cmd="go install -p 4 -v github.com/therecipe/qt/gui" env="CGO_CFLAGS_ALLOW=.* GOOS=linux PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/ar9344/OpenWrt-Toolchain-ar71xx-for-mips_34kc-gcc-4.8-linaro_uClibc-0.9.33.2/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/:/opt/x86/OpenWrt-Toolchain-x86-64_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64/toolchain-x86_64_gcc-4.8-linaro_uClibc-0.9.33.2/bin:/usr/local/go/bin:/opt/ar9344/OpenWrt-Toolchain-ar71xx-for-mips_34kc-gcc-4.8-linaro_uClibc-0.9.33.2/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/:/opt/x86/OpenWrt-Toolchain-x86-64_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64/toolchain-x86_64_gcc-4.8-linaro_uClibc-0.9.33.2/bin:/usr/local/go/bin GOROOT=/usr/local/go/ CGO_CXXFLAGS_ALLOW=.* CGO_LDFLAGS_ALLOW=.* CGO_ENABLED=1 GOPATH=/usr/local/go/src GOARCH=386" error="exit status 2" func=RunCmdOptionalError name="install gui"
github.com/therecipe/qt
github.com/therecipe/qt/core
# github.com/therecipe/qt/core
/usr/bin/ld: skipping incompatible /home/weeds/Qt5.10.0/5.10.0/gcc_64/lib/libQt5MultimediaWidgets.so when searching for -lQt5MultimediaWidgets
/usr/bin/ld: cannot find -lQt5MultimediaWidgets
/usr/bin/ld: cannot find -lpulse-mainloop-glib
/usr/bin/ld: cannot find -lpulse
/usr/bin/ld: cannot find -lglib-2.0
/usr/bin/ld: skipping incompatible /home/weeds/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Designer.so when searching for -lQt5Designer
/usr/bin/ld: cannot find -lQt5Designer
/usr/bin/ld: skipping incompatible /home/weeds/Qt5.10.0/5.10.0/gcc_64/lib/libQt5QuickWidgets.so when searching for -lQt5QuickWidgets
/usr/bin/ld: cannot find -lQt5QuickWidgets
/usr/bin/ld: skipping incompatible /home/weeds/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Widgets.so when searching for -lQt5Widgets
/usr/bin/ld: cannot find -lQt5Widgets
/usr/bin/ld: skipping incompatible /home/weeds/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Multimedia.so when searching for -lQt5Multimedia
/usr/bin/ld: cannot find -lQt5Multimedia
/usr/bin/ld: skipping incompatible /home/weeds/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Quick.so when searching for -lQt5Quick
/usr/bin/ld: cannot find -lQt5Quick
/usr/bin/ld: skipping incompatible /home/weeds/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Gui.so when searching for -lQt5Gui
/usr/bin/ld: cannot find -lQt5Gui
/usr/bin/ld: skipping incompatible /home/weeds/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Qml.so when searching for -lQt5Qml
/usr/bin/ld: cannot find -lQt5Qml
/usr/bin/ld: skipping incompatible /home/weeds/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Network.so when searching for -lQt5Network
/usr/bin/ld: cannot find -lQt5Network
/usr/bin/ld: skipping incompatible /home/weeds/Qt5.10.0/5.10.0/gcc_64/lib/libQt5DBus.so when searching for -lQt5DBus
/usr/bin/ld: cannot find -lQt5DBus
/usr/bin/ld: skipping incompatible /home/weeds/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Xml.so when searching for -lQt5Xml
/usr/bin/ld: cannot find -lQt5Xml
/usr/bin/ld: skipping incompatible /home/weeds/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Test.so when searching for -lQt5Test
/usr/bin/ld: cannot find -lQt5Test
/usr/bin/ld: skipping incompatible /home/weeds/Qt5.10.0/5.10.0/gcc_64/lib/libQt5Core.so when searching for -lQt5Core
/usr/bin/ld: cannot find -lQt5Core
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
hello-code commented 6 years ago

sudo apt-get -y install build-essential libglu1-mesa-dev libpulse-dev libglib2.0-dev

https://github.com/therecipe/qt/wiki/Installation-on-Linux

qianguozheng commented 6 years ago

@hello-code Thanks, but it doesn't work for me.

hello-code commented 6 years ago

@qianguozheng Can you try docker? https://hub.docker.com/r/therecipe/qt/

therecipe commented 6 years ago

@qianguozheng Did you maybe install the 64 bit version of Qt on a 32 bit system? Maybe try to change GOARCH to "amd64" or if you are really using a 32 bit system, try to install the 32 bit version of Qt.

qianguozheng commented 6 years ago

@therecipe Thanks, yes I once use i386 while my environment is amd64, now I have switch to amd64 release version.