[CMake] QT build issues

William A. Hoffman billlist at nycap.rr.com
Wed Jul 12 08:33:17 EDT 2006


At 06:02 AM 7/12/2006, Hendrik Belitz wrote:
>Indeed, there is another issue with CMake 2.4.2 on Linux and Qt. When qt3 and 
>qt4 are installed in parallel on the system, the FindQt module seems to fail 
>to detect the correct paths to the qt tools like moc, qmake and uic. Instead 
>of using the qt3 versions when QT_DESIRED_VERSION ist set to 3, it always 
>uses the qt4 versions, which will not work with older qt3 .ui files.

It is all based on which qmake it finds.   If you really only need qt3, then
you should be including FindQt3.cmake directly.  The idea was that the correct
qmake would be in the PATH.   i.e. the environment would be set up to correctly
build qt projects.

-Bill



More information about the CMake mailing list