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 -_-!
QtWS25 Last Chance

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

    jsulmJ 1 Reply Last reply
    0
    • Q QtTester

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

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on 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
      0
      • jsulmJ jsulm

        @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 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
        • jsulmJ jsulm

          @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 last edited by
          #4

          @jsulm How to edit the environment ?

          jsulmJ 1 Reply Last reply
          0
          • Q QtTester

            @jsulm How to edit the environment ?

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on 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
            0
            • jsulmJ jsulm

              @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 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
              • jsulmJ jsulm

                @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 last edited by
                #7

                @jsulm Still unresolved, thanks any way.

                1 Reply Last reply
                0

                • Login

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