Sunday, May 12, 2024
 Popular · Latest · Hot · Upcoming
42
rated 0 times [  42] [ 0]  / answers: 1 / hits: 111984  / 1 Year ago, wed, march 1, 2023, 6:18:20

If you want to develop with QML 2.0 and Qt5, the base packages don't seem to exist in repository for 12.04. What PPA should I add? Is it a binary installer? a compile the toolkit yourself?



Those aren't separate questions, they're just possible tracks to an answer.



I'm asking because if you want to develop for Ubuntu Phone, but still have a rock solid LTS development box, this seems the appropriate path.



How can I install Qt 5.x on 12.04 LTS?


More From » 12.04

 Answers
0

This can be done by adding the following PPA to your system:




ppa:canonical-qt5-edgers/ubuntu1204-qt5 Launchpad logo (Click here for instructions on using PPAs.)




You can usually do this with the following commands:



sudo apt-add-repository ppa:canonical-qt5-edgers/ubuntu1204-qt5
sudo apt-get update


The next step is to install the necessary packages for Qt5 / QML 2.0 development. You can do that by running these command:



sudo apt-get install qtdeclarative5-dev


This will install the headers / libraries necessary for development with desktop Qt and QML. You will also probably want to grab the latest release of Qt Creator from this page.



I've found that Qt Creator sometimes has problems finding your new Qt5 installation. If that is the case, perform these steps:




  1. open it up and go to Tools->Options

  2. click the "Build & Run" section in the left menu

  3. click the "Qt Versions" tab

  4. click "Add..." and enter the location that corresponds with your OS:



    32-bit: /usr/lib/i686-linux-gnu/qt5/bin/qmake

    64-bit: /usr/lib/x86_64-linux-gnu/qt5/bin/qmake




Previously these packages were located here:




ppa:ubuntu-sdk-team/ppa Launchpad logo




According to the "Ubuntu SDK Team": Old Ubuntu 12.04 LTS Qt 5.0 packages have been moved to https://launchpad.net/~canonical-qt5-edgers/+archive/ubuntu/ubuntu1204-qt5/, and that seems to have occurred sometime in May of 2016.


[#31838] Wednesday, March 1, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
eaderitable

Total Points: 368
Total Questions: 117
Total Answers: 111

Location: Tuvalu
Member since Sat, Feb 11, 2023
1 Year ago
eaderitable questions
Tue, May 24, 22, 07:37, 2 Years ago
Mon, Aug 23, 21, 02:31, 3 Years ago
Thu, Mar 2, 23, 23:23, 1 Year ago
Wed, Apr 6, 22, 13:20, 2 Years ago
Tue, Dec 14, 21, 16:57, 2 Years ago
;