Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux qtsetup - filed to run command #248

Closed
Huholoman opened this issue Mar 14, 2017 · 24 comments
Closed

Linux qtsetup - filed to run command #248

Huholoman opened this issue Mar 14, 2017 · 24 comments

Comments

@Huholoman
Copy link

Hello, I stardet from the begining and qtsetup ... threw an error

$GOPATH/bin/qtsetup
INFO[0000] running: 'qtsetup prep'                      
INFO[0000] successfully created qtrcc symlink in your PATH (/usr/local/bin/qtrcc) 
INFO[0000] successfully created qtmoc symlink in your PATH (/usr/local/bin/qtmoc) 
INFO[0000] successfully created qtminimal symlink in your PATH (/usr/local/bin/qtminimal) 
INFO[0000] successfully created qtdeploy symlink in your PATH (/usr/local/bin/qtdeploy) 
INFO[0000] running: 'qtsetup check desktop'             
INFO[0000] GOOS:                        'linux'         
INFO[0000] GOARCH:                      'amd64'         
INFO[0000] GOVERSION:                   'go1.7.4'       
INFO[0000] GOROOT:                      '/usr/lib/go-1.7' 
INFO[0000] GOPATH:                   *  '/home/tobik/Buhvico/Programovani/go' 
INFO[0000] GOBIN:                       '/home/tobik/Buhvico/Programovani/go/bin' 
INFO[0000] QT_HASH:                     'b47d2addd409f2c2b359a5eb77c7cca46946fe1a' 
INFO[0000] QT_VERSION:               *  '5.7.1'         
INFO[0000] QT_VERSION_MAJOR:            '5.7'           
INFO[0000] QT_DIR:                   *  '/home/tobik/Buhvico/Apps/Qt' 
INFO[0000] QT_STUB:                  *  'true'          
INFO[0000] QT_DEBUG:                    'false'         
INFO[0000] QT_DISTRO:                   'ubuntu'        
INFO[0000] QT_PKG_CONFIG:               'false'         
INFO[0000] running: 'qtsetup generate desktop'          
ERRO[0010] failed to load /home/tobik/Buhvico/Apps/Qt/Docs/Qt-5.7/qtspeech/qtspeech.index  error="open /home/tobik/Buhvico/Apps/Qt/Docs/Qt-5.7/qtspeech/qtspeech.index: no such file or directory"
WARN[0010] parser.LoadModule                             0_module=Speech error=EOF
INFO[0010] generating stub qt/core                      
INFO[0012] generating stub qt/androidextras             
INFO[0012] generating stub qt/gui                       
INFO[0014] generating stub qt/network                   
INFO[0014] generating stub qt/xml                       
INFO[0015] generating stub qt/dbus                      
INFO[0015] generating stub qt/nfc                       
INFO[0015] generating stub qt/script                    
INFO[0015] generating stub qt/sensors                   
INFO[0015] generating stub qt/positioning               
INFO[0015] generating stub qt/widgets                   
INFO[0021] generating stub qt/sql                       
INFO[0021] generating stub qt/qml                       
INFO[0021] generating stub qt/websockets                
INFO[0021] generating stub qt/xmlpatterns               
INFO[0021] generating stub qt/bluetooth                 
INFO[0022] generating stub qt/webchannel                
INFO[0022] generating stub qt/svg                       
INFO[0022] generating stub qt/multimedia                
INFO[0023] generating stub qt/quick                     
INFO[0023] generating stub qt/help                      
INFO[0024] generating stub qt/location                  
INFO[0024] generating stub qt/scripttools               
INFO[0024] generating stub qt/uitools                   
INFO[0024] generating stub qt/x11extras                 
INFO[0024] generating stub qt/webengine                 
INFO[0024] generating stub qt/testlib                   
INFO[0024] generating stub qt/serialport                
INFO[0024] generating stub qt/serialbus                 
INFO[0024] generating stub qt/printsupport              
INFO[0024] generating stub qt/designer                  
INFO[0025] generating stub qt/scxml                     
INFO[0025] generating stub qt/gamepad                   
INFO[0025] generating stub qt/purchasing                
INFO[0025] generating stub qt/datavisualization         
INFO[0025] generating stub qt/charts                    
INFO[0026] generating stub qt/speech                    
INFO[0026] generating stub qt/quickcontrols2            
INFO[0026] generating stub qt/sailfish                  
INFO[0026] generating stub qt/webview                   
INFO[0026] running: 'qtsetup install desktop'           
INFO[0026] installing stub qt/core                      
INFO[0031] installing stub qt/androidextras             
ERRO[0031] failed to run command                         cmd="go install -p 4 -v github.com/therecipe/qt/androidextras" env= error="exit status 2" func=RunCmdOptionalError name="install androidextras"
github.com/therecipe/qt/androidextras
# github.com/therecipe/qt/androidextras
could not determine kind of name for C.free

INFO[0031] installing stub qt/gui                       
INFO[0037] installing stub qt/network                   
INFO[0039] installing stub qt/xml                       
INFO[0040] installing stub qt/dbus                      
INFO[0041] installing stub qt/nfc                       
INFO[0041] installing stub qt/script                    
INFO[0042] installing stub qt/sensors                   
INFO[0044] installing stub qt/positioning               
INFO[0045] installing stub qt/widgets                   
INFO[0107] installing stub qt/sql                       
INFO[0111] installing stub qt/qml                       
INFO[0112] installing stub qt/websockets                
INFO[0113] installing stub qt/xmlpatterns               
INFO[0114] installing stub qt/bluetooth                 
INFO[0115] installing stub qt/webchannel                
INFO[0115] installing stub qt/svg                       
INFO[0117] installing stub qt/multimedia                
INFO[0128] installing stub qt/quick                     
INFO[0131] installing stub qt/help                      
INFO[0134] installing stub qt/location                  
INFO[0135] installing stub qt/scripttools               
INFO[0136] installing stub qt/uitools                   
INFO[0138] installing stub qt/x11extras                 
INFO[0139] installing stub qt/webengine                 
INFO[0142] installing stub qt/testlib                   
INFO[0145] installing stub qt/serialport                
INFO[0146] installing stub qt/serialbus                 
INFO[0147] installing stub qt/printsupport              
INFO[0152] installing stub qt/designer                  
INFO[0155] installing stub qt/scxml                     
INFO[0156] installing stub qt/gamepad                   
INFO[0156] installing stub qt/purchasing                
INFO[0157] installing stub qt/datavisualization         
INFO[0158] installing stub qt/charts                    
INFO[0163] installing stub qt/speech                    
INFO[0163] installing stub qt/quickcontrols2            
INFO[0163] installing stub qt/sailfish                  
ERRO[0163] failed to run command                         cmd="go install -p 4 -v github.com/therecipe/qt/sailfish" env= error="exit status 2" func=RunCmdOptionalError name="install sailfish"
github.com/therecipe/qt/sailfish
# github.com/therecipe/qt/sailfish
could not determine kind of name for C.free

