Using fulldebug, it's not a warnings from MSCV, it's an error at linking : [ 44%] Building RC object digikam/digikam/CMakeFiles/digikam.dir/digikam.res Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1 Copyright (C) Microsoft Corporation. All rights reserved.
Linking CXX executable ..\..\bin\digikam.exe qtmain.lib(qtmain_win.obj) : .netmodule ou module MSIL compilÚ avec /GL trouvÚá; redÚmarrage de l'Údition de liens avec /LTCGá; ajou tez /LTCG Ó la ligne de commande de l'Údition de liens pour amÚliorer les performances de l'╔diteur de liens msvcrt.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@a...@abv0 @@Z) dÚjÓ dÚfini(e) dans LIBCMT.lib(typinfo.obj) msvcrt.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4t ype_info@@aaea...@abv0@@Z) dÚjÓ dÚfini(e) dans LIBCMT.lib(typinfo.obj) CrÚation de la bibliothÞque ..\..\bin\digikam.lib et de l'objet ..\..\bin\digikam.exp LIBCMT.lib(crt0init.obj) : warning LNK4098: conflit entre la bibliothÞque par dÚfaut 'msvcrt.lib' et les autres bibliothÞquesá; util isez /NODEFAULTLIB:library ..\..\bin\digikam.exe : fatal error LNK1169: un ou plusieurs symboles dÚfinis Ó diffÚrentes reprises ont ÚtÚ rencontrÚs LINK failed. with 2 NMAKE : fatal error U1077: '"C:\Program Files (x86)\CMake 2.8\bin\cmake.exe"' : code retour '0xffffffff' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"' : code retour '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"' : code retour '0x2' Stop. One or more than one symbol defined in digiKam have been found... Which one ? How to solve it ? Gilles Caulier 2010/9/3 Gilles Caulier <[email protected]>: > 2010/9/3 Peter Kümmel <[email protected]>: >> On 03.09.2010 12:59, Gilles Caulier wrote: >>> I set -DCMAKE_BUILD_TYPE=release option with CMake. Now there is no >>> linking warnings on the console : >>> >>> [ 45%] Building RC object digikam/digikam/CMakeFiles/digikam.dir/digikam.res >>> Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1 >>> Copyright (C) Microsoft Corporation. All rights reserved. >>> >>> Linking CXX executable ..\..\bin\digikam.exe >>> qtmain.lib(qtmain_win.obj) : .netmodule ou module MSIL compilÚ avec >>> /GL trouvÚá; redÚmarrage de l'Údition de liens avec /LTCGá; ajou >>> tez /LTCG Ó la ligne de commande de l'Údition de liens pour amÚliorer >>> les performances de l'╔diteur de liens >>> CrÚation de la bibliothÞque ..\..\bin\digikam.lib et de l'objet >>> ..\..\bin\digikam.exp >>> GÚnÚration de code en cours >>> Fin de la gÚnÚration du code >>> [ 45%] Built target digikam >>> Generating digikamalbums.moc >>> [ 45%] Built target kio_digikamalbums_automoc >>> [ 45%] Building CXX object >>> digikam/kioslave/CMakeFiles/kio_digikamalbums.dir/kio_digikamalbums_automoc.obj >>> kio_digikamalbums_automoc.cpp >>> >>> But the goal is to have a debug version of digiKam. So i need to use >>> -DCMAKE_BUILD_TYPE=debugfull here. >> >> http://www.itk.org/Wiki/CMake_Useful_Variables#Compilers_and_Tools >> >> Debug should do it.You could also try RelWithDebInfo. >> Then you don't have to find the reason why it mixes debug and release. >> >> But generally this should be fixed. Have you build ALL libs you link >> against also as debug version? If not, then this could be the reason >> for the mismatch. Using msvc the only way is "all or nothing". >> > > I build all compiled libs myself with fulldebug : Exiv2, libkdcraw, > libkipi, libkexiv2. > > For the rest of KDE4 and shared libs, i don't know because i take all > from KDE-Windows installer. I supose that all packages are compiled > with debug symbol no ? > >> >>> >>> I will take a look with this option if linking give a warnings. >> >> I assume you get the same error. >> > > Certainly... > > Gilles > _______________________________________________ Kde-windows mailing list [email protected] https://mail.kde.org/mailman/listinfo/kde-windows
