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

Need to specify a INCLUDE and LIB environment manually -_-!



  • Hi ,guys:
    QtCreator on some computer in our company cannot find Windows 10 SDK path, so building project is fail.
    I have uninstall VS and Creator and SDK for many times ,still cannot resolve this.
    Finally, I add the SDK include /lib path to system environment with INCLUDE and LIB, that works for me.
    But for x86 and x64, I need to edit the system environment again.
    I found creator everytime will write a file to :
    c:\Users\xxx\AppData\Roaming\QtProject\qtcreator\toolchain.xml
    Check this xml file , certainly found no sdk path included, which lead to make project fail.

    So , Can I edit the environment before creator writing toolchain.xml?

    Do NOT want to edit Project->Build environment, because another new project will not work and need to change again!!!


  • Qt Champions 2019

    @QtTester How did you install Windows SDK, Visual Studio and Qt/QtCreator? Also, which exact Qt version did you install? Did you install C++ tools when you installed Visual Studio?



  • @jsulm Thanks for response.
    First run vs2017 installer, select C++ develop for desktop/ MFC/SDK.
    Then run qt-opensource-windows-x86-5.14.2.exe and select msvc2017 32bit/64bit
    Finally install Win10SDK.iso , select the debugger tools(CDB).

    if not following above procedure, other computer also work, but some computer still cannot work.



  • @jsulm How to edit the environment ?


  • Qt Champions 2019

    @QtTester said in Need to specify a INCLUDE and LIB environment manually -_-!:

    How to edit the environment ?

    What exactly do you want to edit and why?
    There is no need to edit anything.
    I suggest to uninstall Qt and QtCreator and install them again.
    You installed Win10 SDK after installing Qt, that could be the reason.



  • @jsulm Like i posted, For example, the working computer has this INCLUDE enviroment (from Project->Build environment):

    d:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include;d:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt;C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared;C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt;C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt

    Other computer which has problem doesnot have those path:
    C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt;C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared;C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt;C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt

    So i have to add INCLUDE to Windows environment, that will work for me.

    I did as you advised , but none changed....



  • @jsulm Still unresolved, thanks any way.


Log in to reply