Can I use 12.04 to build Ubuntu Phone apps? The example indicates 12.10.
1 Answers
Yes.
Requirements
The example provided at Ubuntu App Developer lists the requirements for:
Operating System – Ubuntu (12.04 and higher is required because of PPAs mentioned below)
Qt5 and Ubuntu QML Toolkit available from the following PPAs. Both the PPAs provide packages for Precise (12.04) and higher.
A Code Editor (preference for Qt Creator
- although you may use the editor of your choice)
Terminal Commands
Running the following commands should install everything you need:
sudo add-apt-repository ppa:canonical-qt5-edgers/qt5-proper
sudo add-apt-repository ppa:ubuntu-sdk-team/ppa
sudo apt-get update && sudo apt-get install ubuntu-sdk notepad-qml
If you also want to install Qt Creator:
sudo apt-get install qtcreator
Note if you already have Qt4 or if you plan to use that in future
It's good to read the following note from PPA:
Qt4 and Qt5 are fully co-installable with the migration to the new
qtchooser
tool. [note: on 12.04 LTS not yet simultaneous Qt4 / Qt5 development executables, but libraries are fine]. The previous Debian/Ubuntu approach relied on renaming binaries and using alternatives. When packaging against Qt5, include a dependency toqt5-default
in addition to other dependencies. For Qt4, useqt4-default
. Installqt5-default
also on your machine to have Qt5 as the default configuration. Seeman qtchooser
for more information.If you have older Qt4/Qt5 packages that have wrong/higher version numbers or conflict otherwise, you may use a variation of the following to force the versions in this repository, provided the other PPA:s are disabled:
- Qt5 revert: Pastebin Link
- Qt4 revert: Pastebin Link
- Qt4 revert if you've both i386 and amd64 installed: Pastebin Link.
You can use the same to revert also to original archive versions, before which you should do
sudo dpkg -P qt5-default qtchooser
.