This post is more for me than you. A combination of client wanting me to do some QML stuff and having done too many horrible things to my desktop set me up for a wipe and re-install of Ubuntu 16.04.
NOTE: I wasted all of Sunday with various crashes and being unable to boot. And this was a machine which had been running 16.04 64-bit. The clean install would go great, taking forever with downloads due to weather and weekend Internet load, then during the last round of updates it would just crash after a “battery critically low” notification. The screen on the APC UPS showed 118 minutes at current load.
I forget how many times I endured this process. Finally in a “details” window I found the culprit. It was in the process of applying firmware updates when the wheels came off the cart.
Work Around – Remove the funky USB-RJ45 cable to the UPS then do clean install and apply all updates before plugging back in.
Here is what I did:
- Clean install of Ubuntu 16.04 from DVD without checking boxes for updates or proprietary software.
- After reboot installed NVIDIA 340.6x driver and rebooted.
- Applied all updates and rebooted.
- Installed Synaptic package manager.
- From within Synaptic installed: Calibre, LeafPad, Scite, Guake, FocusWriter, Jed, Jed-extras, postgresql, posgresql-contrib, codelite, codelite-plugins accepting all recommended additional packages.
Open Linux terminal:
sudo add-apt-repository ppa:webupd8team/atom
sudo apt-get update
sudo apt-get install atom
Now, back in Synaptic installed the following accepting all recommended additional packages:
qtdeclarative5-examples qtdeclarative5-doc-html qtdeclarative5-dev qtcreator qt5-default qtquick1-5-examples qtquickcontrols5-examples qtquickcontrols5-doc-html qtserialport5-doc-html libqt5serialport5-dev qtscript5-examples qtscript5-doc-html qtscript5-dev qtquickcontrols5-doc qml-module-qtquick-extras qtbase5-examples qtsensors5-examples qttools5-examples libqt5sensors5-dev libqt5sql5-psql qt5-doc qt5-doc-html
After rebooting opened a terminal and did the following:
id roland sudo adduser roland dialout id roland
Rebooted one last time though logging out and in would have worked. Copied in all of the saved directories with various project code, then configured QtCreator to use 5.1 again (codelite-plugins instals qmake from qt4 but not the rest of qt4.) Hooked up the serial cable and built our Qt Pi example program, all was right with the world.
But does the new Ubuntu world include the basics of QML development? We need to gen a HelloWorld application to find out.
When we click on the green run arrow we see the following: