Skip to content

Instantly share code, notes, and snippets.

@adam-lee
Created August 11, 2015 21:34
Show Gist options
  • Save adam-lee/985dcab8df0f82280e75 to your computer and use it in GitHub Desktop.
Save adam-lee/985dcab8df0f82280e75 to your computer and use it in GitHub Desktop.

###QtCreator Remote Development And Deployment with SDK

####Install On Ubuntu 15.04's PPA has an outdated version of QtCreator (3.1.1). Remote deploy and debug do not work with the version of QT5 included in meta-qt5 (qt5.4.3). Instead, we will use an up-to-date version from Qt.io.The web installer from qt.io (https://www.qt.io/download/) lets you pick the version of QTCreator (3.4.2 in this case) you want. The binary of the web installer is named qt-unified-linux-x64-online.run for a system running 64bit Ubuntu 14.04. Download the installer suitable for your workstation. The installer lets you pick the version of QT5. Make sure to choose Qt5.4 to match with meta-qt5. Also note that you will have to create an account for Qt to install.

qt5-web-install

####Configuration We will configure QtCreator with cross compiler, debugger, and Qt library which are all included in the SDK. However we still have to make sure the environment supplied by the SDK is sourced before launching QtCreator:

$ source /opt/poky/1.8/environment-setup-cortexa8hf-vfp-neon-poky-linux-gnueabi

And then be sure to start up Qt Creator from the same shell:

$ ~/qtcreator-3.4.2/bin/qtcreator

Once it launches, we can set the compilers, debuggers, a Kit, and a remote device. Make sure to use the cross-toolchains available from the SDK. Take a look at the screenshots for detail:

qt5-creator-configuration

qt5-creator-configuration-2

qt5-creator-configuration-3

qt5-creator-configuration-4

Now QtCreator is ready for remote application development and debugging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment