Planned maintenance has been done but it did not solve the problem. So work will continue on this and a new time for trying updates will be announced asap.

QtQuickTemplates2/private/qtquicktemplates2-config_p.h: No such file or directory error while building QtQuickControls2

  • I got the following compiler error while building QtQuickControls2 v5.11.1

    In file included from ..\..\include\QtQuickTemplates2\5.11.1/QtQuickTemplates2/private/qtquicktemplates2global_p.h:1:0,
                     from ..\..\include\QtQuickTemplates2\5.11.1/QtQuickTemplates2/private/../../../../../src/quicktemplates2/qquickcontrol_p.h:54,
                     from ..\..\include\QtQuickTemplates2\5.11.1/QtQuickTemplates2/private/qquickcontrol_p.h:1,
                     from qquickabstractbutton_p.h:51,
                     from qquickabstractbutton.cpp:37:
    ..\..\include\QtQuickTemplates2\5.11.1/QtQuickTemplates2/private/../../../../../src/quicktemplates2/qtquicktemplates2global_p.h:53:66: fatal error: QtQuickTemplates2/private/qtquicktemplates2-config_p.h: No such file or directory
     #include <QtQuickTemplates2/private/qtquicktemplates2-config_p.h>

    to fix this I replaced

    #include <QtQuickTemplates2/private/qtquicktemplates2-config_p.h>


    #include <qtquicktemplates2-config_p.h>

    in file qtquickcontrols2\src\quicktemplates2\qtquicktemplates2global_p.h and after I got compiler error again, I copied original unchanged qtquickcontrols2\src\quicktemplates2\qtquicktemplates2-config_p.h to qtquickcontrols2\include\QtQuickTemplates2\5.11.1\QtQuickTemplates2\private\qtquicktemplates2-config_p.h and after that I build QtQuickControls2 successfully.

    so I have an impression that either the file in a wrong place or include path is incorrect.

  • Lifetime Qt Champion


    How are you compiling that module ?
    Whith which compiler ?

  • @SGaist Probably it was my fault, because today I recompiled QT for Android successfully, the only fix I did was to copy


    from the master branch, where the BUG is fixed.

Log in to reply