[Qt-interest] Switching Qt Installation

Stephen Jackson spjackson42 at gmail.com
Tue Oct 13 11:04:21 CEST 2009


On Mon, Oct 12, 2009 at 8:41 AM, Frank Neuhaus wrote:
> Hi,
>
> I installed Qt 4.5.2. with my Linux Distribution (Fedora)'s packet
> manager. Now I want to compile the latest git version of Qt creator,
> which unfortunately requires 4.6.0. I downloaded the 4.6.0 tech
> preview edition, compiled and installed it. It installed into
> /usr/local/Trolltech/Qt-4.6.0-tp1/.
> The problem is that even when explicitly calling
> /usr/local/Trolltech/Qt-4.6.0-tp1/bin/qmake, qmake generates Makefiles
> that include /usr/include/QtSomething, which obviously belong to my
> old Qt 4.5.2 installation. Environment variables such as QTDIR appear
> to be ignored.
> How can I tempoarily change my installation to 4.6.0 to compile Qt creator?
>

I haven't used 4.6 or tried to compile Qt Creator. However, specifying
the path to qmake (or setting PATH) is all I need to do to switch
between Qt versions for building application code. As I understand it,
that is all you are supposed to do.

If that isn't working for you (as you indicate above), I suggest that
you check whether this is something specific to building Qt Creator,
and also whether you have any environment variables pointing at
/usr/include/QtSomething. Do you run "configure" for building Qt
Creator? Is that where it is going wrong?

I hope this gives you some clues.

-- 
Stephen Jackson



More information about the Qt-interest-old mailing list