msvc: makekdewidgets

Peter Kümmel syntheticpp at gmx.net
Sun May 14 21:58:44 CEST 2006


Alexander Neundorf wrote:
> On Sunday 14 May 2006 18:02, Christian Ehrlicher wrote:
>> Peter Kümmel schrieb:
>>> Something for the kdewin32 TODO list:
>>>
>>>
>>> makekdewidgets throws an assert in win/src/mmap.c:
>>>
>>> line 117:
>>> 	hfd = (HANDLE)_get_osfhandle( fd );
>>>
>>>
>>> When the mmap call is avoided then makekdewidgets
>>> does not crash:
>> I wonder how often I have to say this - you *can't* mix debug and relase
>> libs as you do here. Because of this I stopped msvc compilation - the
>> kdelibs need a debug prefix like the qt libs have.
> 
> Ok, so what exactly is required ?
> 
> if (MSVC)
>    set(DEBUG_POSTFIX "_debug")
> endif (MSVC)
> 
> and then always only use debug versions of all kde libs in debug build mode ?
> 
> Bye
> Alex

When I delete all release versions of Qt then cmake generates makefiles which
only link against the debug versions, and the makekdewidget crash is gone.

So I think it couldn't be very hard to add a switch to link for msvc only against
the debug version-libs of Qt.



More information about the Kde-buildsystem mailing list