[Qt-creator] Where is QTDIR defined on OSX?

kai.koehne at nokia.com kai.koehne at nokia.com
Thu Mar 1 15:03:32 CET 2012


> -----Original Message-----
> From: qt-creator-bounces+kai.koehne=nokia.com at qt-project.org
> [mailto:qt-creator-bounces+kai.koehne=nokia.com at qt-project.org] On
> Behalf Of ext Kris Wong
> Sent: Thursday, March 01, 2012 2:41 PM
> To: qt-creator at qt-project.org
> Subject: Re: [Qt-creator] Where is QTDIR defined on OSX?
> 
> QTDIR is a remnant from Qt 3 and hasn't been used since, except for some
> scripts that can be used when building Qt from the source repository. It's
> nothing to worry about.

Well, you need to worry about if you have it set in your environment. That's probably why we still set it in Qt Creator, because if you by accident 'inherit' QTDIR from the users environment, weird things will happen ... 

But I agree that life would be better without QTDIR :)

Regards

Kai

> Kris Wong
> Seapine Software, Inc.
> Phone: 513.701.1535
> 
> 
> > -----Original Message-----
> > From: qt-creator-bounces+wongk=seapine.com at qt-project.org
> [mailto:qt-
> > creator-bounces+wongk=seapine.com at qt-project.org] On Behalf Of
> Danny
> > Price
> > Sent: Wednesday, February 29, 2012 5:54 PM
> > To: qt-creator at qt-project.org
> > Subject: [Qt-creator] Where is QTDIR defined on OSX?
> >
> > OK this is driving me nuts.
> >
> > I did a clean install of the SDK with Qt 4.8 and unchecked the
> > 'Desktop' install of Qt so that I could build it myself. I set the
> > prefix to a directory local to he SDK instead of /usr/local/whatever.
> >
> > I have no .profile file in the home dir and no environment variables
> > set in  ~/.MacOSX/environment.plist. Typing export into Terminal,
> > there are no Qt variables and the other variables must be coming from
> > /etc/
> >
> > There are no settings for Nokia under ~/.config (yes it took a while
> > to figure this all out on OSX!).
> >
> > Now I fire up Creator and in preferences there is no Qt version listed
> > under 'Auto-Detected'. Cool. I use the Add button to point it at my
> > custom Qt 4.8 build.
> >
> > I note that a qtversion.xml file has appeared under ~/.config/Nokia
> > containing my custom Qt path.
> >
> > Now I drag in a test project .pro file (no make files, no pro.user)
> > and Creator builds the make files. I switch to the Project screen and
> > low and behold, QTDIR is listed in the System Environment! I can even
> > output the contents in the pro.file during the build as though it were
> > any other env variable.
> >
> > So WHERE is this magic variable coming from in the above scenario? It
> > cannot be defined within QtCreator because I can build the project
> > directly with the make file via Terminal (because on the Mac, terminal
> > tools gets their variables from the profile and /etc/). Nor is there
> > any sign of it in the makefile or in any of the other Mac environment
> > variable hideouts that I know of.
> >
> > WHERE is this variable coming from?!!
> > _______________________________________________
> > Qt-creator mailing list
> > Qt-creator at qt-project.org
> > http://lists.qt-project.org/mailman/listinfo/qt-creator
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator



More information about the Qt-creator mailing list