[Solved] How to build Desktop apps with Nokia Qt Creator
How do I build desktop apps with Nokia Qt SDK creator? I only have mobile build targets. I don't want to install Qt SDK also. That seems extremely redundant. Any help would be appreciated.
If you download the desktop Qt development framework for your platform from "here":http://qt.nokia.com/downloads, you can go into creator's Qt4 settings tab and add that in as a new Qt Version.
It's very strange that you have only mobile build targets. Are you sure? With the Qt-Creator you should create a new project and you can decide what kind of project create.
It's important that you know on what platform you plan to deliver your project because the program should be compiled on the same.
From the menu File / New File or Project you can select what kind of project you want, including a UI project for the desktop as the image below:
Then, after inserting the destination folder for your project and the project name, you can select the destination platform as shown in the last image below.
From the second image, I don't have any option (or similar option) for Desktop Qt. Nor do I understand what is actually needed to build a desktop application. Maybe this is not packaged with Nokia's Qt SDK (that would be annoying). If so, is there a way to add the desktop version? I think mlong was onto something above. Maybe he can expand his description a little more. Again, I don't want to have two installations of Qt just to dev on mobile devices and desktops.
Appreciate the help.
bq. Again, I don’t want to have two installations of Qt just to dev on mobile devices and desktops.
Can you clarify exactly what you mean by this? You'll need an installation of the desktop libraries, etc. in order to do desktop development.
It's very strange. If you download and install the complete Qt-Sdk it include also the full IDE (formerly Qt-Creator). I have done this, and what you see is a portion of my desktop.
What I think that seems strange to you is the initial choice is for "C++ UI Interface" where is not mentioned the desktop option. Then you are asked for the project name and folder (it's normal). The next window (the second image I posted) ask you for the platform, that always include Desktop. If you doesn't have this screens, please show me what kind of screens you have.
Sorry, I meant to say I don't want to have to run two different executables that are both called Qt Creator with one allowing me to dev desktop and the other allowing me to dev mobile.
Is there a way to get just the desktop libraries? So that I can somehow add that to my current installation of Nokia Qt SDK, thus allowing me to add a "desktop" project version to my Qt Creator settings and thus circumventing the need to install another Qt Creator on my machine.
No, you don't. When you install Qt you have all the environment set.
I don't know if there is a way to install only the desktop libraries etc against the full product, but it's no so impacting on your hard disk space. Then, I see that there are some components that are common to all the platform.
Consider that Qt, regardless by the graphical interface of the ide and its very well formed structure for multiplatform development, is essentially a toolchain compiler / maker / builder. Thus, you install a system, in its best and more manageable configuration.
There's always the option of downloading and building the desktop libraries from source, but I fear that may be beyond the scope of an "easy solution" depending on one's comfort level, experience, and sense of adventure. ;-)
Thanks for the response. Do you still think I should be seeing a Qt Desktop version when I am creating a project then?
Here's what I have in my environment.
I saw your images. It's very strange, in the previous screen you read that the choice is for a Desktop application, then this option there isn't.
What version do you downloaded? Platform you are working on?
Yes, I should have been more explicit about the version I installed earlier.
This is the link I got the SDK from: http://www.forum.nokia.com/Develop/Qt/Tools/
Windows 7 64-bit
Found this somewhere:
_“Nokia Qt SDK” == Qt Simulator (i.e. desktop based) + Qt for Symbian (incl. all necessary tool chains) + Qt for Maemo (incl. all necessary tool chains) + Mobility API + Qt Creator
“Qt SDK” == Qt for a desktop platform + Qt Creator
So if you want to
a) Develop for Mobile only: Install the “Nokia Qt SDK”.
b) Develop for Desktop only: Install the “Qt SDK”.
c) Develop for Mobile and Desktop: Install the “Nokia Qt SDK” and a Qt-only package for a desktop platform. Reason is to avoid installing multiple (probably different versions of) Qt Creator, and I’d recommend to use the Qt Creator version that is shipped with the “Nokia Qt SDK”.
It would definitely make sense to at the very least merge the installers, such that you are able to also install mobile components from the “desktop SDK” and desktop components from the “mobile SDK”._
Where do I find a Qt-only package for a desktop?
the first misunderstanding I find is the following:
bq. _“Nokia Qt SDK” == Qt Simulator (i.e. desktop based) + Qt for Symbian (incl. all necessary tool chains) + Qt for Maemo (incl. all necessary tool chains) + Mobility API + Qt Creator
SImulator is NOT for desktop. Simulator is used under Linux platforms to simulate the developed programs under several mobile platforms i.e. symbian S60, symbian^3, touch and non touch devices etc. NEVER for desktop.
bq. “Qt SDK” == Qt for a desktop platform + Qt Creator
bq. NO. Qt SDK == Software development kit.
As a matter of fact, to work on desktop only you need to install Qt-Creator, while to develop for mobile and embeded plaftorms also you need to install SDK and Not or also the Qt-Creator, where the common elements are maintained (you find the two installations in different install folders).
Well, at this point what it seems that you need is to go here: http://qt.nokia.com/downloads
then you download the Qt Creator 2.1 (don't matter if this is formerly last beta version, also SDK beta are perfectly working!) for Windows (or other platforms) at the link here: http://qt.nokia.com/downloads/qt-creator-binary-for-windows
This should be the Qt version and not the SDK.
If you read on the same download page (I thought that you select LGPL open source license of Qt) the Qt-SDK conatains ALSO the Creator and Ide, plus what is needed (you don't need) for mobile development.
Note: Qt SDK 1.1 Beta is now available which includes final versions of Qt Creator 2.1, Qt 4.7.2 and Mobility 1.1.1 and covers both desktop and mobile.
bq. The current Qt SDK includes:
* Qt libraries version 4.7.0. (change notes)
* Qt Creator IDE version 2.0.1 (change notes)
* Qt development tools
Not only, but to confirm this, after the installation of the Qt-Creator (for any platform) from the welcome page you find the direct link Creating a mobile application. The first thing that you read on the help page is:
Creating a Mobile Application with Qt SDK
Note: To complete this tutorial, you must install Qt SDK. The installation program installs and configures the necessary tool chains for mobile application development.
This tutorial describes how to use Qt Creator to create a small Qt application, Battery Indicator, that uses the System Information Mobility API to fetch battery information from the device.
Just because Qt-Creator is mainly for desktop development and don't include many of the components needed for mobile development.
Thanks, I'll give that a whirl.
Yep, I needed the Nokia SDK 1.1 Beta in order to build to desktop and mobile versions. Problem [SOLVED]. Muchas gracias.
Wow, you ended up with a really really old version of the SDK:-) Where did you find that link? It should only be available in a section for previous versions and not as one of the main download links...
It was only an example, and in effect I had some difficult to find this link. It's on the versions listed under qt developer forum and not the primary forum.nokia.com
I saw that in this there are now only the last sdk versions. But It was necessary to show the right example to that guy.
As a matter of fact, I save a local backup of all the versions of os and dev environments I download (that I find useful). So if the things changes I have a local history almost to remember my path.