Saturday, July 5th 2008, 6:37am UTC+1

You are not logged in.

  • Login
  • Register

igor

Beginner

Posts: 34

Location: Southern Maryland, USA

1

Saturday, January 12th 2008, 11:06pm

Installing multiple versions - How on Mac and Windows ?

On a Unix/Linux box, QTDIR drives everything. Change it and you can change which Qt version you are pointing to/using.

I want to do that on both a Mac and a Windows-XP machine.
I want to have a my stable 4.3.x Qt and I want to experiment with the 4.4 preview, but I do not have the luxury of having separate machines to install on.

How, please ? ?(
"Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us." Calvin (Bill Watterson)
  • Go to the top of the page

stinos

Intermediate

2

Sunday, January 13th 2008, 12:00pm

exactly the same way as on *nix: just change QTDIR.
madinsjamania
  • Go to the top of the page

igor

Beginner

Posts: 34

Location: Southern Maryland, USA

3

Sunday, January 13th 2008, 3:41pm

Quoted

Originally posted by stinos
exactly the same way as on *nix: just change QTDIR.

:( I'm sorry to disagree, but that does not work. I have already tried it. That is why I posted the question.

:)
Contrarywise, on other fora, I am informed that include and library paths are hard-coded into qmake, so to flip between Qt 4.x versions, I need to flip between specific instances of qmake.

So, rather than mess with QTDIR, I am going to try setting up an (alias/link/shortcut) to each version of qmake.

I will post my results, good or bad, after I have a chance to work with this idea.

8)
"Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us." Calvin (Bill Watterson)
  • Go to the top of the page

mfx-

Beginner

Posts: 9

Location: Bátaszék, Hungary

Occupation: still a student @ University of Szeged

4

Sunday, January 13th 2008, 9:16pm

On winxp: Every Qt installs itself in a different directory. They also have a shortcut for launching themselfs in a preconfigured environment (e.g. see in your Start menu ~ something like "Launch Qt 4.3.3 Opensource with MinGW - there are all env variables set up according to the Qt version you are going to use). You should try this. Besides the Eclipse integration plugin also supports multiple Qt installations, you only have to configure them.

I never in my life saw a Mac nor an OS X so I don't have an idea how things work there... :P
The quick thought is worth more than the quick move.
  • Go to the top of the page

stinos

Intermediate

5

Monday, January 14th 2008, 9:32am

Quoted

Originally posted by igor

Quoted

Originally posted by stinos
exactly the same way as on *nix: just change QTDIR.

:( I'm sorry to disagree, but that does not work. I have already tried it. That is why I posted the question.


are you sure? I have two qt4 and one qt3 versions, and I only have to change QTDIR. It doesn't matter that qmake has it's paths hardcoded, changing QTDIR also changes the qmake used, at least when QTDIR/bin is in your path.
madinsjamania
  • Go to the top of the page

sophtware

Beginner

Posts: 2

Location: Dacula, GA

6

Thursday, April 17th 2008, 2:02am

The problem that you will run into changing the environment variable is that the PATHS to 'qmake' and others are still pointing to your version 3.x.

I create a command window on Windows with all the correct environments set, then run qmake and build.
Michael Lange
  • Go to the top of the page

stinos

Intermediate

7

Thursday, April 17th 2008, 11:05am

I don't really see the problem;
if you set QTDIR to dir x, and you put QTDIR/bin into your PATH, running qmake results in running x/bin/qmake, so that's ok.
madinsjamania
  • Go to the top of the page

Rate this thread