qt plugins and release builds
Christian Ehrlicher
Ch.Ehrlicher at gmx.de
Tue Dec 11 18:13:15 CET 2007
Shane King schrieb:
> Shane King wrote:
>> Christian Ehrlicher wrote:
>>> The phonon plugin seems to be a exception. Don't know if it's using FindKDE4Interal.cmake at all.
>>>
>>> http://websvn.kde.org/trunk/KDE/kdelibs/cmake/modules/FindKDE4Internal.cmake?r1=733507&r2=734116
>>>
>>>
>>> Christian
>> It's not an exception. The fact other plugins are working seems to be
>> due to KPluginLoader (which phonon doesn't use) loading the library
>> itself if QPluginLoader fails to load it.
>>
>> The modifications to FindKDE4Internal don't end up flowing through for
>> some reason and the actual flags as found in flags.cmake never end up
>> having QT_NO_DEBUG. I thought it was something to do with the cache but
>> I used CACHE FORCE on them and now QT_NO_DEBUG ends up in CMakeCache.txt
>> but still not in the flags files. :(
>>
>> Shane.
>
> OK, to follow up my own problem, I think the following works:
>
> STRING(TOLOWER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE_TOLOWER)
> IF(NOT CMAKE_BUILD_TYPE_TOLOWER MATCHES debug)
> set(_KDE4_PLATFORM_DEFINITIONS "${_KDE4_PLATFORM_DEFINITIONS}
> -DQT_NO_DEBUG")
> endif (NOT CMAKE_BUILD_TYPE_TOLOWER MATCHES debug)
>
As I on kde-commits this code does not work with msvc ide. I've also
asked at cmake mailing list and they told me that some days ago they
fixed it 'the right way' in their FindQt4.cmake
It works fine for me and it's on a much better place now. Please test.
Christian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdelibs_cmake.patch
Type: text/x-diff
Size: 2288 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-windows/attachments/20071211/41555916/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://mail.kde.org/pipermail/kde-windows/attachments/20071211/41555916/attachment.pgp
More information about the Kde-windows
mailing list