QT code for U Touch returns `qmlscene: cannot find qt installation of ''`
I'm trying to start developing for Ubuntu and Ubuntu phone, but I get an error:
qmlscene: cannot find qt installation of ''when I attempt to run my application in Ubuntu from the command line. I'm very new to Linux, so if you could fully explain what I need to do to fix it, then that'd be great. I'm running Ubuntu 13.04 in a VirtualBox virtual machine on an Asus N56VZ laptop. I installed the Ubuntu SDK using the instructions on , so I really have no idea what's wrong.
22 Answers
I was able to reproduce this by following the Get Started instructions and testing with the Ubuntu Weather App. There must be either an error in the instructions or a bug in the Ubuntu SDK packages.
This seems to work as a temporary workaround:
Look up the name of your Qt installation:
$ qtchooser -list-versions qt5-x86_64-linux-gnuSpecify the name using when running
qmlscene, which is just a symlink to Qt Chooser:$ qmlscene -qt=qt5-x86_64-linux-gnu ubuntu-weather-app.qml
While the above answer is correct in one sense, it's an indication the 'default' configuration has not been installed or is not reachable. qmlscene should work without specifying -qt= option.
The qtchooser listing should show the following on Ubuntu 13.04 for example:
$ qtchooser -list-versions
qt5-x86_64-linux-gnu
default
qt5The following commands should make sure you are up-to-date:
sudo add-apt-repository ppa:ubuntu-sdk-team/ppa
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install ubuntu-sdk If those do not help to give the above qtchooser listing, additional debugging would be needed. Above all, the 'sudo apt-get dist-upgrade' was previously lacking in the official instructions at which may have caused problems for Ubuntu 13.04 users.
1