Qt: How Build and Install QT on Go 1.8?

Created on 13 Mar 2017  Â·  23Comments  Â·  Source: therecipe/qt

Hello,
i want use QML in Go.
my os is ubuntu 16.10-64bit, and also i have qt creator.

https://github.com/go-qml/qml/issues/180
at this issues , say me then i first need to install github.com/go-qml/qml.

How Build and Install QT on Go 1.8?

please help me.
tank you. :+1:

Most helpful comment

this error of bluetooth.cpp!!

I will look into it.

All 23 comments

Hey

Just follow the linux instructions: https://github.com/therecipe/qt#instructions
(click on "linux" to expand it)

If you already have Qt installed, you may just need to export QT_DIR=path/to/your/qt/installation

After you ran qtsetup, you can either use go build or qtdeploy to compile your applications.
And you can find the qml examples here and here

$ pwd
/home/guest/Qt5.7.0

$ ls
5.7             Docs                 Licenses             MaintenanceTool.ini
components.xml  Examples             MaintenanceTool      network.xml
dist            InstallationLog.txt  MaintenanceTool.dat  Tools

$ QT_DIR=/home/guest/Qt5.7.0

$ qtsetup
qtsetup: command not found

$ export QT_PKG_CONFIG=true

$ sudo apt-get -y install build-essential libgl1-mesa-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version (12.1ubuntu2).
libgl1-mesa-dev is already the newest version (13.0.4-1ubuntu1~16.10~0.1).
The following packages were automatically installed and are no longer required:
  freepats golang-1.6-doc golang-doc gstreamer1.0-plugins-bad-faad
  gstreamer1.0-plugins-bad-videoparsers libbison-dev libde265-0 libfluidsynth1
  libgstreamer-plugins-bad1.0-0 libllvm3.8:i386 libmimic0 libmjpegutils-2.1-0
  libmms0 libmpeg2encpp-2.1-0 libmplex2-2.1-0 libofa0 libsoundtouch1
  libspandsp2 libsrtp0 libvo-aacenc0 libvo-amrwbenc0 libwildmidi-config
  libwildmidi2 libzbar0 linux-headers-4.8.0-37 linux-headers-4.8.0-37-generic
  linux-headers-4.8.0-38 linux-headers-4.8.0-38-generic linux-headers-4.8.0-40
  linux-headers-4.8.0-40-generic linux-image-4.8.0-37-generic
  linux-image-4.8.0-38-generic linux-image-4.8.0-40-generic
  linux-image-extra-4.8.0-37-generic linux-image-extra-4.8.0-38-generic
  linux-image-extra-4.8.0-40-generic linux-signed-image-4.8.0-37-generic
  linux-signed-image-4.8.0-38-generic linux-signed-image-4.8.0-40-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

$ go get -u github.com/therecipe/qt
package github.com/therecipe/qt: directory "/home/guest/go/src/github.com/therecipe/qt" is not using a known version control system

guest@system:~/Qt5.7.0/5.7/Src$ ./configure
+ cd qtbase
+ /home/guest/Qt5.7.0/5.7/Src/qtbase/configure -top-level 
Which edition of Qt do you want to use ?

Type 'c' if you want to use the Commercial Edition.
Type 'o' if you want to use the Open Source Edition.

o


This is the Qt Open Source Edition.

You are licensed to use this software under the terms of
the GNU Lesser General Public License (LGPL) versions 3.
You are also licensed to use this software under the terms of
the GNU General Public License (GPL) versions 2.

Type 'L' to view the GNU Lesser General Public License version 3.
Type 'G' to view the GNU General Public License version 2.
Type 'yes' to accept this license offer.
Type 'no' to decline this license offer.

Do you accept the terms of either license? yes

Creating qmake...
......................................................................................In file included from /home/guest/Qt5.7.0/5.7/Src/qtbase/mkspecs/linux-g++/qplatformdefs.h:83:0,
                 from /home/guest/Qt5.7.0/5.7/Src/qtbase/src/corelib/io/qfilesystemiterator_unix.cpp:40:
/home/guest/Qt5.7.0/5.7/Src/qtbase/src/corelib/io/qfilesystemiterator_unix.cpp: In member function ‘bool QFileSystemIterator::advance(QFileSystemEntry&, QFileSystemMetaData&)’:
/home/guest/Qt5.7.0/5.7/Src/qtbase/mkspecs/linux-g++/../common/posix/qplatformdefs.h:150:35: warning: ‘int readdir_r(DIR*, dirent*, dirent**)’ is deprecated [-Wdeprecated-declarations]
 #define QT_READDIR_R            ::readdir_r
                                   ^
/home/guest/Qt5.7.0/5.7/Src/qtbase/src/corelib/io/qfilesystemiterator_unix.cpp:112:17: note: in expansion of macro ‘QT_READDIR_R’
     lastError = QT_READDIR_R(dir, mt_file.data(), &dirEntry);
                 ^
In file included from /home/guest/Qt5.7.0/5.7/Src/qtbase/mkspecs/linux-g++/qplatformdefs.h:63:0,
                 from /home/guest/Qt5.7.0/5.7/Src/qtbase/src/corelib/io/qfilesystemiterator_unix.cpp:40:
