> -----Original Message----- > From: [email protected] [mailto:qt- > [email protected]] On Behalf Of ext > Samuel Stirtzel > Sent: Thursday, November 17, 2011 1:40 PM > To: [email protected] > Subject: [Qt-creator] Error building QmlDesigner plug-in, include directory > moved? > > Hi, > the Ubuntu/Kubuntu packages are stuck with qtcreator version 2.2.1, > therefore I compiled the latest source from git.
You could also use the Qt SDK , or download binary packages for Qt Creator standalone, from http://qt.nokia.com/downloads/ . > Using qmake && make allowed me to compile the project, but obviously the > designer plug-in failed. > > The warning that rises is: > Project WARNING: > 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. > > Even with: qmake "QT_PRIVATE_HEADERS=$$QT_BUILD_TREE/include" > $SOURCE_DIRECTORY/qtcreator.pro > the plug-in is still disabled. > > > > I also tried the command suggested in the readme with other paths (from > the libqt4-dev package), /usr/share/qt4/include and /usr/include/qt4 were > tried instead of $$QT_BUILD_TREE/include, but with no success. The private headers aren't there if you choose to 'install' Qt running make install, and packaging the installed directory, which probably all Linux distros do. > Qmake complains about that no private headers where found, so the private > headers seems not to be included in the libqt4-dev package. > > Cloning Qt from git (as in the HEAD revision of > http://qt.gitorious.org/qt) also doesn't provide the right include directory, > same goes for QtBase, or am I completely missing something? After cloning and running configure the header files should be there. Check e.g. for $QTDIR/include/QtDeclarative/private . You should now be able to configure & compile Qt e.g. via ./configure -prefix "." -nomake examples -nomake demos && make (-prefix "." ensures that you don't have to run make install, and the libs work directly in their build directory. Using e.g. -developer-build does the same , and some other stuff). Afterwards you should be able to compile Qt Creator against this Qt. But make sure that you're using the right Qt branch! > Now my question is, how can I compile the designer plug-in with the Qt & Qt- > creator HEAD revisions from git? > Help would be very much appreciated. > > > > Information about the build system: > $ cat /proc/version && uname -m > Linux version 3.0.0-12-generic (buildd@crested) (gcc version 4.6.1 > (Ubuntu/Linaro 4.6.1-9ubuntu3) ) #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC > 2011 > x86_64 > > Qt version 4.7.4 was installed with apt-get, the same for the libqt4-dev > files. > > -- > Regards > Samuel > _______________________________________________ > Qt-creator mailing list > [email protected] > http://lists.qt.nokia.com/mailman/listinfo/qt-creator _______________________________________________ Qt-creator mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt-creator
