How To Install And Configure Ubuntu SDK In Ubuntu 16.04 & 14.04

Install and configure Ubuntu SDK in UBuntu 14.04, 14.10, 15.04

If you are looking to develop applications for Ubuntu, you need to install Ubuntu SDK (Software Development Kit). Ubuntu SDK is based on Qt Creator (IDE for Qt development) and tailored for developing apps for Ubuntu and Ubuntu Touch. While I am not going to teach you Qt development, I can surely show you how to install and configure Ubuntu SDK in Ubuntu 16.04 and 14.04. You can work on your own thereafter as tons of help is available online.

Install Ubuntu SDK in Ubuntu 16.04 & 14.04

Since it relates to Ubuntu, no wonder Canonical has provided an official PPA to easily install Ubuntu SDK in Ubuntu 16.04 and 14.04. Open a terminal and use the following commands:

sudo add-apt-repository ppa:ubuntu-sdk-team/ppa
sudo apt-get update
sudo apt-get install ubuntu-sdk

It will download and install Ubuntu SDK. Note that it downloads around 1 GB of data for Ubuntu SDK. So keep your internet connection and data charges in mind. Installing the Ubuntu SDK is the easy part. What might confuse you as a newbie, is how to configure Ubuntu SDK for development. We are going to see it in next section.

Configure Ubuntu SDK

Search in Dash for Ubuntu SDK. Note that you’ll find both Qt creator and Ubuntu SDK installed. Always use Ubuntu SDK if you are aiming to develop applications for Ubuntu.

Run Ubuntu SDk in Ubuntu

When you run the Ubuntu SDK for the first time, it will take you to a number of steps to configure the SDK.

Welcome screen Ubuntu SDK

Next step is to create a kit. Basically, this means the architecture and version of Ubuntu you are targeting for. You can create and add multiple kits. It’s not a big deal. For the sake of emulator to work fine, Ubuntu suggests to use i386 architecture.

Create kit in Ubuntu SDK

As I said, you can choose whatever architecture and Ubuntu version you want and you can add as many Kits as you want.

Configure_Ubuntu_SDK_3

You’ll have to enter your admin password here:

Configure_Ubuntu_SDK_4

Once you do this, you’ll see a screen like this:

generating Ubuntu SDK kit

It will take few minutes to generate the kit. Once generated, you’ll have the option to close this screen:

Ubuntu SDK kit generated

When you have generated a kit, select the kit and move to the next screen:

Configure_Ubuntu_SDK_7

You’ll be asked to create an emulator. You should create one so that you won’t need a physical device for testing your apps.

Create an emulator

Once you do this, you’ll be greeted with welcome screen of Ubuntu SDK. You’ll see plenty of examples and tutorials here.

Ubuntu SDK Welcome Screen

We are almost done with configuring Ubuntu SDK. We just need to verify if the SDK is working fine or not. To do this, you can open a demo project from examples and run it. The problem you’ll face here is that the examples are stored in a location that needs super user access. So, Ubuntu SDK will give you an option of copying the demo project to a location that doesn’t require super user access, such as home directory.

But the problem won’t be solved by this. Because it will copy just the demo project. And the demo project have files that are using header files from other projects. So at the en you’ll be seeing lots of error and the project won’t run successfully.

To get rid of this issue, what I did was to copy the whole examples directory from /usr/lib/x86_64-linux-gnu/qt5/examples/quick

cd ~
mkdir qt_examples
cp -r /usr/lib/x86_64-linux-gnu/qt5/examples/quick qt_examples

Once you have copied the whole directory, in the Ubuntu SDK, go to Projects and open the project from quick/demo.

Configure_Ubuntu_SDK_12

Run the demo project.

Run a project in Ubuntu SDK

If it is properly configured, you should see the demo application screen.

Run apps in Ubuntu SDK

That’s it. I hope this tutorial helped you to install and configure Ubuntu SDK in Ubuntu 16.04 and other higher versions. Good luck with creating new apps for Ubuntu. If interested, you can read about how to create webapp for Ubuntu Phone.

About the author
Abhishek Prakash

Abhishek Prakash

Created It's FOSS 11 years ago to share my Linux adventures. Have a Master's degree in Engineering and years of IT industry experience. Huge fan of Agatha Christie detective mysteries πŸ•΅οΈβ€β™‚οΈ

Become a Better Linux User

With the FOSS Weekly Newsletter, you learn useful Linux tips, discover applications, explore new distros and stay updated with the latest from Linux world

itsfoss happy penguin

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.