Friday, May 3, 2024
12
rated 0 times [  12] [ 0]  / answers: 1 / hits: 3833  / 2 Years ago, mon, october 3, 2022, 11:46:41

When the Ubuntu SDK preview was announced on the 2nd of January, it was based on the Qt 5 Beta release (as Qt 5 had not yet been released and packaged for Ubuntu). At some point, the Qt 5 release was packaged on a separate PPA and the Ubuntu SDK migrated to be based on the contents of that PPA.



New installs work fine as described on the Ubuntu SDK installation instructions, but I'd like to know how those of us who installed it on release day on the 2nd can migrate to the latest version of the SDK, as the change of PPAs requires a manual upgrade.



This seems to be related to reports of folks who get the "error importing Ubuntu.Components" message when upgrading the SDK.


More From » application-development

 Answers
3

During the migration from the Qt 5 Beta to the Qt 5 Release, the packaging changed significantly. This means upgrading the SDK is not a trivial task such as sudo apt-get upgrade, and a few manual steps are necessary.



Migration: from the Qt 5 Beta 1 to Qt 5.0




  1. Open the ~/.bashrc file



    $ gedit ~/.bashrc


  2. Remove the 'export PATH=/opt/qt5/bin:$PATH' line from the ~/.bashrc file


  3. Uninstall Qt Creator temporarily



    $ sudo apt-get remove qtcreator qt4-qmlviewer


  4. Purge the Qt 5 Beta 1 PPA



    $ sudo apt-get install ppa-purge



    $ sudo ppa-purge ppa:canonical-qt5-edgers/qt5-beta1


  5. Install the Ubuntu SDK preview



    $ sudo add-apt-repository ppa:ubuntu-sdk-team/ppa && sudo add-apt-repository ppa:canonical-qt5-edgers/qt5-proper && sudo apt-get update && sudo apt-get install ubuntu-sdk notepad-qml


  6. Test that the Component Showcase app can be executed:



    $ qmlscene /usr/lib/qt-components-ubuntu/demos/ComponentShowcase.qml



[#32703] Wednesday, October 5, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lotceptin

Total Points: 374
Total Questions: 106
Total Answers: 118

Location: The Bahamas
Member since Tue, Apr 27, 2021
3 Years ago
;