[CMake] Ninja: It's ninja issue, or CMake problem?

Loaden loaden at gmail.com
Tue Sep 25 02:25:58 EDT 2012


*It's seems I can't post too big contents to list.
So, I post the rules.ninja and build.ninja as an attachments to here.**

After change Core_pch.cpp (add #include <iostream> in it), here is the
build log:*

> [1/2] Building CXX object
> src\plugins\coreplugin\CMakeFiles\Core.dir\Core_pch.cpp.obj
> [2/2] Linking CXX shared library lib\qtcreator\plugins\Nokia\Core.dll
>

*Here is the full log:*

> [1/2] "D:/qpSOFT/MyDEV/tool/cmake/bin/cmcldeps.exe" CXX
> src\plugins\coreplugin\Core_pch.cpp
> "src/plugins/coreplugin/CMakeFiles/Core.dir/Core_pch.cpp.obj.d"
> src\plugins\coreplugin\CMakeFiles\Core.dir\Core_pch.cpp.obj "Note:
> including file: " "D:/qpSOFT/MyDEV/bin/amd64/cl.exe"
> D:\qpSOFT\MyDEV\bin\amd64\cl.exe   /nologo /DWIN32 /D_WINDOWS /W3 /Zm1000
> /EHsc /GR /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1
> -ID:\qpSOFT\MyDEV\sdk\qt\lib\amd64\..\..\include\
> -ID:\qpSOFT\MyDEV\sdk\qt\lib\amd64\..\..\include\QtCore
> -ID:\qpSOFT\MyDEV\sdk\qt\lib\amd64\..\..\mkspecs\amd64\win32-msvc2010
> /Yc"D:/qpSOFT/Projects/QtCreator/src/shared/qtcreator_pch.h"
> /Fp"D:/qpSOFT/Projects/QtCreator/test/src/plugins/coreplugin/Core_pch.pch"
> -DCore_EXPORTS -DUNICODE -D_CRT_SECURE_NO_WARNINGS -DQT_NO_CAST_TO_ASCII
> -DQT_DISABLE_DEPRECATED_BEFORE=0x040900 -DQT_USE_FAST_OPERATOR_PLUS
> -DQT_USE_FAST_CONCATENATION -DQT_CORE_LIB /TP
> /Fosrc\plugins\coreplugin\CMakeFiles\Core.dir\Core_pch.cpp.obj
> /Fdsrc\plugins\coreplugin\Core.pdb -c src\plugins\coreplugin\Core_pch.cpp
> [2/2] cmd.exe /c cd . && D:\qpSOFT\MyDEV\tool\cmake\bin\cmake.exe -E
> vs_link_dll D:\qpSOFT\MyDEV\bin\amd64\link.exe /nologo
> src\plugins\coreplugin\CMakeFiles\Core.dir\lib.cpp.obj
> src\plugins\coreplugin\CMakeFiles\Core.dir\Core_pch.cpp.obj
> /out:lib\qtcreator\plugins\Nokia\Core.dll /implib:lib\Core.lib
> /pdb:src\plugins\coreplugin\Core.pdb /dll /version:0.0 /STACK:10000000
> /machine:x64  /debug /INCREMENTAL
> D:\qpSOFT\MyDEV\sdk\qt\lib\amd64\lib\QtCored5.lib kernel32.lib user32.lib
> gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib
> comdlg32.lib advapi32.lib  && cd .
>

*It's should re-build lib.cpp,
but it doesn't.*

*Here is the build log use: ninja clean && ninja >build.log*
[1/3] Building CXX object src\plugins\coreplugin\
>
> CMakeFiles\Core.dir\Core_pch.cpp.obj
> [2/3] Building CXX object
> src\plugins\coreplugin\CMakeFiles\Core.dir\lib.cpp.obj
> [3/3] Linking CXX shared library lib\qtcreator\plugins\Nokia\Core.dll
> LINK : lib\qtcreator\plugins\Nokia\Core.dll not found or not built by the
> last incremental link; performing full link



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

> When you post build.ninja and rules.ninja, I'll have a look at it.




-- 
*Please don't ask where I come from, It's a shame!*
Best Regards
Yuchen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120925/2ac1acac/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.zip
Type: application/zip
Size: 3527 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120925/2ac1acac/attachment.zip>


More information about the CMake mailing list