/usr/include/dirent.h:183:12: note: declared here
 extern int readdir_r (DIR *__restrict __dirp,
            ^
In file included from /home/guest/Qt5.7.0/5.7/Src/qtbase/mkspecs/linux-g++/qplatformdefs.h:83:0,
                 from /home/guest/Qt5.7.0/5.7/Src/qtbase/src/corelib/io/qfilesystemiterator_unix.cpp:40:
/home/guest/Qt5.7.0/5.7/Src/qtbase/mkspecs/linux-g++/../common/posix/qplatformdefs.h:150:35: warning: ‘int readdir_r(DIR*, dirent*, dirent**)’ is deprecated [-Wdeprecated-declarations]
 #define QT_READDIR_R            ::readdir_r
                                   ^
/home/guest/Qt5.7.0/5.7/Src/qtbase/src/corelib/io/qfilesystemiterator_unix.cpp:112:17: note: in expansion of macro ‘QT_READDIR_R’
     lastError = QT_READDIR_R(dir, mt_file.data(), &dirEntry);
                 ^
In file included from /home/guest/Qt5.7.0/5.7/Src/qtbase/mkspecs/linux-g++/qplatformdefs.h:63:0,
                 from /home/guest/Qt5.7.0/5.7/Src/qtbase/src/corelib/io/qfilesystemiterator_unix.cpp:40:
/usr/include/dirent.h:183:12: note: declared here
 extern int readdir_r (DIR *__restrict __dirp,
            ^
/home/guest/Qt5.7.0/5.7/Src/qtbase/src/corelib/io/qfilesystemiterator_unix.cpp:112:60: warning: ‘int readdir_r(DIR*, dirent*, dirent**)’ is deprecated [-Wdeprecated-declarations]
     lastError = QT_READDIR_R(dir, mt_file.data(), &dirEntry);
                                                            ^
In file included from /home/guest/Qt5.7.0/5.7/Src/qtbase/mkspecs/linux-g++/qplatformdefs.h:63:0,
                 from /home/guest/Qt5.7.0/5.7/Src/qtbase/src/corelib/io/qfilesystemiterator_unix.cpp:40:
/usr/include/dirent.h:183:12: note: declared here
 extern int readdir_r (DIR *__restrict __dirp,
            ^
...Done.
Running configuration tests...
checking for C++11...  yes.
checking for C++14...  yes.
checking for C++1z...  yes.
checking for default C++ standard edition...  yes.
checking for 64-bit std::atomic...  yes.
checking for sse2...  yes.
checking for sse3...  yes.
checking for ssse3...  yes.
checking for sse4_1...  yes.
checking for sse4_2...  yes.
checking for avx...  yes.
checking for avx2...  yes.
checking for avx512f...  yes.
checking for avx512er...  yes.
checking for avx512cd...  yes.
checking for avx512pf...  yes.
checking for avx512dq...  yes.
checking for avx512bw...  yes.
checking for avx512vl...  yes.
checking for avx512ifma...  yes.
checking for avx512vbmi...  yes.
checking for ipc_sysv...  yes.
checking for zlib...  yes.
checking for mtdev...  no.
checking for libjpeg...  yes.
checking for libpng...  yes.
checking for libdl...  yes.
checking for DB2...  no.
checking for InterBase...  no.
checking for MySQL (thread-safe)...  no.
checking for MySQL (thread-unsafe)...  yes.
checking for OCI...  no.
checking for ODBC...  no.
checking for iODBC...  no.
checking for PostgreSQL...  no.
checking for SQLite2...  yes.
checking for TDS...  no.
checking for NIS...  yes.
checking for Cups...  no.
checking for POSIX iconv...  yes.
checking for D-Bus...  yes.
checking for libproxy...  no.
checking for Glib...  yes.
checking for ICU...  yes.
checking for PulseAudio...  no.
checking for OpenGL...  yes.
checking for FontConfig...  yes.
checking for libudev...  no.
checking for evdev...  yes.
checking for tslib...  no.
checking for xkbcommon...  yes.
checking for XLib...  yes.
checking for Xrender...  yes.
checking for XInput2...  yes.
checking for xcb...  yes.
checking for xcb-syslibs...  no.
The test for linking against libxcb and support libraries failed!
 You might need to install dependency packages, or pass -qt-xcb.
 See src/plugins/platforms/xcb/README.
guest@system:~/Qt5.7.0/5.7/Src$ ls
coin                LICENSE.GPLv3               qtbase          qtgamepad           qtpurchasing      qtserialport       qtwebengine
configure           LICENSE.LGPLv21             qtcanvas3d      qtgraphicaleffects  qtquickcontrols   qtsvg              qtwebsockets
configure.bat       LICENSE.LGPLv3              qtcharts        qtimageformats      qtquickcontrols2  qttools            qtwebview
gnuwin32            LICENSE.PREVIEW.COMMERCIAL  qtconnectivity  qtlocation          qtscript          qttranslations     qtwinextras
LGPL_EXCEPTION.txt  qt3d                        qtdatavis3d     qtmacextras         qtscxml           qtvirtualkeyboard  qtx11extras
LICENSE.FDL         qtactiveqt                  qtdeclarative   qtmultimedia        qtsensors         qtwayland          qtxmlpatterns
LICENSE.GPLv2       qtandroidextras             qtdoc           qt.pro              qtserialbus       qtwebchannel       README
guest@system:~/Qt5.7.0/5.7/Src$ qmake
Info: creating super cache file /home/guest/Qt5.7.0/5.7/Src/.qmake.super
guest@system:~/Qt5.7.0/5.7/Src$ make
cd qtbase/ && ( test -e Makefile || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /home/guest/Qt5.7.0/5.7/Src/qtbase/qtbase.pro -o Makefile ) && make -f Makefile 
Info: creating cache file /home/guest/Qt5.7.0/5.7/Src/qtbase/.qmake.cache
make[1]: Entering directory '/home/guest/Qt5.7.0/5.7/Src/qtbase'
cd src/ && ( test -e Makefile || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /home/guest/Qt5.7.0/5.7/Src/qtbase/src/src.pro -o Makefile ) && make -f Makefile 
make[2]: Entering directory '/home/guest/Qt5.7.0/5.7/Src/qtbase/src'
cd tools/bootstrap/ && ( test -e Makefile || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /home/guest/Qt5.7.0/5.7/Src/qtbase/src/tools/bootstrap/bootstrap.pro -o Makefile ) && make -f Makefile 
make[3]: Entering directory '/home/guest/Qt5.7.0/5.7/Src/qtbase/src/tools/bootstrap'
g++ -c -g -O2 -fdebug-prefix-map=/build/qtbase-opensource-src-B0ETYQ/qtbase-opensource-src-5.6.1+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -ffunction-sections -O2 -fPIC -std=c++1z -fno-exceptions -Wall -W -D_REENTRANT -DQT_NO_TSLIB -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE -DQT_NO_CAST_TO_ASCII -DQT_NO_CODECS -DQT_NO_DATASTREAM -DQT_NO_LIBRARY -DQT_NO_QOBJECT -DQT_NO_SYSTEMLOCALE -DQT_NO_THREAD -DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE -DQT_NO_DEPRECATED -DQT_NO_TRANSLATION -DQT_CRYPTOGRAPHICHASH_ONLY_SHA1 -DQT_NO_FOREACH -DQT_NO_CAST_FROM_ASCII -DQT_BUILD_BOOTSTRAP_LIB -DQT_BUILDING_QT -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -I. -I../../../include -I../../../include/QtCore -I../../../include/QtCore/5.7.0 -I../../../include/QtCore/5.7.0/QtCore -I../../../include/QtXml -I../../../include/QtXml/5.7.0 -I../../../include/QtXml/5.7.0/QtXml -I../../../mkspecs/linux-g++-64 -o .obj/qlatincodec.o ../../corelib/codecs/qlatincodec.cpp
In file included from ../../../include/QtCore/../../src/corelib/global/qglobal.h:60:0,
                 from ../../../include/QtCore/qglobal.h:1,
                 from ../../../include/QtCore/../../src/corelib/tools/qchar.h:43,
                 from ../../../include/QtCore/qchar.h:1,
                 from ../../../include/QtCore/../../src/corelib/tools/qstring.h:48,
                 from ../../../include/QtCore/qstring.h:1,
                 from ../../../include/QtCore/../../src/corelib/codecs/qtextcodec.h:43,
                 from ../../../include/QtCore/qtextcodec.h:1,
                 from ../../corelib/codecs/qlatincodec_p.h:54,
                 from ../../corelib/codecs/qlatincodec.cpp:40:
../../../include/QtCore/qconfig.h:1:46: fatal error: ../../src/corelib/global/qconfig.h: No such file or directory
compilation terminated.
Makefile:656: recipe for target '.obj/qlatincodec.o' failed
make[3]: *** [.obj/qlatincodec.o] Error 1
make[3]: Leaving directory '/home/guest/Qt5.7.0/5.7/Src/qtbase/src/tools/bootstrap'
Makefile:63: recipe for target 'sub-bootstrap-make_first' failed
make[2]: *** [sub-bootstrap-make_first] Error 2
make[2]: Leaving directory '/home/guest/Qt5.7.0/5.7/Src/qtbase/src'
Makefile:45: recipe for target 'sub-src-make_first' failed
make[1]: *** [sub-src-make_first] Error 2
make[1]: Leaving directory '/home/guest/Qt5.7.0/5.7/Src/qtbase'
Makefile:77: recipe for target 'module-qtbase-make_first' failed
make: *** [module-qtbase-make_first] Error 2

$ sudo find / -name qtdeploy
/home/guest/go/src/github.com/therecipe/qt/cmd/qtdeploy(is a dir,not file)


$ cd /home/guest/go/src/github.com/therecipe/qt/cmd/qtdeploy

$ ls
main.go  qtdeploy.go

$ go build
../../internal/cmd/cmd.go:12:2: cannot find package "github.com/Sirupsen/logrus" in any of:
    /usr/lib/go-1.8/src/github.com/Sirupsen/logrus (from $GOROOT)
    /home/guest/go/src/github.com/Sirupsen/logrus (from $GOPATH)

$ go get github.com/Sirupsen/logrus

$ go build

$ ls
main.go  qtdeploy  qtdeploy.go

$ ./qtdeploy
ERRO[0000] failed to run command                         cmd="/home/guest/Qt5.8.0/5.8/gcc_64/bin/rcc -project -o /home/guest/go/src/github.com/therecipe/qt/cmd/qtdeploy/rcc.qrc" env= error="fork/exec /home/guest/Qt5.8.0/5.8/gcc_64/bin/rcc: no such file or directory" func=RunCmd name="execute rcc.1 on linux"


Now i have Qt5.7.0
but in error text say /home/guest/Qt5.8.0/5.8/gcc_64/bin/rcc: no such file or directory
so i need Qt5.8.0?

Ah, yes if you want to use an older Qt version, you need to also export QT_VERSION=5.7.0

so i need Qt5.8.0?

no, just export QT_VERSION and it should work

guest@system:~/go/src/github.com/therecipe/qt/cmd/qtdeploy$ export QT_VERSION=5.7.0
guest@system:~/go/src/github.com/therecipe/qt/cmd/qtdeploy$ ./qtdeploy

ERRO[0009] failed to load /home/guest/Qt5.7.0/Docs/Qt-5.7/qtdatavisualization/qtdatavisualization.index  error="open /home/guest/Qt5.7.0/Docs/Qt-5.7/qtdatavisualization/qtdatavisualization.index: no such file or directory"
ERRO[0009] failed to load /home/guest/Qt5.7.0/Docs/Qt-5.7/qtcharts/qtcharts.index  error="open /home/guest/Qt5.7.0/Docs/Qt-5.7/qtcharts/qtcharts.index: no such file or directory"
ERRO[0009] failed to load /home/guest/Qt5.7.0/Docs/Qt-5.7/qtspeech/qtspeech.index  error="open /home/guest/Qt5.7.0/Docs/Qt-5.7/qtspeech/qtspeech.index: no such file or directory"
WARN[0009] parser.LoadModule                             0_module=Speech error=EOF
ERRO[0011] failed to run command                         cmd="cp -R plugins /home/guest/go/src/github.com/therecipe/qt/cmd/qtdeploy/deploy/linux" env= error="exit status 1" func=RunCmd name="copy plugins dir for desktop on linux"
cp: cannot stat 'plugins': No such file or directory


this say then /home/guest/Qt5.7.0/Docs/Qt-5.7/qtdatavisualization/qtdatavisualization.index not exist.

guest@system:~/Qt5.7.0/Docs/Qt-5.7$ pwd
/home/guest/Qt5.7.0/Docs/Qt-5.7
guest@system:~/Qt5.7.0/Docs/Qt-5.7$ ls
activeqt             qtcore                  qtlinguist             qtprintsupport        qtscripttools      qtwebchannel
activeqt.qch         qtcore.qch              qtlinguist.qch         qtprintsupport.qch    qtscripttools.qch  qtwebchannel.qch
qdoc                 qtdbus                  qtlocation             qtpurchasing          qtscxml            qtwebengine
qdoc.qch             qtdbus.qch              qtlocation.qch         qtpurchasing.qch      qtscxml.qch        qtwebengine.qch
qmake                qtdesigner              qtmacextras            qtqml                 qtsensors          qtwebsockets
qmake.qch            qtdesigner.qch          qtmacextras.qch        qtqml.qch             qtsensors.qch      qtwebsockets.qch
qt3d                 qtdoc                   qtmultimedia           qtquick               qtserialbus        qtwebview
qt3d.qch             qtdoc.qch               qtmultimedia.qch       qtquickcontrols       qtserialbus.qch    qtwebview.qch
qtandroidextras      qtgamepad               qtnetwork              qtquickcontrols2      qtserialport       qtwidgets
qtandroidextras.qch  qtgamepad.qch           qtnetwork.qch          qtquickcontrols2.qch  qtserialport.qch   qtwidgets.qch
qtassistant          qtgraphicaleffects      qtnfc                  qtquickcontrols.qch   qtsql              qtwinextras
qtassistant.qch      qtgraphicaleffects.qch  qtnfc.qch              qtquickdialogs        qtsql.qch          qtwinextras.qch
qtbluetooth          qtgui                   qtopengl               qtquickdialogs.qch    qtsvg              qtx11extras
qtbluetooth.qch      qtgui.qch               qtopengl.qch           qtquickextras         qtsvg.qch          qtx11extras.qch
qtcanvas3d           qthelp                  qtplatformheaders      qtquickextras.qch     qttestlib          qtxml
qtcanvas3d.qch       qthelp.qch              qtplatformheaders.qch  qtquick.qch           qttestlib.qch      qtxmlpatterns
qtconcurrent         qtimageformats          qtpositioning          qtscript              qtuitools          qtxmlpatterns.qch
qtconcurrent.qch     qtimageformats.qch      qtpositioning.qch      qtscript.qch          qtuitools.qch      qtxml.qch

could you run this:
go install github.com/therecipe/qt/cmd/...
and then
$GOPATH/bin/qtsetup ?

guest@system:~/Qt5.7.0/Docs/Qt-5.7$ go install github.com/therecipe/qt/cmd/...
guest@system:~/Qt5.7.0/Docs/Qt-5.7$ $GOPATH/bin/qtsetup
INFO[0000] running: 'qtsetup prep'                      
WARN[0000] failed to create qtrcc symlink in your PATH (/usr/lib/go-1.8/bin/qtrcc); please use /home/guest/go/bin/qtrcc instead 
WARN[0000] failed to create qtmoc symlink in your PATH (/usr/lib/go-1.8/bin/qtmoc); please use /home/guest/go/bin/qtmoc instead 
WARN[0000] failed to create qtminimal symlink in your PATH (/usr/lib/go-1.8/bin/qtminimal); please use /home/guest/go/bin/qtminimal instead 
WARN[0000] failed to create qtdeploy symlink in your PATH (/usr/lib/go-1.8/bin/qtdeploy); please use /home/guest/go/bin/qtdeploy instead 
INFO[0000] running: 'qtsetup check desktop'             
ERRO[0000] failed to run command                         cmd="git rev-parse --verify HEAD" env= error="exit status 128" func=RunCmdOptional name="get git hash"
fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

INFO[0000] GOOS:                        'linux'         
INFO[0000] GOARCH:                      'amd64'         
INFO[0000] GOVERSION:                   'go1.8'         
INFO[0000] GOROOT:                      '/usr/lib/go-1.8' 
INFO[0000] GOPATH:                   *  '/home/guest/go' 
INFO[0000] GOBIN:                       '/home/guest/go/bin' 
INFO[0000] QT_HASH:                     'fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).' 
INFO[0000] QT_VERSION:                  '5.8.0'         
INFO[0000] QT_VERSION_MAJOR:            '5.8'           
INFO[0000] QT_DIR:                      '/home/guest/Qt5.8.0' 
PANI[0000] failed to find QT_DIR (/home/guest/Qt5.8.0)   error="open /home/guest/Qt5.8.0: no such file or directory"
panic: (*logrus.Entry) (0x745a80,0xc4200d85a0)

goroutine 1 [running]:
github.com/Sirupsen/logrus.Entry.log(0xc420018190, 0xc4200cd0e0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x40e200, ...)
    /home/guest/go/src/github.com/Sirupsen/logrus/entry.go:124 +0x340
github.com/Sirupsen/logrus.(*Entry).Panic(0xc4200d8550, 0xc4200537d8, 0x1, 0x1)
    /home/guest/go/src/github.com/Sirupsen/logrus/entry.go:169 +0x11b
github.com/Sirupsen/logrus.(*Entry).Panicf(0xc4200d8550, 0x756d47, 0x16, 0xc420053af8, 0x2, 0x2)
    /home/guest/go/src/github.com/Sirupsen/logrus/entry.go:217 +0xf8
github.com/therecipe/qt/internal/cmd/setup.Check(0x74fd62, 0x7)
    /home/guest/go/src/github.com/therecipe/qt/internal/cmd/setup/check.go:115 +0x15d4
github.com/therecipe/qt/internal/cmd/setup.Setup(0x74eb27, 0x4, 0x74fd62, 0x7)
    /home/guest/go/src/github.com/therecipe/qt/internal/cmd/setup/setup.go:7 +0xc7
main.main()
    /home/guest/go/src/github.com/therecipe/qt/cmd/qtsetup/qtsetup.go:45 +0x121
guest@system:~/Qt5.7.0/Docs/Qt-5.7$ export QT_VERSION=5.7.0
guest@system:~/Qt5.7.0/Docs/Qt-5.7$ $GOPATH/bin/qtsetup
INFO[0000] running: 'qtsetup prep'                      
WARN[0000] failed to create qtrcc symlink in your PATH (/usr/lib/go-1.8/bin/qtrcc); please use /home/guest/go/bin/qtrcc instead 
WARN[0000] failed to create qtmoc symlink in your PATH (/usr/lib/go-1.8/bin/qtmoc); please use /home/guest/go/bin/qtmoc instead 
WARN[0000] failed to create qtminimal symlink in your PATH (/usr/lib/go-1.8/bin/qtminimal); please use /home/guest/go/bin/qtminimal instead 
WARN[0000] failed to create qtdeploy symlink in your PATH (/usr/lib/go-1.8/bin/qtdeploy); please use /home/guest/go/bin/qtdeploy instead 
INFO[0000] running: 'qtsetup check desktop'             
ERRO[0000] failed to run command                         cmd="git rev-parse --verify HEAD" env= error="exit status 128" func=RunCmdOptional name="get git hash"
fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

INFO[0000] GOOS:                        'linux'         
INFO[0000] GOARCH:                      'amd64'         
INFO[0000] GOVERSION:                   'go1.8'         
INFO[0000] GOROOT:                      '/usr/lib/go-1.8' 
INFO[0000] GOPATH:                   *  '/home/guest/go' 
INFO[0000] GOBIN:                       '/home/guest/go/bin' 
INFO[0000] QT_HASH:                     'fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).' 
INFO[0000] QT_VERSION:               *  '5.7.0'         
INFO[0000] QT_VERSION_MAJOR:            '5.7'           
INFO[0000] QT_DIR:                      '/home/guest/Qt5.7.0' 
INFO[0000] QT_STUB:                     'false'         
INFO[0000] QT_DEBUG:                    'false'         
INFO[0000] QT_DISTRO:                   'ubuntu'        
INFO[0000] QT_PKG_CONFIG:               'false'         
INFO[0000] running: 'qtsetup generate desktop'          
ERRO[0005] failed to load /home/guest/Qt5.7.0/Docs/Qt-5.7/qtdatavisualization/qtdatavisualization.index  error="open /home/guest/Qt5.7.0/Docs/Qt-5.7/qtdatavisualization/qtdatavisualization.index: no such file or directory"
ERRO[0005] failed to load /home/guest/Qt5.7.0/Docs/Qt-5.7/qtcharts/qtcharts.index  error="open /home/guest/Qt5.7.0/Docs/Qt-5.7/qtcharts/qtcharts.index: no such file or directory"
ERRO[0005] failed to load /home/guest/Qt5.7.0/Docs/Qt-5.7/qtspeech/qtspeech.index  error="open /home/guest/Qt5.7.0/Docs/Qt-5.7/qtspeech/qtspeech.index: no such file or directory"
WARN[0005] parser.LoadModule                             0_module=Speech error=EOF
INFO[0005] generating full qt/core                      
INFO[0009] generating full qt/androidextras             
INFO[0010] generating full qt/gui                       
INFO[0015] generating full qt/network                   
INFO[0016] generating full qt/xml                       
INFO[0017] generating full qt/dbus                      
INFO[0017] generating full qt/nfc                       
INFO[0017] generating full qt/script                    
INFO[0017] generating full qt/sensors                   
INFO[0018] generating full qt/positioning               
INFO[0019] generating full qt/widgets     
.
.
.
.

.

yeah, you probably should export QT_VERSION and QT_DIR in your .profile / .bash_profile
as these infos will be also needed later

why every time just press export QT_VERSION=5.7.0 ?

..........
INFO[0248] installing full qt/sql                       
INFO[0257] installing full qt/qml                       
INFO[0263] installing full qt/websockets                
INFO[0266] installing full qt/xmlpatterns               
INFO[0269] installing full qt/bluetooth                 
ERRO[0271] failed to run command                         cmd="go install -p 8 -v github.com/therecipe/qt/bluetooth" env= error="exit status 2" func=RunCmdOptionalError name="install bluetooth"
github.com/therecipe/qt/bluetooth
# github.com/therecipe/qt/bluetooth
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp: In function ‘long long int OSXBluetooth_OSXBluetooth_Qt_OS_limit(long long int, long long int)’:
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:50:9: error: ‘OSXBluetooth’ has not been declared
  return OSXBluetooth::qt_OS_limit(static_cast<QSysInfo::MacVersion>(osxVersion), static_cast<QSysInfo::MacVersion>(iosVersion));
         ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp: At global scope:
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:63:59: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* OSXBluetooth___extract_services_uuids_newList(void* ptr)
                                                           ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:272:72: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothDeviceDiscoveryAgent___discoveredDevices_newList(void* ptr)
                                                                        ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:287:63: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothDeviceDiscoveryAgent___children_newList(void* ptr)
                                                               ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:302:75: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothDeviceDiscoveryAgent___dynamicPropertyNames_newList(void* ptr)
                                                                           ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:317:68: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothDeviceDiscoveryAgent___findChildren_newList2(void* ptr)
                                                                    ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:332:68: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothDeviceDiscoveryAgent___findChildren_newList3(void* ptr)
                                                                    ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:347:67: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothDeviceDiscoveryAgent___findChildren_newList(void* ptr)
                                                                   ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:512:57: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothDeviceInfo___serviceUuids_newList(void* ptr)
                                                         ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:527:66: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothDeviceInfo___setServiceUuids_uuids_newList(void* ptr)
                                                                  ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:709:70: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void QBluetoothLocalDevice_DestroyQBluetoothLocalDeviceDefault(void* ptr)
                                                                      ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:789:56: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothLocalDevice___allDevices_newList(void* ptr)
                                                        ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:804:62: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothLocalDevice___connectedDevices_newList(void* ptr)
                                                              ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:819:54: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothLocalDevice___children_newList(void* ptr)
                                                      ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:834:66: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothLocalDevice___dynamicPropertyNames_newList(void* ptr)
                                                                  ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:849:59: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothLocalDevice___findChildren_newList2(void* ptr)
                                                           ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:864:59: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothLocalDevice___findChildren_newList3(void* ptr)
                                                           ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:879:58: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothLocalDevice___findChildren_newList(void* ptr)
                                                          ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:1068:49: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothServer___children_newList(void* ptr)
                                                 ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:1083:61: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothServer___dynamicPropertyNames_newList(void* ptr)
                                                             ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:1098:54: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothServer___findChildren_newList2(void* ptr)
                                                      ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:1113:54: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothServer___findChildren_newList3(void* ptr)
                                                      ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:1128:53: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothServer___findChildren_newList(void* ptr)
                                                     ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:1363:74: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothServiceDiscoveryAgent___discoveredServices_newList(void* ptr)
                                                                          ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:1378:75: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothServiceDiscoveryAgent___setUuidFilter_uuids_newList(void* ptr)
                                                                           ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:1393:66: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothServiceDiscoveryAgent___uuidFilter_newList(void* ptr)
                                                                  ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:1408:64: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothServiceDiscoveryAgent___children_newList(void* ptr)
                                                                ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:1423:76: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothServiceDiscoveryAgent___dynamicPropertyNames_newList(void* ptr)
                                                                            ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:1438:69: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothServiceDiscoveryAgent___findChildren_newList2(void* ptr)
                                                                     ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:1453:69: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothServiceDiscoveryAgent___findChildren_newList3(void* ptr)
                                                                     ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:1468:68: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothServiceDiscoveryAgent___findChildren_newList(void* ptr)
                                                                    ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:1688:63: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothServiceInfo___serviceClassUuids_newList(void* ptr)
                                                               ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:1963:60: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void QBluetoothSocket_DestroyQBluetoothSocketDefault(void* ptr)
                                                            ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:1978:49: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothSocket___children_newList(void* ptr)
                                                 ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:1993:61: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothSocket___dynamicPropertyNames_newList(void* ptr)
                                                             ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:2008:54: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothSocket___findChildren_newList2(void* ptr)
                                                      ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:2023:54: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothSocket___findChildren_newList3(void* ptr)
                                                      ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:2038:53: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothSocket___findChildren_newList(void* ptr)
                                                     ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:2191:58: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothTransferManager___children_newList(void* ptr)
                                                          ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:2206:70: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothTransferManager___dynamicPropertyNames_newList(void* ptr)
                                                                      ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:2221:63: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothTransferManager___findChildren_newList2(void* ptr)
                                                               ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:2236:63: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothTransferManager___findChildren_newList3(void* ptr)
                                                               ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:2251:62: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothTransferManager___findChildren_newList(void* ptr)
                                                              ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:2441:56: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothTransferReply___children_newList(void* ptr)
                                                        ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:2456:68: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothTransferReply___dynamicPropertyNames_newList(void* ptr)
                                                                    ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:2471:61: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothTransferReply___findChildren_newList2(void* ptr)
                                                             ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:2486:61: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothTransferReply___findChildren_newList3(void* ptr)
                                                             ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:2501:60: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothTransferReply___findChildren_newList(void* ptr)
                                                            ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:2656:56: warning: unused parameter ‘ok’ [-Wunused-parameter]
 unsigned short QBluetoothUuid_ToUInt16(void* ptr, char ok)
                                                        ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:2661:54: warning: unused parameter ‘ok’ [-Wunused-parameter]
 unsigned int QBluetoothUuid_ToUInt32(void* ptr, char ok)
                                                      ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:2771:58: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyAdvertisingData___services_newList(void* ptr)
                                                          ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:2786:70: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyAdvertisingData___setServices_services_newList(void* ptr)
                                                                      ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:2901:60: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyCharacteristic___descriptors_newList(void* ptr)
                                                            ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:3021:64: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyCharacteristicData___descriptors_newList(void* ptr)
                                                                ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:3036:79: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyCharacteristicData___setDescriptors_descriptors_newList(void* ptr)
                                                                               ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:3339:53: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyController___services_newList(void* ptr)
                                                     ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:3354:53: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyController___children_newList(void* ptr)
                                                     ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:3369:65: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyController___dynamicPropertyNames_newList(void* ptr)
                                                                 ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:3384:58: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyController___findChildren_newList2(void* ptr)
                                                          ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:3399:58: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyController___findChildren_newList3(void* ptr)
                                                          ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:3414:57: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyController___findChildren_newList(void* ptr)
                                                         ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:3802:57: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyService___characteristics_newList(void* ptr)
                                                         ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:3817:58: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyService___includedServices_newList(void* ptr)
                                                          ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:3832:50: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyService___children_newList(void* ptr)
                                                  ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:3847:62: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyService___dynamicPropertyNames_newList(void* ptr)
                                                              ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:3862:55: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyService___findChildren_newList2(void* ptr)
                                                       ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:3877:55: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyService___findChildren_newList3(void* ptr)
                                                       ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:3892:54: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyService___findChildren_newList(void* ptr)
                                                      ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:4027:61: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyServiceData___characteristics_newList(void* ptr)
                                                             ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:4042:62: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyServiceData___includedServices_newList(void* ptr)
                                                              ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:4057:80: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyServiceData___setCharacteristics_characteristics_newList(void* ptr)
                                                                                ^
../../../go/src/github.com/therecipe/qt/bluetooth/bluetooth.cpp:4072:74: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyServiceData___setIncludedServices_services_newList(void* ptr)
                                                                          ^

INFO[0271] installing full qt/webchannel                
INFO[0273] installing full qt/svg                    
.........

why say may lines about Error(cmd="go install -p 8 -v github.com/therecipe/qt/bluetooth")?
errors not problems?

Install Done. and all test is right(ok). :+1:

but, failed to install the following 4 package(s):

ERRO[0005] bluetooth                                    
ERRO[0005] datavisualization                            
ERRO[0005] charts                                       
ERRO[0005] speech                                       
ERRO[0005] you may want to run 'qtsetup install desktop' if you depend on these package(s) 

Most of these are just warnings: warning: unused parameter ‘ptr’ that's why the log is so long.

but, failed to install the following 4 package(s):

datavisualization and charts

are GPL, that's why they are missing, as you would need to explicitly build them first

speech

is a new module in 5.8

bluetooth

should work, but there is probably a bug somewhere (I will put it on my todo list)

Do you need these?
If not, then you can simply ignore that.

not need, but may will need.
so is better then now i fix this.
may fix this? how can?

updated my previous response ^
(there not much that you can do for these 4 currently, beside building dataviz and charts)

may help me?
this say many bug of cpp files.

report bug to http://github.com/therecipe/qt/bluetooth , .... ?

just keep this issue open, and I will write you when I looked into it in detail (or fixed it)

may help me?
this say many bug of cpp files.

sorry, I have no experience with go-qml, so I can't help you with that
but you can use qml with this binding as well, maybe take a look here

https://github.com/therecipe/qt/bluetooth

this page is 404.

  • owner of this is you?

yes
it's here https://github.com/therecipe/qt/tree/master/bluetooth
(there is no separate repo)

so i just report bug to you. :+1: :-D :-)

did the examples show up after the installation has finished ?
and can you use qtdeploy to build an example ?

yes
it's here https://github.com/therecipe/qt/tree/master/bluetooth
(there is no separate repo)

guest@system:~/go/src/github.com/therecipe/qt/bluetooth$ go build

# github.com/therecipe/qt/bluetooth
./bluetooth.cpp: In function ‘long long int OSXBluetooth_OSXBluetooth_Qt_OS_limit(long long int, long long int)’:
./bluetooth.cpp:50:9: error: ‘OSXBluetooth’ has not been declared
  return OSXBluetooth::qt_OS_limit(static_cast<QSysInfo::MacVersion>(osxVersion), static_cast<QSysInfo::MacVersion>(iosVersion));
         ^
./bluetooth.cpp: At global scope:
./bluetooth.cpp:63:59: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* OSXBluetooth___extract_services_uuids_newList(void* ptr)
                                                           ^
./bluetooth.cpp:272:72: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothDeviceDiscoveryAgent___discoveredDevices_newList(void* ptr)
                                                                        ^
./bluetooth.cpp:287:63: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothDeviceDiscoveryAgent___children_newList(void* ptr)
                                                               ^
./bluetooth.cpp:302:75: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothDeviceDiscoveryAgent___dynamicPropertyNames_newList(void* ptr)
                                                                           ^
./bluetooth.cpp:317:68: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothDeviceDiscoveryAgent___findChildren_newList2(void* ptr)
                                                                    ^
./bluetooth.cpp:332:68: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothDeviceDiscoveryAgent___findChildren_newList3(void* ptr)
                                                                    ^
./bluetooth.cpp:347:67: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothDeviceDiscoveryAgent___findChildren_newList(void* ptr)
                                                                   ^
./bluetooth.cpp:512:57: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothDeviceInfo___serviceUuids_newList(void* ptr)
                                                         ^
./bluetooth.cpp:527:66: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothDeviceInfo___setServiceUuids_uuids_newList(void* ptr)
                                                                  ^
./bluetooth.cpp:709:70: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void QBluetoothLocalDevice_DestroyQBluetoothLocalDeviceDefault(void* ptr)
                                                                      ^
./bluetooth.cpp:789:56: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothLocalDevice___allDevices_newList(void* ptr)
                                                        ^
./bluetooth.cpp:804:62: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothLocalDevice___connectedDevices_newList(void* ptr)
                                                              ^
./bluetooth.cpp:819:54: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothLocalDevice___children_newList(void* ptr)
                                                      ^
./bluetooth.cpp:834:66: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothLocalDevice___dynamicPropertyNames_newList(void* ptr)
                                                                  ^
./bluetooth.cpp:849:59: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothLocalDevice___findChildren_newList2(void* ptr)
                                                           ^
./bluetooth.cpp:864:59: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothLocalDevice___findChildren_newList3(void* ptr)
                                                           ^
./bluetooth.cpp:879:58: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothLocalDevice___findChildren_newList(void* ptr)
                                                          ^
./bluetooth.cpp:1068:49: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothServer___children_newList(void* ptr)
                                                 ^
./bluetooth.cpp:1083:61: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothServer___dynamicPropertyNames_newList(void* ptr)
                                                             ^
./bluetooth.cpp:1098:54: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothServer___findChildren_newList2(void* ptr)
                                                      ^
./bluetooth.cpp:1113:54: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothServer___findChildren_newList3(void* ptr)
                                                      ^
./bluetooth.cpp:1128:53: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothServer___findChildren_newList(void* ptr)
                                                     ^
./bluetooth.cpp:1363:74: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothServiceDiscoveryAgent___discoveredServices_newList(void* ptr)
                                                                          ^
./bluetooth.cpp:1378:75: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothServiceDiscoveryAgent___setUuidFilter_uuids_newList(void* ptr)
                                                                           ^
./bluetooth.cpp:1393:66: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothServiceDiscoveryAgent___uuidFilter_newList(void* ptr)
                                                                  ^
./bluetooth.cpp:1408:64: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothServiceDiscoveryAgent___children_newList(void* ptr)
                                                                ^
./bluetooth.cpp:1423:76: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothServiceDiscoveryAgent___dynamicPropertyNames_newList(void* ptr)
                                                                            ^
./bluetooth.cpp:1438:69: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothServiceDiscoveryAgent___findChildren_newList2(void* ptr)
                                                                     ^
./bluetooth.cpp:1453:69: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothServiceDiscoveryAgent___findChildren_newList3(void* ptr)
                                                                     ^
./bluetooth.cpp:1468:68: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothServiceDiscoveryAgent___findChildren_newList(void* ptr)
                                                                    ^
./bluetooth.cpp:1688:63: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothServiceInfo___serviceClassUuids_newList(void* ptr)
                                                               ^
./bluetooth.cpp:1963:60: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void QBluetoothSocket_DestroyQBluetoothSocketDefault(void* ptr)
                                                            ^
./bluetooth.cpp:1978:49: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothSocket___children_newList(void* ptr)
                                                 ^
./bluetooth.cpp:1993:61: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothSocket___dynamicPropertyNames_newList(void* ptr)
                                                             ^
./bluetooth.cpp:2008:54: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothSocket___findChildren_newList2(void* ptr)
                                                      ^
./bluetooth.cpp:2023:54: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothSocket___findChildren_newList3(void* ptr)
                                                      ^
./bluetooth.cpp:2038:53: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothSocket___findChildren_newList(void* ptr)
                                                     ^
./bluetooth.cpp:2191:58: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothTransferManager___children_newList(void* ptr)
                                                          ^
./bluetooth.cpp:2206:70: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothTransferManager___dynamicPropertyNames_newList(void* ptr)
                                                                      ^
./bluetooth.cpp:2221:63: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothTransferManager___findChildren_newList2(void* ptr)
                                                               ^
./bluetooth.cpp:2236:63: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothTransferManager___findChildren_newList3(void* ptr)
                                                               ^
./bluetooth.cpp:2251:62: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothTransferManager___findChildren_newList(void* ptr)
                                                              ^
./bluetooth.cpp:2441:56: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothTransferReply___children_newList(void* ptr)
                                                        ^
./bluetooth.cpp:2456:68: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothTransferReply___dynamicPropertyNames_newList(void* ptr)
                                                                    ^
./bluetooth.cpp:2471:61: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothTransferReply___findChildren_newList2(void* ptr)
                                                             ^
./bluetooth.cpp:2486:61: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothTransferReply___findChildren_newList3(void* ptr)
                                                             ^
./bluetooth.cpp:2501:60: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QBluetoothTransferReply___findChildren_newList(void* ptr)
                                                            ^
./bluetooth.cpp:2656:56: warning: unused parameter ‘ok’ [-Wunused-parameter]
 unsigned short QBluetoothUuid_ToUInt16(void* ptr, char ok)
                                                        ^
./bluetooth.cpp:2661:54: warning: unused parameter ‘ok’ [-Wunused-parameter]
 unsigned int QBluetoothUuid_ToUInt32(void* ptr, char ok)
                                                      ^
./bluetooth.cpp:2771:58: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyAdvertisingData___services_newList(void* ptr)
                                                          ^
./bluetooth.cpp:2786:70: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyAdvertisingData___setServices_services_newList(void* ptr)
                                                                      ^
./bluetooth.cpp:2901:60: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyCharacteristic___descriptors_newList(void* ptr)
                                                            ^
./bluetooth.cpp:3021:64: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyCharacteristicData___descriptors_newList(void* ptr)
                                                                ^
./bluetooth.cpp:3036:79: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyCharacteristicData___setDescriptors_descriptors_newList(void* ptr)
                                                                               ^
./bluetooth.cpp:3339:53: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyController___services_newList(void* ptr)
                                                     ^
./bluetooth.cpp:3354:53: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyController___children_newList(void* ptr)
                                                     ^
./bluetooth.cpp:3369:65: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyController___dynamicPropertyNames_newList(void* ptr)
                                                                 ^
./bluetooth.cpp:3384:58: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyController___findChildren_newList2(void* ptr)
                                                          ^
./bluetooth.cpp:3399:58: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyController___findChildren_newList3(void* ptr)
                                                          ^
./bluetooth.cpp:3414:57: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyController___findChildren_newList(void* ptr)
                                                         ^
./bluetooth.cpp:3802:57: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyService___characteristics_newList(void* ptr)
                                                         ^
./bluetooth.cpp:3817:58: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyService___includedServices_newList(void* ptr)
                                                          ^
./bluetooth.cpp:3832:50: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyService___children_newList(void* ptr)
                                                  ^
./bluetooth.cpp:3847:62: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyService___dynamicPropertyNames_newList(void* ptr)
                                                              ^
./bluetooth.cpp:3862:55: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyService___findChildren_newList2(void* ptr)
                                                       ^
./bluetooth.cpp:3877:55: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyService___findChildren_newList3(void* ptr)
                                                       ^
./bluetooth.cpp:3892:54: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyService___findChildren_newList(void* ptr)
                                                      ^
./bluetooth.cpp:4027:61: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyServiceData___characteristics_newList(void* ptr)
                                                             ^
./bluetooth.cpp:4042:62: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyServiceData___includedServices_newList(void* ptr)
                                                              ^
./bluetooth.cpp:4057:80: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyServiceData___setCharacteristics_characteristics_newList(void* ptr)
                                                                                ^
./bluetooth.cpp:4072:74: warning: unused parameter ‘ptr’ [-Wunused-parameter]
 void* QLowEnergyServiceData___setIncludedServices_services_newList(void* ptr)
                                                                          ^

this error of bluetooth.cpp!!

this error of bluetooth.cpp!!

I will look into it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ismlsmile picture ismlsmile  Â·  5Comments

adneg picture adneg  Â·  6Comments

mathieujobin picture mathieujobin  Â·  4Comments

medvednikov picture medvednikov  Â·  5Comments

angiglesias picture angiglesias  Â·  5Comments