QtCreator: Having trouble getting 2.3.1 to work with qtSDK 4.6.2
-
Hi,
I just upgraded from QtCreator 2.0.1 to QtCreator 2.3.1. My company is currently using QtSDK 4.6.2. (which should be okay, right?) I downloaded the installation file for the executable for linux 64 bit.
The problem that I'm having is that I'm not getting any completion for my Qt classes and I'm only seeing addresses for Qt objects when debugging. In version 2.0.1 I went to Tools->Options->qt4->Qt Versions and turned on Debugging Helper. I could also rebuild the debug helper.
With 2.3.1 the first thing I notice is that in this version of QtCreator is that it is not auto detecting my installed version of the qtSDK. Helpers is set to None available, and the entries for QML Dump, QML Debugging Library, and QML Observer all say "Cannot Be Compiled."
Any clue how I can get this working again? There are some features in this version that I'd really like to use.
Thank you.
-
Are you using Qt Creator 2.3.1 as installed by an SDK or from a stand-alone binary? I don't get that from your description. The Qt SDK is at version 1.1.3, so I assume you have a stand-alone Qt 4.6.2 installed?
You will need to register stand-alone Qts to make them work again. If you had a Qt SDK installed you can always symlink the /QtSDK/QtCreator/share/qtcreator/Nokia folder over into the new creator's share/qtcreator directory. That should get the Qt versions recognized again.
For debugging please make sure you have gdb version 7.2 or later. That one works way better than previous versions! You do no longer need the debugging helpers for gdb version 7.0 or later, so that should be fine. The QML related helpers depend on the Qt version used, so one needs to be selected before you can build those (IIRC, I hardly ever use QML so far).
-
Yes, I downloaded and installed Qt Creator 2.3.1 as a stand alone binary from the Qt support site. My Qt installation is the Ubuntu installation installed by our system administrator (and it is 4.6.2.) I'm currently using gdb 7.1. I will talk to my sysadmin about upgrading.
Compilation with 2.3.1 was working fine. It's the pretty features I'm missing.
bq. "You do no longer need the debugging helpers for gdb version 7.0 or later, so that should be fine. The QML related helpers depend on the Qt version used, so one needs to be selected before you can build those (IIRC, I hardly ever use QML so far)."
It's the "so one needs to be selected" piece of the puzzle that I'm missing. I created new Qt Creator files and set the project up from scratch. Doing that, I now see that my Qt version has been auto detected and my name completion is back on. However, I'm still seeing addresses and not values in the Locals pane.
How do I find the QML related helpers? Are they included with Qt Creator or do I have to download something to get the appropriate ones for the version of Qt that I'm running.
Thank you.
-
The QML helpers are part of Qt Creator, so no extra download is necessary.
Please consider "filing a bug report":http://bugreports.qt.nokia.com/ about your debugging issues.