[Interest] Using ccache with QtCreator under Windows

Konstantin Tokarev annulen at yandex.ru
Thu Sep 14 19:46:55 CEST 2017



14.09.2017, 20:44, "Xavier Bigand" <flamaros.xavier at gmail.com>:
> Hello,
>
> I am trying to use ccache, that I got here : https://code.google.com/archive/p/ccache-win32/
> This binary seems working fine, and I just put it in the Qt\Tools\mingw530_32\bin folder near g++ and other binaries.
>
> In .pro file of our project I simply add the line : QMAKE_CXX = ccache g++

No, QMAKE_CXX must refer to compiler executable only.
Use symlink name "g++" and pointing to ccache as your compiler.

> The command line is correctly generated for the compilation, but it fails:
>
> C:/sdks/Qt/Tools/mingw530_32/bin/mingw32-make -f Makefile.Debug
>
> mingw32-make[1]: Entering directory 'C:/projects/HomeDesign3D/Projects/build-HomeDesign3D-Desktop_Qt_5_7_1_MinGW_32bit2-Debug'
>
> ccache g++ -c -pipe -fno-keep-inline-dllexport -isystem ../../Dependencies/boost_1_52_0 -isystem ../../Dependencies/glew/include -isystem ../../Dependencies/libpng -isystem ../../Dependencies/glsl-optimizer/src/glsl -isystem ../../Dependencies/curl-7.30.0/builds/libcurl-vc10-x86-release-dll-ipv6-sspi-spnego-winssl/include -isystem ../../Dependencies/glsl-optimizer/src/glsl -isystem ../../Dependencies/zlib-1.2.7 -isystem ../../Dependencies -isystem ../../Dependencies/glew/include -isystem ../../Dependencies/iGLU -isystem ../../Dependencies/protobuf-2.6.1/src -isystem ../../Dependencies/boost -isystem ../../Dependencies/freetype-2.5.0.1/include -isystem ../../Dependencies/freetype-gl -isystem ../../Dependencies/lzham/include -isystem ../../Dependencies/quazip-0.7.1 -isystem ../../Dependencies/assimp/include -isystem ../../Dependencies/DropboxQt/src -isystem ../../Dependencies/QtXlsxWriter/src/xlsx -isystem ../../Dependencies/zlib-1.2.7 -isystem ../../Dependencies/boost -I ../../Source -isystem ../../Source/GUI_QML/qtsingleapplication -Werror=return-type -g -DDEBUG -D_DEBUG -std=gnu++11 -frtti -Wall -Wextra -Wconversion -Wno-unused-variable -Wno-unused-parameter -Wno-reorder -fexceptions -mthreads -DUNICODE -DH3D_QMAKE -DH3D_USE_WEBVIEW -DBOOST_GEOMETRY_OVERLAY_NO_THROW -DH3D_DEVELOPER_MODE -DH3D_WORLDWIDE_VERSION -DH3D_GOLD_VERSION -DH3D_NO_STORE -DH3D_QT -DUSE_ASSIMP -DXLSX_NO_LIB -D_USE_MATH_DEFINES -DGLEW_STATIC -DENABLED_ASSERT -DENGINE3D_STATIC_LIBRARY -DARCHITECTURE_STATIC_LIBRARY -DPLATFORM_STATIC_LIBRARY -DCORE_STATIC_LIBRARY -DQUAZIP_STATIC -DQT_QML_DEBUG -DQT_QUICK_LIB -DQT_SVG_LIB -DQT_OPENGL_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_XML_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I..\Qt -I. -I..\..\Source -I..\..\Source\GUI_QML\qtquick2applicationviewer -I..\..\..\..\sdks\Qt\5.7\mingw53_32\include -I..\..\..\..\sdks\Qt\5.7\mingw53_32\include\QtQuick -I..\..\..\..\sdks\Qt\5.7\mingw53_32\include\QtSvg -I..\..\..\..\sdks\Qt\5.7\mingw53_32\include\QtOpenGL -I..\..\..\..\sdks\Qt\5.7\mingw53_32\include\QtPrintSupport -I..\..\..\..\sdks\Qt\5.7\mingw53_32\include\QtWidgets -I..\..\..\..\sdks\Qt\5.7\mingw53_32\include\QtMultimedia -I..\..\..\..\sdks\Qt\5.7\mingw53_32\include\QtGui -I..\..\..\..\sdks\Qt\5.7\mingw53_32\include\QtANGLE -I..\..\..\..\sdks\Qt\5.7\mingw53_32\include\QtQml -I..\..\..\..\sdks\Qt\5.7\mingw53_32\include\QtNetwork -I..\..\..\..\sdks\Qt\5.7\mingw53_32\include\QtCore\5.7.1 -I..\..\..\..\sdks\Qt\5.7\mingw53_32\include\QtCore\5.7.1\QtCore -I..\..\..\..\sdks\Qt\5.7\mingw53_32\include\QtXml -I..\..\..\..\sdks\Qt\5.7\mingw53_32\include\QtCore -Idebug -I..\..\..\..\sdks\Qt\5.7\mingw53_32\mkspecs\win32-g++ -o debug\Application.o ..\..\Source\Core\Application.cpp
>
> Makefile.Debug:5501: recipe for target 'debug/Application.o' failed
>
> mingw32-make[1]: Leaving directory 'C:/projects/HomeDesign3D/Projects/build-HomeDesign3D-Desktop_Qt_5_7_1_MinGW_32bit2-Debug'
>
> mingw32-make[1]: *** [debug/Application.o] Error 1
>
> Makefile:34: recipe for target 'debug' failed
>
> mingw32-make: *** [debug] Error 2
>
> 19:26:57: The process "C:\sdks\Qt\Tools\mingw530_32\bin\mingw32-make.exe" exited with code 2.
>
> Error while building/deploying project HomeDesign3D (kit: Desktop Qt 5.7.1 MinGW 32bit)
>
> When executing step "Make"
>
> Is there a way to get the complete output of the ccache execution? Because here I just can't understand what goes wrong.
>
> Does someone do a similar thing or have an idea of what make the command line failed?
>
> --
> Xavier
> ,
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest


-- 
Regards,
Konstantin


More information about the Interest mailing list