[CMake] Problem selecting Qt3 or Qt4

John Biddiscombe biddisco at cscs.ch
Tue Oct 10 05:57:57 EDT 2006


Matthieu

If you have qt3 and qt4 that is not in your path, it should all work if 
you do the following
run ccmake, it will detect qt3, now set desired qt to 4, run ccmake 
again. some errors no doubt. Force cmake's qmake setting to point to 
/my/path/of/stuff/qt-4.x.0/bin/qmake, now delete all other cmake QT_XXX 
settings in the gui (note that this is so much harder in the windows gui 
because you have to do them one by one and scroll after each click, thus 
taking ages, in the text based unix/linux one, hitting d,d,d,d,d,d,d is 
enough and much nicer <hint, hint>), now reconfigure and as long as the 
qmake setting is correct, all the other setting should be picked up and 
everything will work. honest.

JB

> Thank you very much :)
>
> Matthieu
>
> On 10/9/06, *William A. Hoffman* <billlist at nycap.rr.com 
> <mailto:billlist at nycap.rr.com>> wrote:
>
>     At 10:59 AM 10/9/2006, Matthieu Brucher wrote:
>     >The assumption made is that your environment is set up correctly
>     to build the qt version you
>     >want to use.  This means that the correct qmake should be in your
>     PATH.  If you type
>     >which qmake, that is the one cmake will pick.
>     >
>     >-Bill
>     >
>     >
>     >My environment is set up correctly, only I have to type qmake-qt4
>     instead of qmake, because qmake is for Qt3.3 - I checked that
>     before sending my first mail ;) -, and qmake is checked first
>     instead of qmake-qt4 in FindQt4 :(
>
>     OK, for systems that have the (non QT standard) qmake-qt4.  I have
>     a fix in CVS CMake that should
>     do the trick and work if qmake (from qt3) and qmake-qt4 are in
>     your PATH.
>
>     -Bill
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake


-- 
John Biddiscombe,                            email:biddisco @ cscs.ch
http://www.cscs.ch/about/BJohn.php
CSCS, Swiss National Supercomputing Centre  | Tel:  +41 (91) 610.82.07
Via Cantonale, 6928 Manno, Switzerland      | Fax:  +41 (91) 610.82.82




More information about the CMake mailing list