Red Hat Bugzilla – Bug 657498
qt-creator/QmlDesigner requires qt private headers
Last modified: 2011-04-18 00:07:23 EDT
Description of problem:
qt-creator is build without the QmlDesigner plugin. I guess this requires a SPEC update (from the build log):
Project WARNING: QmlDesigner plugin has been disabled.
Project WARNING: The plugin depends on private headers from QtDeclarative module.
Project WARNING: To enable it, pass 'QT_PRIVATE_HEADERS=$QTDIR/include' to qmake, where $QTDIR is the source directory of qt.
Version-Release number of selected component (if applicable):
Minimum requirement would be a rebuild against qt-4.7.1.
It also checks for this file:
I haven't found this one yet in the qt-4.7.1 rpms, maybe they also need an update?
I installed the above mentioned upgrade, but the Design button in qt-creator
is still greyed out.
Double clicking on a .qml file does nothing.
I take it that these symptoms are a consequence of the bug of the original poster.
Neither did I find a qt-creator upgrade in upgrades testing
qt-creator needs to be recompiled against qt-4.7.1. But that alone is not enough, it needs private Qt header files. The qmake configuration checks for (typed from my head, please check the .pro file in qt-creator):
Those would need to be added to qt-devel in order to be able to compile the QmlDesigner plugin in qt-creator. It might make sense to put them into a separate RPM just for qt-creator build requirements, maybe qt-qmldeclarative-devel?
More like qt-devel-private, to make it clear that those are not public APIs.
After updating to qt-4.7.1-3 I extracted the private headers from the SRPM and re-tried the qt-creator build. Unfortunately the Qt private headers use
i.e. they include also private source code headers.
Here is the complete list of directories/headers I had to extract from the Qt 4.7.1 source code to get qt-creator/QmlDesigner compiled
(this list might be to exhaustive)
I guess qt-devel-private would need to include
IMHO in the current state it doesn't make sense to have qt-creator as separate RPM build, but should be integrated into the qt RPM build instead.
I raised the problem on the qt-creator mailing list. Here is their answer:
"Meanwhile you have to compile creator against a self-compiled Qt (which
must also be the the exact same Qt version it will run with), and
specify the location of the private headers in the Qt source tree e.g.
via `qmake -r "QT_PRIVATE_HEADERS=$QTDIR/include"
So the suggestion would be to build qt-creator with qt and generate it as a subpackage, at least for qt 4.7.x.
phonon-4.5.0-2.fc15,qt-4.7.2-8.fc15 has been submitted as an update for Fedora 15.
Package phonon-4.5.0-2.fc15, qt-4.7.2-8.fc15, phonon-backend-gstreamer-4.5.0-1.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing phonon-4.5.0-2.fc15 qt-4.7.2-8.fc15 phonon-backend-gstreamer-4.5.0-1.fc15'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
phonon-4.5.0-2.fc15, qt-4.7.2-8.fc15, phonon-backend-gstreamer-4.5.0-1.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.