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. qt picks the wrong environment
Forum Updated to NodeBB v4.3 + New Features

qt picks the wrong environment

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
7 Posts 3 Posters 585 Views 1 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.
  • I Offline
    I Offline
    Idodoqdo
    wrote on last edited by
    #1

    Hello everyone, I came across the fact that kits and run and build enviroment are different. I don't understand why qt doesn't look in the correct directory:
    b238d32f-0fe4-4f8b-9562-f44bf48292b3-image.png
    6ff13f92-c568-42bf-97f7-bb9704a26bd3-image.png
    should he pull everything from there? But it does the following
    52423609-856b-407c-9e1d-93b3fd72d58d-image.png
    Why? Help please

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Apart from the fact that it's QtCreator, not Qt - what is wrong in your second screen shot?

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      I 1 Reply Last reply
      0
      • Christian EhrlicherC Christian Ehrlicher

        Apart from the fact that it's QtCreator, not Qt - what is wrong in your second screen shot?

        I Offline
        I Offline
        Idodoqdo
        wrote on last edited by
        #3

        @Christian-Ehrlicher said in qt picks the wrong environment:

        Apart from the fact that it's QtCreator, not Qt - what is wrong in your second screen shot?

        451efcd5-8482-4fc8-b9d8-c030c4be1f7c-image.png

        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          It doesn't help when you post the screenshot twice...

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          I 1 Reply Last reply
          1
          • Christian EhrlicherC Christian Ehrlicher

            It doesn't help when you post the screenshot twice...

            I Offline
            I Offline
            Idodoqdo
            wrote on last edited by
            #5

            @Christian-Ehrlicher The bottom line is that qt selects the wrong folders. I want to select those related to 6.4.0

            1 Reply Last reply
            0
            • Paul ColbyP Offline
              Paul ColbyP Offline
              Paul Colby
              wrote on last edited by
              #6

              Hi @Idodoqdo, it looks like your Qt 6.4.0 kit is configured to use system environment variables, and one of those is QTDIR pointing to /usr/local/share/qt which does not appear to be where your Qt 6.4.0 is installed.

              It's possible that, on your host, /usr/local/share/qt is:

              1. a symlink being managed by some "alternatives" command (update-alternatives or Brew?), in which case you'd need to use that (external to Qt Creator) command to update the symlink to point to your installed Qt 6.4.0; or
              2. another Qt version not configured in your Qt Creator (its not listed in your kits screenshot), in which case you should remove or override QTDIR in your kit configuration.

              Either way, I suspect you need to update your kit's environment variable/s - either manually overriding QTDIR to point to the right place, or removing it, or perhaps simply enabling that "Clear system environment" checkbox.

              The bottom line is that qt selects the wrong folders.

              Which "folders" are being selected?

              Cheers.

              I 1 Reply Last reply
              1
              • Paul ColbyP Paul Colby

                Hi @Idodoqdo, it looks like your Qt 6.4.0 kit is configured to use system environment variables, and one of those is QTDIR pointing to /usr/local/share/qt which does not appear to be where your Qt 6.4.0 is installed.

                It's possible that, on your host, /usr/local/share/qt is:

                1. a symlink being managed by some "alternatives" command (update-alternatives or Brew?), in which case you'd need to use that (external to Qt Creator) command to update the symlink to point to your installed Qt 6.4.0; or
                2. another Qt version not configured in your Qt Creator (its not listed in your kits screenshot), in which case you should remove or override QTDIR in your kit configuration.

                Either way, I suspect you need to update your kit's environment variable/s - either manually overriding QTDIR to point to the right place, or removing it, or perhaps simply enabling that "Clear system environment" checkbox.

                The bottom line is that qt selects the wrong folders.

                Which "folders" are being selected?

                Cheers.

                I Offline
                I Offline
                Idodoqdo
                wrote on last edited by
                #7

                @Paul-Colby hi, i want connect this directory:
                670b52be-dc6f-4256-ae31-06fca9f46c15-image.png
                but
                431a342d-dee2-4f3e-b8d8-43b082ae4710-image.png

                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