Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. <solved>to set Qt.QtCreator etc. directories to PATH?
Forum Updated to NodeBB v4.3 + New Features

<solved>to set Qt.QtCreator etc. directories to PATH?

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 1.3k Views 3 Watching
  • 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.
  • T Offline
    T Offline
    Technologist
    wrote on 21 Apr 2015, 19:33 last edited by Technologist
    #1

    I was told in this forum to never ever put qt and qtcreator in my PATH as they can cause crashes, incompatibility issues. Of course I have come across just that in a re installation guide from an unrelated website:

    "Open path editor and set the following two folder into system variable. C:\Qt\qt-5.3.1-x64-mingw482r4-sjlj\mingw64\bin” C:\CMake\bin".
    

    Am I right to raise the issue? What do I do in this case?

    Thx

    J 1 Reply Last reply 22 Apr 2015, 03:29
    0
    • C Offline
      C Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on 21 Apr 2015, 19:55 last edited by
      #2

      I can't think of any valid reason to pollute PATH with compiler toolchain or CMake. You should only ever do that per session e.g. in a batch file, a script or a terminal session. Never permanently and system-wide. Problems caused by this can be subtle and extremely tricky to track down. It should definitely not be taught in tutorials or guides so if you want to contact the author about it I'd say go ahead.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        Technologist
        wrote on 21 Apr 2015, 23:34 last edited by
        #3

        Thank you for clarifying, thats what I thought.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          Technologist
          wrote on 21 Apr 2015, 23:44 last edited by Technologist
          #4

          Example

          -snippet -" Open path editor and set the following two folder into system variable. C:\Qt\qt-5.3.1-x64-mingw482r4-sjlj\mingw64\bin”
          C:\CMake\bin

          With this question I really am done - thank you

          1 Reply Last reply
          0
          • T Technologist
            21 Apr 2015, 19:33

            I was told in this forum to never ever put qt and qtcreator in my PATH as they can cause crashes, incompatibility issues. Of course I have come across just that in a re installation guide from an unrelated website:

            "Open path editor and set the following two folder into system variable. C:\Qt\qt-5.3.1-x64-mingw482r4-sjlj\mingw64\bin” C:\CMake\bin".
            

            Am I right to raise the issue? What do I do in this case?

            Thx

            J Offline
            J Offline
            JKSH
            Moderators
            wrote on 22 Apr 2015, 03:29 last edited by
            #5

            Hi @Technologist,

            Thank you for following this up with the tutorial author!

            I have come across just that in a re installation guide from an unrelated website:

            "Open path editor and set the following two folder into system variable. C:\Qt\qt-5.3.1-x64-mingw482r4-sjlj\mingw64\bin” C:\CMake\bin".

            If you want a detailed explanation:

            The author has failed to consider the situation where multiple versions of Qt live on the same machine. If you add add them all to your PATH, your programs could pick the wrong version of a DLL and crash.

            Qt Creator has the responsibility of managing the libraries; there is no need to have the Qt libs in the PATH.

            The single challenging part is deployment. Users find that, without Qt in the PATH, they can't launch their app by double-clicking the executable. Adding Qt DLLs to the PATH is a quick hack to make it work, but it is too risky -- it works for some people but causes weird crashes for others. The safe and correct way to deal with this is by deploying your application properly (e.g. https://wiki.qt.io/Deploy_an_Application_on_Windows )

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

            1 Reply Last reply
            0
            • T Offline
              T Offline
              Technologist
              wrote on 22 Apr 2015, 15:09 last edited by
              #6

              Thank u for that clarification.

              1 Reply Last reply
              0

              1/6

              21 Apr 2015, 19:33

              • Login

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