[Qt-creator] Evaluation on Mac OSX

Eike Ziller eike.ziller at nokia.com
Mon Jan 5 12:41:35 CET 2009


Hello and a happy new year!

On Dec 30, 2008, at 9:20 PM, ext G3WOE wrote:

> Can anybody assist with Creator installation problems
>
> MacOSX 10.5.5
> Xcode Installed
> Using Qt4.4.3 binary DMG installer.
> qt-mac-opensource-4.4.3
> qt-mac-opensource-4.4.3-debug-libs
> qtcreator-0.9.1-beta-mac-setup
>
> Files are placed in many locations. I discovered that the Qt  
> binaries are installed to
>
> /usr/local/Qt4.4 (Please note the installation documentation is out  
> of date or incorrect.).
>
> I have included this location in the bash environment as follows
>
> $ echo $PATH
> /opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/ 
> local/bin:/usr/local/Qt4.4
>
> Under QtCreator - preferences - Qt4 the above binaries are  
> recognised as an additional Qt version.
>
> The System Qt (default) version is marked path <not found>.
>
> QtCreator is not following the environment PATH correctly in order  
> to locate System Qt.

Actually it does - but :)
On Mac OS the environment used for applications is *not* the  
environment you get when starting the Terminal application. Instead it  
is the environment used for applications is determined at user login  
from a file
~/.MacOSX/environment.plist
in your home directory.
You find more information on this here:
<http://developer.apple.com/documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/EnvironmentVars.html 
 >
under "User Session Environment Variables".
On the other hand the Qt installer should install the qmake binary  
also to /usr/bin/qmake, which should be in the default path that is  
used for applications. Do you have the file /usr/bin/qmake?

> An additional Qt version can be created and then finds the binaries  
> OK so I have set the additional version as the default Qt version.
> Found Qt Version using mkspec macx-g++
>
> I have created a new project from the Qt4 GUI Application template.
>
> I have set the correct (additional) Qt version both in Preferences  
> and in the project - build settings - debug - general dialog.
>
> This project will not build
>
> Running build steps for project SecondQtApp...
> Could not start process
> Error while building project SecondQtApp
> When executing build step 'QMake'
>
> I get the same result with Build - Run Qmake
>
> qmake however is running OK. It will run from any working directory  
> under the bash terminal. It will correctly make an xcode project  
> from a .pro file which will then compile in xcode and run correctly  
> outside of Creator using the standard tools provided for MacOSX. The  
> Qt binary installer is working correctly.
>
> This leads me to conclude Creator may have a problem finding the  
> location for Qmake. which the binary installer has placed in / 
> Developer/Tools/Qt. I can see no obvious config parameter in Creator  
> which will allow me to point to this folder. Qmake is in the bash  
> search path because it will run from any directory, so it seems that  
> Creator is not honouring the OSX search path mechanism (as evidenced  
> by the System Qt problem), and is instead looking in hard coded  
> location that has been changed by the 4.4.3 binary installer.

Please set the path for you additional Qt version in Preferences->Qt4  
to /usr/local/Qt4.4 .
Actually I don't find any binaries in /usr/local/Qt4.4, so creator  
should actually not tell you that it found Qt in this case.

Thank you!

-- 
Eike Ziller
Software Engineer
Nokia, Qt Software
Phone  +49 (0)30 6392 3255
Fax    +49 (0)30 6392 3256
E-mail eike.ziller at nokia.com







More information about the Qt-creator-old mailing list