[Qt-creator] Does any one interesting to help writting CMake Scripts for QtCreator?

Loaden loaden at gmail.com
Mon Sep 24 11:43:25 CEST 2012


https://github.com/loaden/qtcreator/
See wip/cmake branch.

I have a problem with MSVC for a long time.
I have no idea yet.


[ 99%] Building CXX object
> src/libs/cplusplus/CMakeFiles/CPlusPlus.dir/TypePrettyPrinter.cpp.obj
>         cd D:\qpSOFT\Projects\QtCreator\build\src\libs\cplusplus
>         D:\qpSOFT\MyDEV\bin\amd64\cl.exe   /nologo /DWIN32 /D_WINDOWS /W3
> /Zm1000 /EHsc /GR /MD /O2
> /Ob2 /D NDEBUG -ID:\qpSOFT\Projects\QtCreator\src\libs\cplusplus\.
> -ID:\qpSOFT\Projects\QtCreator\sr
> c\libs\3rdparty\cplusplus
> -ID:\qpSOFT\MyDEV\sdk\qt\lib\amd64\..\..\include\ -ID:\qpSOFT\MyDEV\sdk\qt
> \lib\amd64\..\..\include\QtWidgets
> -ID:\qpSOFT\MyDEV\sdk\qt\lib\amd64\..\..\include\QtCore -ID:\qpSO
> FT\MyDEV\sdk\qt\lib\amd64\..\..\mkspecs\amd64\win32-msvc2010
> -ID:\qpSOFT\MyDEV\sdk\qt\lib\amd64\..\.
> .\include\QtGui
> /Yu"D:/qpSOFT/Projects/QtCreator/build/src/libs/cplusplus/CPlusPlus_pch.pch"
> /FI"D:/
> qpSOFT/Projects/QtCreator/build/src/libs/cplusplus/CPlusPlus_pch.pch"
> /Fp"D:/qpSOFT/Projects/QtCreat
> or/build/src/libs/cplusplus/CPlusPlus_pch.pch" -DCPlusPlus_EXPORTS
> -DUNICODE -D_CRT_SECURE_NO_WARNIN
> GS -DQT_NO_CAST_TO_ASCII -DQT_DISABLE_DEPRECATED_BEFORE=0x040900
> -DQT_USE_FAST_OPERATOR_PLUS -DQT_US
> E_FAST_CONCATENATION -DCPLUSPLUS_BUILD_LIB -DQT_WIDGETS_LIB -DQT_CORE_LIB
> -DQT_GUI_LIB -DQT_NO_DEBUG
>  /TP /FoCMakeFiles\CPlusPlus.dir\TypePrettyPrinter.cpp.obj
> /FdD:\qpSOFT\Projects\QtCreator\build\src
> \libs\cplusplus\CPlusPlus.pdb -c
> D:\qpSOFT\Projects\QtCreator\src\libs\cplusplus\TypePrettyPrinter.c
> pp
> TypePrettyPrinter.cpp
>         cd D:\qpSOFT\Projects\QtCreator\build
>         D:\qpSOFT\MyDEV\tool\cmake\bin\cmake.exe -E cmake_progress_report
> D:\qpSOFT\Projects\QtCreat
> or\build\CMakeFiles
> [ 99%] Building CXX object
> src/libs/cplusplus/CMakeFiles/CPlusPlus.dir/qrc_cplusplus.cxx.obj
>         cd D:\qpSOFT\Projects\QtCreator\build\src\libs\cplusplus
>         D:\qpSOFT\MyDEV\bin\amd64\cl.exe   /nologo /DWIN32 /D_WINDOWS /W3
> /Zm1000 /EHsc /GR /MD /O2
> /Ob2 /D NDEBUG -ID:\qpSOFT\Projects\QtCreator\src\libs\cplusplus\.
> -ID:\qpSOFT\Projects\QtCreator\sr
> c\libs\3rdparty\cplusplus
> -ID:\qpSOFT\MyDEV\sdk\qt\lib\amd64\..\..\include\ -ID:\qpSOFT\MyDEV\sdk\qt
> \lib\amd64\..\..\include\QtWidgets
> -ID:\qpSOFT\MyDEV\sdk\qt\lib\amd64\..\..\include\QtCore -ID:\qpSO
> FT\MyDEV\sdk\qt\lib\amd64\..\..\mkspecs\amd64\win32-msvc2010
> -ID:\qpSOFT\MyDEV\sdk\qt\lib\amd64\..\.
> .\include\QtGui -DCPlusPlus_EXPORTS -DUNICODE -D_CRT_SECURE_NO_WARNINGS
> -DQT_NO_CAST_TO_ASCII -DQT_D
> ISABLE_DEPRECATED_BEFORE=0x040900 -DQT_USE_FAST_OPERATOR_PLUS
> -DQT_USE_FAST_CONCATENATION -DCPLUSPLU
> S_BUILD_LIB -DQT_WIDGETS_LIB -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG /TP
> /FoCMakeFiles\CPlusPlus.di
> r\qrc_cplusplus.cxx.obj
> /FdD:\qpSOFT\Projects\QtCreator\build\src\libs\cplusplus\CPlusPlus.pdb -c D:
> \qpSOFT\Projects\QtCreator\build\src\libs\cplusplus\qrc_cplusplus.cxx
> qrc_cplusplus.cxx
>         cd D:\qpSOFT\Projects\QtCreator\build
> Linking CXX shared library ..\..\..\bin\CPlusPlus.dll
>         cd D:\qpSOFT\Projects\QtCreator\build\src\libs\cplusplus
>         D:\qpSOFT\MyDEV\tool\cmake\bin\cmake.exe -E vs_link_dll
> D:\qpSOFT\MyDEV\bin\amd64\link.exe /
> nologo @CMakeFiles\CPlusPlus.dir\objects1.rsp
> /out:..\..\..\bin\CPlusPlus.dll /implib:..\..\..\lib\
> CPlusPlus.lib
> /pdb:D:\qpSOFT\Projects\QtCreator\build\src\libs\cplusplus\CPlusPlus.pdb
> /dll /version
> :0.0  /STACK:10000000 /machine:x64  /INCREMENTAL:NO
> D:\qpSOFT\MyDEV\sdk\qt\lib\amd64\lib\QtWidgets5.
> lib D:\qpSOFT\MyDEV\sdk\qt\lib\amd64\lib\QtGui5.lib
> D:\qpSOFT\MyDEV\sdk\qt\lib\amd64\lib\QtCore5.lib
>  kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib
> oleaut32.lib uuid.lib comdlg32
> .lib advapi32.lib
> Visual Studio Non-Incremental Link
> LINK:
> D:\qpSOFT\MyDEV\bin\amd64\link.exe /nologo
> @CMakeFiles\CPlusPlus.dir\objects1.rsp /out:..\..\..\bin\
> CPlusPlus.dll /implib:..\..\..\lib\CPlusPlus.lib
> /pdb:D:\qpSOFT\Projects\QtCreator\build\src\libs\cp
> lusplus\CPlusPlus.pdb /dll /version:0.0 /STACK:10000000 /machine:x64
> /INCREMENTAL:NO D:\qpSOFT\MyDEV
> \sdk\qt\lib\amd64\lib\QtWidgets5.lib
> D:\qpSOFT\MyDEV\sdk\qt\lib\amd64\lib\QtGui5.lib D:\qpSOFT\MyDEV
> \sdk\qt\lib\amd64\lib\QtCore5.lib kernel32.lib user32.lib gdi32.lib
> winspool.lib shell32.lib ole32.l
> ib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST
>    Creating library ..\..\..\lib\CPlusPlus.lib and object
> ..\..\..\lib\CPlusPlus.exp
> OverviewModel.cpp.obj : error LNK2019: unresolved external symbol "public:
> static struct QMetaObject
>  const CPlusPlus::OverviewModel::staticMetaObject"
> (?staticMetaObject at OverviewModel@CPlusPlus@@2UQMe
> taObject@@B) referenced in function "public: static class QString __cdecl
> CPlusPlus::OverviewModel::
> tr(char const *,char const *,int)" (?tr at OverviewModel@CPlusPlus@
> @SA?AVQString@@PEBD0H at Z)
> OverviewModel.cpp.obj : error LNK2001: unresolved external symbol "public:
> virtual struct QMetaObjec
> t const * __cdecl CPlusPlus::OverviewModel::metaObject(void)const "
> (?metaObject at OverviewModel@CPlus
> Plus@@UEBAPEBUQMetaObject@@XZ)
> OverviewModel.cpp.obj : error LNK2001: unresolved external symbol "public:
> virtual void * __cdecl CP
> lusPlus::OverviewModel::qt_metacast(char const *)"
> (?qt_metacast at OverviewModel@CPlusPlus@@UEAAPEAXPE
> BD at Z)
> OverviewModel.cpp.obj : error LNK2001: unresolved external symbol "public:
> virtual int __cdecl CPlus
> Plus::OverviewModel::qt_metacall(enum QMetaObject::Call,int,void * *)"
> (?qt_metacall at OverviewModel@C
> PlusPlus@@UEAAHW4Call at QMetaObject@@HPEAPEAX at Z)
> ..\..\..\bin\CPlusPlus.dll : fatal error LNK1120: 4 unresolved externals
> LINK failed. with 1120
> NMAKE : fatal error U1077: 'D:\qpSOFT\MyDEV\tool\cmake\bin\cmake.exe' :
> return code '0xffffffff'
> Stop.
> NMAKE : fatal error U1077: 'D:\qpSOFT\MyDEV\bin\amd64\nmake.exe' : return
> code '0x2'
> Stop.
> NMAKE : fatal error U1077: 'D:\qpSOFT\MyDEV\bin\amd64\nmake.exe' : return
> code '0x2'
> Stop.
>

2012/9/12 Peter Kümmel <syntheticpp at gmx.net>

> Please post a link of your fork.




-- 
*Please don't ask where I come from, It's a shame!*
Best Regards
Yuchen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20120924/808e23cb/attachment.html>


More information about the Qt-creator mailing list