Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

qglobal.h(45): fatal error C1083: Cannot open include file: 'type_traits': No such file or directory



  • I have read similar posts regarding this error:

    qglobal.h(45): fatal error C1083: Cannot open include file: 'type_traits': No such file or directory

    I have tried these commands on Microsoft PowerShell:

    > C:\Qt\Qt5.11.3\5.11.3\msvc2017_64\bin\qtenv2.bat
    Setting up environment for Qt usage...
    Remember to call vcvarsall.bat to complete environment setup!
    

    And then:

    > & 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat' x64
    **********************************************************************
    ** Visual Studio 2017 Developer Command Prompt v15.8.5
    ** Copyright (c) 2017 Microsoft Corporation
    **********************************************************************
    [vcvarsall.bat] Environment initialized for: 'x64'
    

    However, I'm still receiving this error:

    > nmake.exe /u /f .\Makefile.Release
    
    Microsoft (R) Program Maintenance Utility Version 14.15.26730.0
    Copyright (C) Microsoft Corporation.  All rights reserved.
    
            echo    ..\..\qt3d-editor\standalone\main.cpp  > C:\Users\me\AppData\Local\Temp\nm4FAD.tmp
            cl -c -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -O2 -MD -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -EHsc -DUNICODE -D_UNICODE -DWIN32 -DWIN64 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DNDEBUG -I..\..\qt3d-editor\standalone -I. -I..\..\qt3d-editor\editorlib -IC:\Qt\Qt5.11.3\5.11.3\msvc2017_64\include -IC:\Qt\Qt5.11.3\5.11.3\msvc2017_64\include\QtQuick -IC:\Qt\Qt5.11.3\5.11.3\msvc2017_64\include\QtWidgets -IC:\Qt\Qt5.11.3\5.11.3\msvc2017_64\include\QtGui -IC:\Qt\Qt5.11.3\5.11.3\msvc2017_64\include\QtANGLE -IC:\Qt\Qt5.11.3\5.11.3\msvc2017_64\include\QtQml -IC:\Qt\Qt5.11.3\5.11.3\msvc2017_64\include\QtNetwork -IC:\Qt\Qt5.11.3\5.11.3\msvc2017_64\include\QtCore -Irelease -I\include -IC:\Qt\Qt5.11.3\5.11.3\msvc2017_64\mkspecs\win32-msvc -Forelease\ @C:\Users\me\AppData\Local\Temp\nm4FAD.tmp
    main.cpp
    C:\Qt\Qt5.11.3\5.11.3\msvc2017_64\include\QtCore/qglobal.h(45): fatal error C1083: Cannot open include file: 'type_traits': No such file or directory
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\Hostx64\x64\cl.EXE"' : return code '0x2'
    Stop.
    


  • I was running the commands on PowerShell. The problem is resolved by using a command prompt!



  • @m3g1dd hello can you help me to solve this problem


Log in to reply