[CMake] QT build issues

John Biddiscombe biddisco at cscs.ch
Tue Jul 11 12:47:45 EDT 2006


These bugs are as of cmake 2.4. patch 2 (branch CMake-2.4)

Bug 1:
Linking against QT built as static is incorrect under windows, patch was 
posted some time ago, but am still waiting 
http://www.cmake.org/Bug/bug.php?op=show&bugid=3222&pos=27
also Qt static needs imm32 ws_32 and something else I can't remember OTOMH

Bug 2
Linking against QT Built as static under linux fails due to incorrect 
order of libs being linked. Also missing some libs which result in link 
errors (for example Qt wants to use system png and others. Apps can fix 
this by overriding the QT_LIBRARIES variable but perhaps it could be 
guessed better somewhere

Bug 3
QT_DESIRED_VERSION keeps appearing as a filepath and can't be entered in 
the windows gui. no idea why since it's clearly stated as a STRING and 
not a FILEPATH but it keeps going into my cache as a FILEPATH and it's 
very annoying.

Bug 4
FindQt4 sets libs to optimized xxx debug yyy
UseQt4 sets them to optimized ${STRING_FROM_ABOVE} debug ...
which causes a string with optimized optimized xxx debug debug yyy in 
some cases and linking fails as it tries to link against a lib called 
optimized

Bug 5
on windows it only checks for QtCore4d.lib etc when in fact we get 
QtCored.lib and so have to do them manually. This is easy to fix in 
FindQt4.cmake

Bug 6
There are some more but I can't remember them and have to go.

Could I please have my cvs write access back so that I can fix the ones 
I have patches for here.

cheers

JB



> What are the patches?  As I recall there was some controversy about them when
> you first posted them.   I don't think a solution was ever settled on.  Why
> don't you start the discussion on the cmake list again.
> 
> -Bill
>  
> 
> At 12:04 PM 7/11/2006, John Biddiscombe wrote:
>> Bill,
>>
>> Any chance I can have my CMake cvs write access back. I lost it a long time ago and coped ok letting you lot do everything (and you've done very well of course), but the Qt builds just don't work with static QT libraries and the patches I submitted to the bug tracker months ago are out of date now due to other changes. I'd like to get the Qt stuff working again on the cvs head.
>>
>> TIA hopefully.
>>
>> JB
>>
>>
>> -- 
>> 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
> 


-- 
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