INFO[0163] installing stub qt/webview                   
ERRO[0163] failed to install the following 2 package(s): 
ERRO[0163] androidextras                                
ERRO[0163] sailfish                                     
ERRO[0163] you may want to run 'qtsetup install desktop' if you depend on these package(s) 
INFO[0163] running: 'qtsetup test desktop'              
INFO[0163] testing qml/application                      
INFO[0178] testing qml/drawer_nav_x                     
INFO[0198] testing qml/gallery                          
INFO[0211] testing quick/calc                           
INFO[0223] testing widgets/line_edits                   
INFO[0239] testing widgets/pixel_editor                 
INFO[0259] testing widgets/textedit  

I tryed to google that error "could not determine kind of name for C.free" but i didnt find anything what would help me.

Cheers,
Huho

@Kutabe
Copy link

Kutabe commented Mar 14, 2017

Oh, I think I've seen this error before, did you install latest QT 5.8 with android support?

@Huholoman
Copy link
Author

Huholoman commented Mar 14, 2017

I have QT 5.7.1 with android support. I dont rly care about android, but i got the same error for sailfish which is platoform im interested in and I didnt have this error last time i was installing this bindings .(

Also I think ill need to install Qt 5.6 because SFOS doesnt support newer version of Qt and it will not in close future.

@Kutabe
Copy link

Kutabe commented Mar 14, 2017

Did you set QT_VERSION enviromental variable?

@Huholoman
Copy link
Author

Huholoman commented Mar 14, 2017

Yes, I did. And also I set up
SAILFISH_DIR,
QT_DIR (since i dont have qt from repository) and
QT_STUB=true (i have 4GB RAM)

@therecipe
Copy link
Owner

Hey
I will look into it, but in the meantime maybe try to unset QT_STUB and run the setup again.

There have been a few changes, and now the normal setup should work on machines with fewer ram as well. (I think you currently only need 2.5GB ram or so)

@Huholoman
Copy link
Author

Cool, that actualy worked. But when i wanted to install binds for sfos $GOPATH/bin/qtsetup sailfish && $GOPATH/bin/qtsetup sailfish-emulator, it failed :(

$GOPATH/bin/qtsetup sailfish && $GOPATH/bin/qtsetup sailfish-emulator
INFO[0000] running: 'qtsetup prep'                      
INFO[0000] successfully created qtrcc symlink in your PATH (/usr/local/bin/qtrcc) 
INFO[0000] successfully created qtmoc symlink in your PATH (/usr/local/bin/qtmoc) 
INFO[0000] successfully created qtminimal symlink in your PATH (/usr/local/bin/qtminimal) 
INFO[0000] successfully created qtdeploy symlink in your PATH (/usr/local/bin/qtdeploy) 
INFO[0000] running: 'qtsetup check sailfish'            
INFO[0000] GOOS:                        'linux'         
INFO[0000] GOARCH:                      'amd64'         
INFO[0000] GOVERSION:                   'go1.7.4'       
INFO[0000] GOROOT:                      '/usr/lib/go-1.7' 
INFO[0000] GOPATH:                   *  '/home/tobik/Buhvico/Programovani/go' 
INFO[0000] GOBIN:                       '/home/tobik/Buhvico/Programovani/go/bin' 
INFO[0000] QT_HASH:                     'b47d2addd409f2c2b359a5eb77c7cca46946fe1a' 
INFO[0000] QT_VERSION:               *  '5.7.1'         
INFO[0000] QT_VERSION_MAJOR:            '5.7'           
INFO[0000] QT_DIR:                   *  '/home/tobik/Buhvico/Apps/Qt' 
INFO[0000] QT_STUB:                     'false'         
INFO[0000] QT_DEBUG:                    'false'         
INFO[0000] VIRTUALBOX_DIR:              '/usr/bin'      
INFO[0000] SAILFISH_DIR:             *  '/home/tobik/Buhvico/Apps/IDES/SFOS' 
INFO[0000] running: 'qtsetup generate sailfish'         
ERRO[0014] failed to load /home/tobik/Buhvico/Apps/Qt/Docs/Qt-5.7/qtspeech/qtspeech.index  error="open /home/tobik/Buhvico/Apps/Qt/Docs/Qt-5.7/qtspeech/qtspeech.index: no such file or directory"
WARN[0014] parser.LoadModule                             0_module=Speech error=EOF
INFO[0014] generating full qt/core                      
INFO[0014] generating full qt/gui                       
INFO[0014] generating full qt/network                   
INFO[0014] generating full qt/xml                       
INFO[0014] generating full qt/dbus                      
INFO[0014] generating full qt/sensors                   
INFO[0014] generating full qt/positioning               
INFO[0014] generating full qt/sql                       
INFO[0014] generating full qt/qml                       
INFO[0014] generating full qt/xmlpatterns               
INFO[0014] generating full qt/svg                       
INFO[0014] generating full qt/multimedia                
INFO[0014] generating full qt/quick                     
INFO[0014] running: 'qtsetup install sailfish'          
INFO[0014] running: 'qtsetup test sailfish'             
INFO[0014] testing quick/sailfish                       
ERRO[0017] failed to run command                         cmd="/usr/bin/vboxmanage registervm /home/tobik/Buhvico/Apps/IDES/SFOS/mersdk/MerSDK/MerSDK.vbox" env= error="exit status 1" func=RunCmdOptional name="register mersdk for sailfish on linux"
VBoxManage: error: Trying to open a VM config '/home/tobik/Buhvico/Apps/IDES/SFOS/mersdk/MerSDK/MerSDK.vbox' which has the same UUID as an existing virtual machine
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine, callee nsISupports
VBoxManage: error: Context: "OpenMachine(Bstr(a->argv[0]).raw(), machine.asOutParam())" at line 85 of file VBoxManageMisc.cpp

PANI[0031] failed to build for sailfish on linux         error="../../../../core/core-minimal.go:11:2: cannot find package "fmt" in any of:
	/media/sf_GOROOT/src/fmt (from $GOROOT)
	/media/sf_GOPATH/src/fmt (from $GOPATH)
../../../../qt.go:5:2: cannot find package "log" in any of:
	/media/sf_GOROOT/src/log (from $GOROOT)
	/media/sf_GOPATH/src/log (from $GOPATH)
package github.com/therecipe/qt/internal/examples/quick/sailfish
	imports math: cannot find package "math" in any of:
	/media/sf_GOROOT/src/math (from $GOROOT)
	/media/sf_GOPATH/src/math (from $GOPATH)
../../../../qt.go:6:2: cannot find package "os" in any of:
	/media/sf_GOROOT/src/os (from $GOROOT)
	/media/sf_GOPATH/src/os (from $GOPATH)
../../../../qt.go:7:2: cannot find package "runtime" in any of:
	/media/sf_GOROOT/src/runtime (from $GOROOT)
	/media/sf_GOPATH/src/runtime (from $GOPATH)
package github.com/therecipe/qt/internal/examples/quick/sailfish
	imports runtime/cgo: cannot find package "runtime/cgo" in any of:
	/media/sf_GOROOT/src/runtime/cgo (from $GOROOT)
	/media/sf_GOPATH/src/runtime/cgo (from $GOPATH)
../../../../qt.go:8:2: cannot find package "strings" in any of:
	/media/sf_GOROOT/src/strings (from $GOROOT)
	/media/sf_GOPATH/src/strings (from $GOPATH)
../../../../qt.go:9:2: cannot find package "sync" in any of:
	/media/sf_GOROOT/src/sync (from $GOROOT)
	/media/sf_GOPATH/src/sync (from $GOPATH)
package github.com/therecipe/qt/internal/examples/quick/sailfish
	imports syscall: cannot find package "syscall" in any of:
	/media/sf_GOROOT/src/syscall (from $GOROOT)
	/media/sf_GOPATH/src/syscall (from $GOPATH)
../../../../core/core-minimal.go:14:2: cannot find package "unsafe" in any of:
	/media/sf_GOROOT/src/unsafe (from $GOROOT)
	/media/sf_GOPATH/src/unsafe (from $GOPATH)
"
panic: (*logrus.Entry) (0x73ea40,0xc426113e50)

goroutine 1 [running]:
panic(0x73ea40, 0xc426113e50)
	/usr/lib/go-1.7/src/runtime/panic.go:500 +0x1a1
github.com/Sirupsen/logrus.Entry.log(0xc42001a140, 0xc4254817d0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc423956300, ...)
	/home/tobik/Buhvico/Programovani/go/src/github.com/Sirupsen/logrus/entry.go:124 +0x423
github.com/Sirupsen/logrus.(*Entry).Panic(0xc426113db0, 0xc423956348, 0x1, 0x1)
	/home/tobik/Buhvico/Programovani/go/src/github.com/Sirupsen/logrus/entry.go:169 +0x124
github.com/Sirupsen/logrus.(*Entry).Panicf(0xc426113db0, 0x752ced, 0x1c, 0xc4239569f0, 0x2, 0x2)
	/home/tobik/Buhvico/Programovani/go/src/github.com/Sirupsen/logrus/entry.go:217 +0x101
github.com/therecipe/qt/internal/cmd/deploy.build()
	/home/tobik/Buhvico/Programovani/go/src/github.com/therecipe/qt/internal/cmd/deploy/deploy.go:339 +0x55af
github.com/therecipe/qt/internal/cmd/deploy.Deploy(0xc423957d50)
	/home/tobik/Buhvico/Programovani/go/src/github.com/therecipe/qt/internal/cmd/deploy/deploy.go:130 +0x918
github.com/therecipe/qt/internal/cmd/setup.Test(0x7ffdad87231c, 0x8)
	/home/tobik/Buhvico/Programovani/go/src/github.com/therecipe/qt/internal/cmd/setup/test.go:121 +0x920
github.com/therecipe/qt/internal/cmd/setup.Setup(0x7477cd, 0x4, 0x7ffdad87231c, 0x8)
	/home/tobik/Buhvico/Programovani/go/src/github.com/therecipe/qt/internal/cmd/setup/setup.go:10 +0x126
main.main()
	/home/tobik/Buhvico/Programovani/go/src/github.com/therecipe/qt/cmd/qtsetup/qtsetup.go:45 +0x2a9
tobik@tobikov:~$ 

@therecipe
Copy link
Owner

Made some changes with: 9a8884d (but the stub mode is still broken)

Could you try to run:
$GOPATH/bin/qtsetup upgrade && $GOPATH/bin/qtsetup && $GOPATH/bin/qtsetup sailfish && $GOPATH/bin/qtsetup sailfish-emulator

Also could you check if you got the "linux_386" folder inside $GOROOT/bin and $GOROOT/pkg?
If not, you may need to chmod -R 755 $GOROOT, before running qtsetup sailfish

@Huholoman
Copy link
Author

Hm, I have linux_386 and I did chmod. But it still fails :( I this time i tryed version 5.8.

tobik@tobikov:~$ qtsetup
INFO[0000] running: 'qtsetup prep'                      
INFO[0000] successfully created qtrcc symlink in your PATH (/usr/local/bin/qtrcc) 
INFO[0000] successfully created qtmoc symlink in your PATH (/usr/local/bin/qtmoc) 
INFO[0000] successfully created qtminimal symlink in your PATH (/usr/local/bin/qtminimal) 
INFO[0000] successfully created qtdeploy symlink in your PATH (/usr/local/bin/qtdeploy) 
INFO[0000] running: 'qtsetup check desktop'             
INFO[0000] GOOS:                        'linux'         
INFO[0000] GOARCH:                      'amd64'         
INFO[0000] GOVERSION:                   'go1.7.4'       
INFO[0000] GOROOT:                      '/usr/lib/go-1.7' 
INFO[0000] GOPATH:                   *  '/home/tobik/Buhvico/Programovani/go' 
INFO[0000] GOBIN:                       '/home/tobik/Buhvico/Programovani/go/bin' 
INFO[0000] QT_HASH:                     '9a8884dd2ffdc5f6de48ff46351f8ca1ce9f675a' 
INFO[0000] QT_VERSION:               *  '5.8'           
INFO[0000] QT_VERSION_MAJOR:            '5.8'           
INFO[0000] QT_DIR:                   *  '/home/tobik/Buhvico/Apps/Qt' 
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/tobik/Buhvico/Apps/Qt/5.8/gcc_64/include/QtGui/5.8/QtGui/qpa/qplatformgraphicsbuffer.h  error="open /home/tobik/Buhvico/Apps/Qt/5.8/gcc_64/include/QtGui/5.8/QtGui/qpa/qplatformgraphicsbuffer.h: no such file or directory"
ERRO[0005] failed to load /home/tobik/Buhvico/Apps/Qt/5.8/gcc_64/include/QtGui/5.8/QtGui/qpa/qplatformsystemtrayicon.h  error="open /home/tobik/Buhvico/Apps/Qt/5.8/gcc_64/include/QtGui/5.8/QtGui/qpa/qplatformsystemtrayicon.h: no such file or directory"
INFO[0014] generating full qt/core                      
INFO[0022] generating full qt/androidextras             
INFO[0022] generating full qt/gui                       
INFO[0032] generating full qt/network                   
INFO[0035] generating full qt/xml                       
INFO[0036] generating full qt/dbus                      
INFO[0036] generating full qt/nfc                       
INFO[0037] generating full qt/script                    
INFO[0037] generating full qt/sensors                   
INFO[0039] generating full qt/positioning               
INFO[0040] generating full qt/widgets                   
INFO[0070] generating full qt/sql                       
INFO[0071] generating full qt/qml                       
INFO[0072] generating full qt/websockets                
INFO[0072] generating full qt/xmlpatterns               
INFO[0073] generating full qt/bluetooth                 
INFO[0074] generating full qt/webchannel                
INFO[0074] generating full qt/svg                       
INFO[0075] generating full qt/multimedia                
INFO[0082] generating full qt/quick                     
INFO[0085] generating full qt/help                      
INFO[0087] generating full qt/location                  
INFO[0087] generating full qt/scripttools               
INFO[0087] generating full qt/uitools                   
INFO[0088] generating full qt/x11extras                 
INFO[0088] generating full qt/webengine                 
INFO[0089] generating full qt/testlib                   
INFO[0089] generating full qt/serialport                
INFO[0089] generating full qt/serialbus                 
INFO[0090] generating full qt/printsupport              
INFO[0092] generating full qt/designer                  
INFO[0094] generating full qt/scxml                     
INFO[0094] generating full qt/gamepad                   
INFO[0095] generating full qt/purchasing                
INFO[0095] generating full qt/datavisualization         
INFO[0096] generating full qt/charts                    
INFO[0099] generating full qt/speech                    
INFO[0099] generating full qt/quickcontrols2            
INFO[0099] generating full qt/sailfish                  
INFO[0099] generating full qt/webview                   
INFO[0099] running: 'qtsetup install desktop'           
INFO[0099] installing full qt/core                      
INFO[0146] installing full qt/androidextras             
INFO[0146] installing full qt/gui                       
INFO[0202] installing full qt/network                   
ERRO[0208] failed to run command                         cmd="go install -p 4 -v github.com/therecipe/qt/network" env= error="exit status 2" func=RunCmdOptionalError name="install network"
github.com/therecipe/qt/network
# github.com/therecipe/qt/network
                              ^
# github.com/therecipe/qt/network
Buhvico/Programovani/go/src/github.com/therecipe/qt/network/network.cpp:9:17: fatal error: Http2: file or directory doesnt exist
 #include <Http2>
                 ^
compilation terminated.

INFO[0208] installing full qt/xml                       
INFO[0215] installing full qt/dbus                      
INFO[0221] installing full qt/nfc                       
INFO[0226] installing full qt/script                    
INFO[0230] installing full qt/sensors                   
INFO[0239] installing full qt/positioning               
INFO[0245] installing full qt/widgets                   
INFO[0481] installing full qt/sql                       
INFO[0496] installing full qt/qml                       
ERRO[0501] failed to run command                         cmd="go install -p 4 -v github.com/therecipe/qt/qml" env= error="exit status 2" func=RunCmdOptionalError name="install qml"
github.com/therecipe/qt/network
# github.com/therecipe/qt/network
                              ^
# github.com/therecipe/qt/network
Buhvico/Programovani/go/src/github.com/therecipe/qt/network/network.cpp:9:17: fatal error: Http2: File or directory doesnt exist
 #include <Http2>
                 ^
compilation terminated.

INFO[0501] installing full qt/websockets                
ERRO[0507] failed to run command                         cmd="go install -p 4 -v github.com/therecipe/qt/websockets" env= error="exit status 2" func=RunCmdOptionalError name="install websockets"
github.com/therecipe/qt/network
# github.com/therecipe/qt/network
Buhvico/Programovani/go/src/github.com/therecipe/qt/network/network.cpp:9:17: fatal error: Http2: File or directory doesnt exist
 #include <Http2>
                 ^
compilation terminated.

INFO[0507] installing full qt/xmlpatterns               
ERRO[0512] failed to run command                         cmd="go install -p 4 -v github.com/therecipe/qt/xmlpatterns" env= error="exit status 2" func=RunCmdOptionalError name="install xmlpatterns"
github.com/therecipe/qt/network
# github.com/therecipe/qt/network
Buhvico/Programovani/go/src/github.com/therecipe/qt/network/network.cpp:9:17: fatal error: Http2: File or directory doesnt exist
 #include <Http2>
                 ^
compilation terminated.

INFO[0512] installing full qt/bluetooth                 
ERRO[0517] failed to run command                         cmd="go install -p 4 -v github.com/therecipe/qt/bluetooth" env= error="exit status 2" func=RunCmdOptionalError name="install bluetooth"
github.com/therecipe/qt/network
# github.com/therecipe/qt/network
Buhvico/Programovani/go/src/github.com/therecipe/qt/network/network.cpp:9:17: fatal error: Http2: File or directory doesnt exist
 #include <Http2>
                 ^
compilation terminated.

INFO[0517] installing full qt/webchannel                
INFO[0520] installing full qt/svg                       
INFO[0527] installing full qt/multimedia                
ERRO[0534] failed to run command                         cmd="go install -p 4 -v github.com/therecipe/qt/multimedia" env= error="exit status 2" func=RunCmdOptionalError name="install multimedia"
github.com/therecipe/qt/network
Buhvico/Programovani/go/src/github.com/therecipe/qt/network/network.cpp:9:17: fatal error: Http2: File or directory doesnt exist
 #include <Http2>
                 ^
compilation terminated.

INFO[0534] installing full qt/quick                     
ERRO[0541] failed to run command                         cmd="go install -p 4 -v github.com/therecipe/qt/quick" env= error="exit status 2" func=RunCmdOptionalError name="install quick"
github.com/therecipe/qt/network
# github.com/therecipe/qt/network
Buhvico/Programovani/go/src/github.com/therecipe/qt/network/network.cpp:9:17: fatal error: Http2: File or directory doesnt exist
 #include <Http2>
                 ^
compilation terminated.

INFO[0541] installing full qt/help                      
INFO[0571] installing full qt/location                  
INFO[0580] installing full qt/scripttools               
INFO[0585] installing full qt/uitools                   
INFO[0590] installing full qt/x11extras                 
INFO[0592] installing full qt/webengine                 
ERRO[0600] failed to run command                         cmd="go install -p 4 -v github.com/therecipe/qt/webengine" env= error="exit status 2" func=RunCmdOptionalError name="install webengine"
github.com/therecipe/qt/network
Buhvico/Programovani/go/src/github.com/therecipe/qt/network/network.cpp:9:17: fatal error: Http2: File or directory doesnt exist
 #include <Http2>
                 ^
compilation terminated.

INFO[0600] installing full qt/testlib                   
INFO[0606] installing full qt/serialport                
INFO[0610] installing full qt/serialbus                 
INFO[0620] installing full qt/printsupport              
INFO[0637] installing full qt/designer                  
INFO[0663] installing full qt/scxml                     
ERRO[0667] failed to run command                         cmd="go install -p 4 -v github.com/therecipe/qt/scxml" env= error="exit status 2" func=RunCmdOptionalError name="install scxml"
github.com/therecipe/qt/scxml

INFO[0667] installing full qt/gamepad                   
INFO[0673] installing full qt/purchasing                
INFO[0677] installing full qt/datavisualization         
INFO[0707] installing full qt/charts                    
INFO[0751] installing full qt/speech                    
INFO[0755] installing full qt/quickcontrols2            
INFO[0758] installing full qt/sailfish                  
ERRO[0765] failed to run command                         cmd="go install -p 4 -v github.com/therecipe/qt/sailfish" env= error="exit status 2" func=RunCmdOptionalError name="install sailfish"
github.com/therecipe/qt/network
# github.com/therecipe/qt/network
                              ^
# github.com/therecipe/qt/network
Buhvico/Programovani/go/src/github.com/therecipe/qt/network/network.cpp:9:17: fatal error: Http2: File or directory doesnt exist
 #include <Http2>
                 ^
compilation terminated.

INFO[0765] installing full qt/webview                   
ERRO[0767] failed to install the following 10 package(s): 
ERRO[0767] network                                      
ERRO[0767] qml                                          
ERRO[0767] websockets                                   
ERRO[0767] xmlpatterns                                  
ERRO[0767] bluetooth                                    
ERRO[0767] multimedia                                   
ERRO[0767] quick                                        
ERRO[0767] webengine                                    
ERRO[0767] scxml                                        
ERRO[0767] sailfish                                     
ERRO[0767] you may want to run 'qtsetup install desktop' if you depend on these package(s) 
INFO[0767] running: 'qtsetup test desktop'              
INFO[0767] testing widgets/line_edits                   
INFO[0793] testing widgets/pixel_editor                 
INFO[0820] testing widgets/textedit                     
INFO[0878] testing qml/application                      
INFO[0887] testing qml/drawer_nav_x                     
INFO[0906] testing qml/gallery                          
INFO[0922] testing quick/calc                           
tobik@tobikov:~$ 

@therecipe
Copy link
Owner

I this time i tryed version 5.8.

5.8 won't work for sailfish unfortunately, because of some incompatibility problems with Qt's moc files.
So you need to use (and export QT_DIR and QT_VERSION) to 5.6 or 5.7.

Could you try it again with: 1c2fcd4 ?

You probably just need to run:
$GOPATH/bin/qtsetup upgrade && $GOPATH/bin/qtsetup && $GOPATH/bin/qtsetup full sailfish && $GOPATH/bin/qtsetup full sailfish-emulator
(like you did last time)

Also do you use the "old" SailfishOSSDK-Beta-1611 or the newer version?
Because I haven't had time to test it with the newer one yet.

@Huholoman
Copy link
Author

Huholoman commented Mar 16, 2017

I dont know, the name is quite same just + offline installer blablayaya, downloaded few weeks ago.
The whole name of the installator is SailfishOSSDK-Beta-1611-Qt5-linux-64-offline.run I didnt notice any newer @one.
qtsetup passed just without bluetooth which iis ok, I gues.
But then it failed to install sailfsh again :(

$GOPATH/bin/qtsetup full sailfish
INFO[0000] running: 'qtsetup prep'                      
INFO[0000] successfully created qtrcc symlink in your PATH (/usr/local/bin/qtrcc) 
INFO[0000] successfully created qtmoc symlink in your PATH (/usr/local/bin/qtmoc) 
INFO[0000] successfully created qtminimal symlink in your PATH (/usr/local/bin/qtminimal) 
INFO[0000] successfully created qtdeploy symlink in your PATH (/usr/local/bin/qtdeploy) 
INFO[0000] running: 'qtsetup check sailfish'            
INFO[0000] GOOS:                        'linux'         
INFO[0000] GOARCH:                      'amd64'         
INFO[0000] GOVERSION:                   'go1.7.4'       
INFO[0000] GOROOT:                      '/usr/lib/go-1.7' 
INFO[0000] GOPATH:                   *  '/home/tobik/Buhvico/Programovani/go' 
INFO[0000] GOBIN:                       '/home/tobik/Buhvico/Programovani/go/bin' 
INFO[0000] QT_HASH:                     '9220fa5bbb526b249b411810e82572ea0ddaffc3' 
INFO[0000] QT_VERSION:               *  '5.7.1'         
INFO[0000] QT_VERSION_MAJOR:            '5.7'           
INFO[0000] QT_DIR:                   *  '/home/tobik/Buhvico/Apps/Qt' 
INFO[0000] QT_STUB:                  *  'false'         
INFO[0000] QT_DEBUG:                    'false'         
INFO[0000] QT_QMAKE_DIR:                ''              
INFO[0000] VIRTUALBOX_DIR:              '/usr/bin'      
INFO[0004] SAILFISH_DIR:             *  '/home/tobik/Buhvico/Apps/IDES/SFOS' 
INFO[0005] running: 'qtsetup generate sailfish'         
INFO[0020] generating full qt/core                      
INFO[0020] generating full qt/gui                       
INFO[0020] generating full qt/network                   
INFO[0020] generating full qt/xml                       
INFO[0020] generating full qt/dbus                      
INFO[0020] generating full qt/sensors                   
INFO[0020] generating full qt/positioning               
INFO[0020] generating full qt/sql                       
INFO[0020] generating full qt/qml                       
INFO[0020] generating full qt/xmlpatterns               
INFO[0020] generating full qt/svg                       
INFO[0020] generating full qt/multimedia                
INFO[0020] generating full qt/quick                     
INFO[0020] generating full qt/sailfish                  
INFO[0020] running: 'qtsetup install sailfish'          
INFO[0021] running: 'qtsetup test sailfish'             
INFO[0021] testing quick/sailfish                       
ERRO[0022] failed to run command                         cmd="/usr/bin/vboxmanage registervm /home/tobik/Buhvico/Apps/IDES/SFOS/mersdk/MerSDK/MerSDK.vbox" env= error="exit status 1" func=RunCmdOptional name="register mersdk for sailfish on linux"
VBoxManage: error: Trying to open a VM config '/home/tobik/Buhvico/Apps/IDES/SFOS/mersdk/MerSDK/MerSDK.vbox' which has the same UUID as an existing virtual machine
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine, callee nsISupports
VBoxManage: error: Context: "OpenMachine(Bstr(a->argv[0]).raw(), machine.asOutParam())" at line 85 of file VBoxManageMisc.cpp

../../../../core/core-minimal.go:11:2: cannot find package "fmt" in any of:
	/media/sf_GOROOT/src/fmt (from $GOROOT)
	/media/sf_GOPATH/src/fmt (from $GOPATH)
../../../../qt.go:5:2: cannot find package "log" in any of:
	/media/sf_GOROOT/src/log (from $GOROOT)
	/media/sf_GOPATH/src/log (from $GOPATH)
package github.com/therecipe/qt/internal/examples/quick/sailfish
	imports math: cannot find package "math" in any of:
	/media/sf_GOROOT/src/math (from $GOROOT)
	/media/sf_GOPATH/src/math (from $GOPATH)
../../../../qt.go:6:2: cannot find package "os" in any of:
	/media/sf_GOROOT/src/os (from $GOROOT)
	/media/sf_GOPATH/src/os (from $GOPATH)
../../../../qt.go:7:2: cannot find package "runtime" in any of:
	/media/sf_GOROOT/src/runtime (from $GOROOT)
	/media/sf_GOPATH/src/runtime (from $GOPATH)
package github.com/therecipe/qt/internal/examples/quick/sailfish
	imports runtime/cgo: cannot find package "runtime/cgo" in any of:
	/media/sf_GOROOT/src/runtime/cgo (from $GOROOT)
	/media/sf_GOPATH/src/runtime/cgo (from $GOPATH)
../../../../qt.go:8:2: cannot find package "strings" in any of:
	/media/sf_GOROOT/src/strings (from $GOROOT)
	/media/sf_GOPATH/src/strings (from $GOPATH)
../../../../qt.go:9:2: cannot find package "sync" in any of:
	/media/sf_GOROOT/src/sync (from $GOROOT)
	/media/sf_GOPATH/src/sync (from $GOPATH)
package github.com/therecipe/qt/internal/examples/quick/sailfish
	imports syscall: cannot find package "syscall" in any of:
	/media/sf_GOROOT/src/syscall (from $GOROOT)
	/media/sf_GOPATH/src/syscall (from $GOPATH)
../../../../core/core-minimal.go:15:2: cannot find package "unsafe" in any of:
	/media/sf_GOROOT/src/unsafe (from $GOROOT)
	/media/sf_GOPATH/src/unsafe (from $GOPATH)

PANI[0037] failed to build for sailfish on linux        
panic: (*logrus.Entry) (0x71fb20,0xc423a109b0)

goroutine 1 [running]:
panic(0x71fb20, 0xc423a109b0)
	/usr/lib/go-1.7/src/runtime/panic.go:500 +0x1a1
github.com/Sirupsen/logrus.Entry.log(0xc42005a0f0, 0xc42515e690, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc426ba2b00, ...)
	/home/tobik/Buhvico/Programovani/go/src/github.com/Sirupsen/logrus/entry.go:124 +0x423
github.com/Sirupsen/logrus.(*Entry).Panic(0xc4263d5270, 0xc426ba2ba8, 0x1, 0x1)
	/home/tobik/Buhvico/Programovani/go/src/github.com/Sirupsen/logrus/entry.go:169 +0x124
github.com/Sirupsen/logrus.(*Entry).Panicf(0xc4263d5270, 0x7337d7, 0x1c, 0xc426ba2e40, 0x2, 0x2)
	/home/tobik/Buhvico/Programovani/go/src/github.com/Sirupsen/logrus/entry.go:217 +0x101
github.com/Sirupsen/logrus.(*Logger).Panicf(0xc42005a0f0, 0x7337d7, 0x1c, 0xc426ba2e40, 0x2, 0x2)
	/home/tobik/Buhvico/Programovani/go/src/github.com/Sirupsen/logrus/logger.go:172 +0x86
github.com/therecipe/qt/internal/cmd/deploy.build_sailfish(0x728a2e, 0x4, 0x7ffe592e6262, 0x8, 0xc4249e4000, 0x60, 0x0, 0x0, 0xc4249e4058, 0x8, ...)
	/home/tobik/Buhvico/Programovani/go/src/github.com/therecipe/qt/internal/cmd/deploy/build_qmake.go:127 +0x1278
github.com/therecipe/qt/internal/cmd/deploy.build(0x728a2e, 0x4, 0x7ffe592e6262, 0x8, 0xc4249e4000, 0x60, 0x0, 0x0, 0xc4249e4058, 0x8, ...)
	/home/tobik/Buhvico/Programovani/go/src/github.com/therecipe/qt/internal/cmd/deploy/build_qmake.go:31 +0x24cf
github.com/therecipe/qt/internal/cmd/deploy.Deploy(0x728a2e, 0x4, 0x7ffe592e6262, 0x8, 0xc4249e4000, 0x60, 0xc422283a00, 0x0, 0x0, 0x0)
	/home/tobik/Buhvico/Programovani/go/src/github.com/therecipe/qt/internal/cmd/deploy/deploy_qmake.go:46 +0xb0a
github.com/therecipe/qt/internal/cmd/setup.Test(0x7ffe592e6262, 0x8, 0x728800)
	/home/tobik/Buhvico/Programovani/go/src/github.com/therecipe/qt/internal/cmd/setup/test.go:121 +0x62d
main.main()
	/home/tobik/Buhvico/Programovani/go/src/github.com/therecipe/qt/cmd/qtsetup/main.go:86 +0x225
tobik@tobikov:~$ 

@therecipe
Copy link
Owner

therecipe commented Mar 16, 2017

It looks like the GOROOT can't be found by the MerSDK, could you open VirtualBox and check if the GOPATH and GOROOT folders are shared with the MerSDK? And if they are valid?
And maybe if the GOPATH is shared with the SailfishOS Emulator?

It could be that you started the MerSDK prior running the setup and that might have prevented qtdeploy to share the GOROOT folder with the sdk.

Alternatively just shutdown the MerSDK and the Emulator, and try to run the setup again.

SailfishOSSDK-Beta-1611-Qt5-linux-64-offline.run

Yes, that is the right one.

@Huholoman
Copy link
Author

MerSDK has valid GOROOT and GOPATH. SFOS Emulator didnt have neither of it.
By setup u mean whole setup $GOPATH/bin/qtsetup or just $GOPATH/bin/qtsetup full sailfish?

@Huholoman
Copy link
Author

Huholoman commented Mar 16, 2017

qtsetup full sailfish ended with the same error like last tme, so i gues u meant qtsetup :D

@therecipe
Copy link
Owner

No, sorry I meant qtsetup full sailfish

That's strange, maybe the $GOROOT/bin/linux_386 and $GOROOT/pkg/linux_386 folders are incomplete somehow.

Could you try it again with 9fb3a72 ?
I only made some minor changes, and there is only a little chance that it will solve this, but maybe it's worth a try)

Also could you remove $GOROOT/bin/linux_386 and $GOROOT/pkg/linux_386 and then run the usual:
$GOPATH/bin/qtsetup upgrade && $GOPATH/bin/qtsetup && $GOPATH/bin/qtsetup full sailfish && $GOPATH/bin/qtsetup full sailfish-emulator ?

If this doesn't work, then I will try to somehow reproduce it tomorrow.
But it's late here, so I'm off now.

@Huholoman
Copy link
Author

Ook, ill. Thanks for help

@Huholoman
Copy link
Author

Again fail :(

$GOPATH/bin/qtsetup full sailfish
...
...     
INFO[0008] running: 'qtsetup install sailfish'          
ERRO[0008] failed to run command                         cmd="go tool dist test -rebuild -run=no_tests" env="GOOS=linux GOARCH=386" error="exit status 1" func=RunCmd name="setup linux go tools for sailfish"
go tool dist: FAILED: uname -m: exec: "uname": executable file not found in $PATH

I actualy couldnt find where is uname called, huh.

@therecipe
Copy link
Owner

It's called by go tool dist test ... https://github.com/therecipe/qt/blob/master/internal/cmd/setup/install.go#L20-L26
When it tries to compile the go toolchain for linux.

Maybe try to compile the toolchain manually, by running either:
export GOOS=linux && export GOARCH=386 && go tool dist test -rebuild -run=no_tests
or
export GOOS=linux && export GOARCH=386 && $GOROOT/src/run.bash

(remember to remove $GOROOT/bin/linux_386 and $GOROOT/pkg/linux_386 first)

var _, err = ioutil.ReadDir(filepath.Join(runtime.GOROOT(), "bin", "linux_386"))
if err != nil {
var build = exec.Command(filepath.Join(runtime.GOROOT(), "src", func() string {
if runtime.GOOS == "windows" {
return "run.bat"
}
return "run.bash"
}()))
for key, value := range env {
build.Env = append(build.Env, fmt.Sprintf("%v=%v", key, value))
}
build.Run()
}

But I think the "old" method will call go tool dist ... as well, so it will probably result in the same error.

@Huholoman
Copy link
Author

Hello,
i tryed to build qt for sfos, but still got errors.. I deleted $GOROOT/[pkg|bin]/linux_386 and rebuilded toolchain as you said. And then qtsetup full sailfish

$GOPATH/bin/qtsetup full sailfish
INFO[0000] running: 'qtsetup prep'                      
INFO[0000] successfully created qtrcc symlink in your PATH (/usr/lib/go/bin/qtrcc) 
INFO[0000] successfully created qtmoc symlink in your PATH (/usr/lib/go/bin/qtmoc) 
INFO[0000] successfully created qtminimal symlink in your PATH (/usr/lib/go/bin/qtminimal) 
INFO[0000] successfully created qtdeploy symlink in your PATH (/usr/lib/go/bin/qtdeploy) 
INFO[0000] running: 'qtsetup check sailfish'            
INFO[0000] GOOS:                     *  'linux'         
INFO[0000] GOARCH:                   *  'amd64'         
INFO[0000] GOVERSION:                   'go1.8'         
INFO[0000] GOROOT:                   *  '/usr/lib/go'   
INFO[0000] GOPATH:                   *  '/home/tobik/Buhvico/Programovani/golang' 
INFO[0000] GOBIN:                       '/home/tobik/Buhvico/Programovani/golang/bin' 
INFO[0000] QT_HASH:                     '473eeae2d723c74fc241e06de76660d47307e279' 
INFO[0000] QT_VERSION:               *  '5.6'           
INFO[0000] QT_VERSION_MAJOR:            '5.6'           
INFO[0000] QT_DIR:                   *  '/home/tobik/Buhvico/Apps/Libs/Qt' 
INFO[0000] QT_STUB:                     'false'         
INFO[0000] QT_DEBUG:                    'false'         
INFO[0000] QT_QMAKE_DIR:                ''              
INFO[0000] VIRTUALBOX_DIR:              '/usr/bin'      
INFO[0000] SAILFISH_DIR:             *  '/home/tobik/Buhvico/Apps/Libs/SFOS' 
INFO[0000] running: 'qtsetup generate sailfish'         
ERRO[0003] failed to load /home/tobik/Buhvico/Apps/Libs/Qt/5.6/gcc_64/include/QtGui/5.6/QtGui/qpa/qplatformgraphicsbuffer.h  error="open /home/tobik/Buhvico/Apps/Libs/Qt/5.6/gcc_64/include/QtGui/5.6/QtGui/qpa/qplatformgraphicsbuffer.h: no such file or directory"
ERRO[0003] failed to load /home/tobik/Buhvico/Apps/Libs/Qt/5.6/gcc_64/include/QtGui/5.6/QtGui/qpa/qplatformsystemtrayicon.h  error="open /home/tobik/Buhvico/Apps/Libs/Qt/5.6/gcc_64/include/QtGui/5.6/QtGui/qpa/qplatformsystemtrayicon.h: no such file or directory"
ERRO[0007] failed to load /home/tobik/Buhvico/Apps/Libs/Qt/Docs/Qt-5.6/qtscxml/qtscxml.index  error="open /home/tobik/Buhvico/Apps/Libs/Qt/Docs/Qt-5.6/qtscxml/qtscxml.index: no such file or directory"
WARN[0007] parser.LoadModule                             0_module=Scxml error=EOF
ERRO[0007] failed to load /home/tobik/Buhvico/Apps/Libs/Qt/Docs/Qt-5.6/qtgamepad/qtgamepad.index  error="open /home/tobik/Buhvico/Apps/Libs/Qt/Docs/Qt-5.6/qtgamepad/qtgamepad.index: no such file or directory"
WARN[0007] parser.LoadModule                             0_module=Gamepad error=EOF
ERRO[0007] failed to load /home/tobik/Buhvico/Apps/Libs/Qt/Docs/Qt-5.6/qtpurchasing/qtpurchasing.index  error="open /home/tobik/Buhvico/Apps/Libs/Qt/Docs/Qt-5.6/qtpurchasing/qtpurchasing.index: no such file or directory"
WARN[0007] parser.LoadModule                             0_module=Purchasing error=EOF
ERRO[0007] failed to load /home/tobik/Buhvico/Apps/Libs/Qt/Docs/Qt-5.6/qtdatavisualization/qtdatavisualization.index  error="open /home/tobik/Buhvico/Apps/Libs/Qt/Docs/Qt-5.6/qtdatavisualization/qtdatavisualization.index: no such file or directory"
ERRO[0007] failed to load /home/tobik/Buhvico/Apps/Libs/Qt/Docs/Qt-5.6/qtcharts/qtcharts.index  error="open /home/tobik/Buhvico/Apps/Libs/Qt/Docs/Qt-5.6/qtcharts/qtcharts.index: no such file or directory"
ERRO[0007] failed to load /home/tobik/Buhvico/Apps/Libs/Qt/Docs/Qt-5.6/qtquickcontrols2/qtquickcontrols2.index  error="open /home/tobik/Buhvico/Apps/Libs/Qt/Docs/Qt-5.6/qtquickcontrols2/qtquickcontrols2.index: no such file or directory"
WARN[0007] parser.LoadModule                             0_module=QuickControls2 error=EOF
INFO[0007] generating full qt/core                      
INFO[0007] generating full qt/gui                       
INFO[0007] generating full qt/network                   
INFO[0007] generating full qt/xml                       
INFO[0007] generating full qt/dbus                      
INFO[0007] generating full qt/sensors                   
INFO[0007] generating full qt/positioning               
INFO[0007] generating full qt/sql                       
INFO[0007] generating full qt/qml                       
INFO[0007] generating full qt/xmlpatterns               
INFO[0007] generating full qt/svg                       
INFO[0007] generating full qt/multimedia                
INFO[0007] generating full qt/quick                     
INFO[0007] generating full qt/sailfish                  
INFO[0007] running: 'qtsetup install sailfish'          
INFO[0007] running: 'qtsetup test sailfish'             
INFO[0007] testing sailfish/listview                    
ERRO[0009] failed to run command                         cmd="/usr/bin/vboxmanage registervm /home/tobik/Buhvico/Apps/Libs/SFOS/mersdk/MerSDK/MerSDK.vbox" env= error="exit status 1" func=RunCmdOptional name="register mersdk for sailfish on linux"
VBoxManage: error: Trying to open a VM config '/home/tobik/Buhvico/Apps/Libs/SFOS/mersdk/MerSDK/MerSDK.vbox' which has the same UUID as an existing virtual machine
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine, callee nsISupports
VBoxManage: error: Context: "OpenMachine(Bstr(a->argv[0]).raw(), machine.asOutParam())" at line 85 of file VBoxManageMisc.cpp

ERRO[0009] failed to run command                         cmd="/usr/bin/vboxmanage sharedfolder add MerSDK --name GOROOT --hostpath /usr/lib/go --automount" env= error="exit status 1" func=RunCmdOptional name="share GOROOT dir for sailfish on linux"
VBoxManage: error: The machine 'MerSDK' is already locked for a session (or being unlocked)
VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine, callee nsISupports
VBoxManage: error: Context: "LockMachine(a->session, LockType_Write)" at line 1012 of file VBoxManageMisc.cpp

ERRO[0009] failed to run command                         cmd="/usr/bin/vboxmanage sharedfolder add MerSDK --name GOPATH --hostpath /home/tobik/Buhvico/Programovani/golang --automount" env= error="exit status 1" func=RunCmdOptional name="share GOPATH dir for sailfish on linux"
VBoxManage: error: The machine 'MerSDK' is already locked for a session (or being unlocked)
VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine, callee nsISupports
VBoxManage: error: Context: "LockMachine(a->session, LockType_Write)" at line 1012 of file VBoxManageMisc.cpp

ERRO[0009] failed to run command                         cmd="nohup /usr/bin/vboxmanage startvm --type headless MerSDK" env= error="exit status 1" func=RunCmdOptional name="start vbox mersdk for sailfish on linux"
VBoxManage: error: The machine 'MerSDK' is already locked by a session (or being locked or unlocked)
VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine, callee nsISupports
VBoxManage: error: Context: "LaunchVMProcess(a->session, sessionType.raw(), env.raw(), progress.asOutParam())" at line 589 of file VBoxManageMisc.cpp

bash: go: command not found

PANI[0020] failed to build for sailfish on linux        
panic: (*logrus.Entry) (0x7248c0,0xc424d582d0)

goroutine 1 [running]:
github.com/Sirupsen/logrus.Entry.log(0xc420016140, 0xc424cec090, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x40e100, ...)
	/home/tobik/Buhvico/Programovani/golang/src/github.com/Sirupsen/logrus/entry.go:124 +0x340
github.com/Sirupsen/logrus.(*Entry).Panic(0xc424d58190, 0xc4267f6cc8, 0x1, 0x1)
	/home/tobik/Buhvico/Programovani/golang/src/github.com/Sirupsen/logrus/entry.go:169 +0x11b
github.com/Sirupsen/logrus.(*Entry).Panicf(0xc424d58190, 0x738867, 0x1c, 0xc4267f6f10, 0x2, 0x2)
	/home/tobik/Buhvico/Programovani/golang/src/github.com/Sirupsen/logrus/entry.go:217 +0xf8
github.com/Sirupsen/logrus.(*Logger).Panicf(0xc420016140, 0x738867, 0x1c, 0xc4267f6f10, 0x2, 0x2)
	/home/tobik/Buhvico/Programovani/golang/src/github.com/Sirupsen/logrus/logger.go:172 +0x86
github.com/therecipe/qt/internal/cmd/deploy.build_sailfish(0x72dae7, 0x4, 0x7ffcc46fc9fe, 0x8, 0xc426761570, 0x67, 0x0, 0x0, 0xc4267615cf, 0x8, ...)
	/home/tobik/Buhvico/Programovani/golang/src/github.com/therecipe/qt/internal/cmd/deploy/build.go:127 +0x10ce
github.com/therecipe/qt/internal/cmd/deploy.build(0x72dae7, 0x4, 0x7ffcc46fc9fe, 0x8, 0xc426761570, 0x67, 0x0, 0x0, 0xc4267615cf, 0x8, ...)
	/home/tobik/Buhvico/Programovani/golang/src/github.com/therecipe/qt/internal/cmd/deploy/build.go:31 +0x21c1
github.com/therecipe/qt/internal/cmd/deploy.Deploy(0x72dae7, 0x4, 0x7ffcc46fc9fe, 0x8, 0xc426761570, 0x67, 0xc42538ef00, 0x0, 0x0, 0x87c000)
	/home/tobik/Buhvico/Programovani/golang/src/github.com/therecipe/qt/internal/cmd/deploy/deploy.go:46 +0xa11
github.com/therecipe/qt/internal/cmd/setup.Test(0x7ffcc46fc9fe, 0x8, 0x72da00)
	/home/tobik/Buhvico/Programovani/golang/src/github.com/therecipe/qt/internal/cmd/setup/test.go:121 +0x657
main.main()
	/home/tobik/Buhvico/Programovani/golang/src/github.com/therecipe/qt/cmd/qtsetup/main.go:86 +0x21c

:(

@therecipe
Copy link
Owner

therecipe commented Mar 23, 2017

bash: go: command not found

this is strange, does the go binary exists in $GOROOT/bin/linux_386 ?

maybe start the mer sdk and try to run this:

ssh -p 2222 -i $SAILFISH_DIR/vmshare/ssh/private_keys/engine/root root@localhost ls /media/sf_GO*

to check if you can access both the GOPATH and your GOROOT

you should get something like this:

/media/sf_GOPATH:
bin
lib
pkg
src

/media/sf_GOROOT:
AUTHORS
CONTRIBUTING.md
CONTRIBUTORS
LICENSE
PATENTS
README.md
VERSION
api
bin
blog
doc
favicon.ico
lib
misc
pkg
robots.txt
src
test

@Huholoman
Copy link
Author

Huholoman commented Mar 23, 2017

Hello,
there is $GOROOT/bin/linux_386/go
also there is something in mounted sf_GOROOT and sf_GOPATH

tobik@tobikov:~$ ssh -p 2222 -i $SAILFISH_DIR/vmshare/ssh/private_keys/engine/root root@localhost ls /media/sf_GOPATH
bin
pkg
src
tobik@tobikov:~$ ssh -p 2222 -i $SAILFISH_DIR/vmshare/ssh/private_keys/engine/root root@localhost ls /media/sf_GOROOT
VERSION
bin
doc
favicon.ico.gz
pkg
src
test

Cheers

@therecipe
Copy link
Owner

ah, sorry I just setup a fresh machine and got the uname problem you had here:
#248 (comment)

I'm looking into it.

@Huholoman
Copy link
Author

Hah, cool, thank you very much :)

@therecipe
Copy link
Owner

Sorry for the long delay.

I made some minor changes with 19b9f87 and dbb5e1d

And tested it on linux, windows and macOS with Go 1.8 and Qt 5.7.1 (5.6 should work as well).

You probably should removed $GOROOT/[pkg|bin]/linux_386 first.
Could you try it again?

If it still won't work, could you tell me if you set multiple GOROOT and/or GOPATH?

@Huholoman
Copy link
Author

Hello, thanks for reply, its absolutely ok. I'll definitely try it today!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants