Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Need to specify a INCLUDE and LIB environment manually -_-!

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

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
7 Posts 2 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    QtTester
    wrote on 4 Nov 2020, 01:29 last edited by
    #1

    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!!!

    J 1 Reply Last reply 4 Nov 2020, 07:38
    0
    • Q QtTester
      4 Nov 2020, 01:29

      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!!!

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 4 Nov 2020, 07:38 last edited by
      #2

      @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?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      Q 2 Replies Last reply 5 Nov 2020, 00:28
      0
      • J jsulm
        4 Nov 2020, 07:38

        @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?

        Q Offline
        Q Offline
        QtTester
        wrote on 5 Nov 2020, 00:28 last edited by
        #3

        @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.

        1 Reply Last reply
        0
        • J jsulm
          4 Nov 2020, 07:38

          @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?

          Q Offline
          Q Offline
          QtTester
          wrote on 6 Nov 2020, 00:38 last edited by
          #4

          @jsulm How to edit the environment ?

          J 1 Reply Last reply 6 Nov 2020, 05:37
          0
          • Q QtTester
            6 Nov 2020, 00:38

            @jsulm How to edit the environment ?

            J Offline
            J Offline
            jsulm
            Lifetime Qt Champion
            wrote on 6 Nov 2020, 05:37 last edited by
            #5

            @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.

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            Q 2 Replies Last reply 6 Nov 2020, 12:04
            0
            • J jsulm
              6 Nov 2020, 05:37

              @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.

              Q Offline
              Q Offline
              QtTester
              wrote on 6 Nov 2020, 12:04 last edited by
              #6

              @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....

              1 Reply Last reply
              0
              • J jsulm
                6 Nov 2020, 05:37

                @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.

                Q Offline
                Q Offline
                QtTester
                wrote on 10 Nov 2020, 00:26 last edited by
                #7

                @jsulm Still unresolved, thanks any way.

                1 Reply Last reply
                0

                1/7

                4 Nov 2020, 01:29

                • Login

                • Login or register to search.
                1 out of 7
                • First post
                  1/7
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved