How to build and use QmlDesigner on Qt-Creator

May 24, 2010 · Posted in Gentoo, Programming 

I must admit that I haven’t took care of qt-creator ebuilds lately and this is because  I simply couldn’t test them. I was using Qt-4.6.9999 live ebuilds whilst live qt-creator wanted explicitly Qt-4.7. Yesterday I finally updates my Qt installation to Qt-4.7 and it was about time to start working on qt-creator ebuilds again.

Qt-4.7 now brings Qt-declarative module which allows you to create flexible applications based on QML language. A designer plugin is already implemented on qt-creator in order to help you quickly develop such applications.

Unfortunately, this plugins requires private headers for Qt4 library so I needed to edit qt-{core,gui,script,declarative} ebuilds to install those private headers. Qt upstream inserted a special configure switch to use when you build your Qt4 library (-developer-build) but I decided that rebuilding the whole Qt library for that was too much.

What I did was to introduce a new use flag ‘private-headers‘ on those ebuilds.  So if you want to have a fully working qml+designer support on qt-creator do the following:

edit /etc/make.conf and add private-headers use flag on USE variable. Then run

USE=”qml” emerge qt-creator

Before merging qt-creator, portage will rebuild qt-{core,gui,script,declarative} ebuilds in order to have those private headers installed.

 

Comments

Leave a Reply




GreekBloggers.com
Patras Wireless Metropolitan Network
Planet Hellug
iloog
forum hellug