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. qmake's 'shell_path' return an altered path on Windows 10

qmake's 'shell_path' return an altered path on Windows 10

Scheduled Pinned Locked Moved Unsolved General and Desktop
12 Posts 5 Posters 1.3k 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.
  • M Offline
    M Offline
    Merlino
    wrote on last edited by
    #1

    Hello,

    I'm facing a strange problem on my multi-platform project.
    The project's qmake use "$$shell_path" to set some working paths.
    It works fine on Linux, but on Windows return an altered path like this example:

    QIFROOT = C:\Qt\Tools\QtInstallerFramework\4.1

    $$shell_path($$QIFROOT) returns:
    /C/Qt/Tools/QtInstallerFramework/4.1

    This problems is present in every path set this way and I cannot build.

    Can anybody help me?

    jsulmJ 1 Reply Last reply
    0
    • M Merlino

      Hello,

      I'm facing a strange problem on my multi-platform project.
      The project's qmake use "$$shell_path" to set some working paths.
      It works fine on Linux, but on Windows return an altered path like this example:

      QIFROOT = C:\Qt\Tools\QtInstallerFramework\4.1

      $$shell_path($$QIFROOT) returns:
      /C/Qt/Tools/QtInstallerFramework/4.1

      This problems is present in every path set this way and I cannot build.

      Can anybody help me?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Merlino said in qmake's 'shell_path' return an altered path on Windows 10:

      /C/Qt/Tools/QtInstallerFramework/4.1

      Looks like a path in CygWin - do you have it installed on your system?

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

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Merlino
        wrote on last edited by
        #3

        Hello, thanks for your answer :)

        CygWin is installed but seems not used.

        Christian EhrlicherC 1 Reply Last reply
        0
        • M Merlino

          Hello, thanks for your answer :)

          CygWin is installed but seems not used.

          Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Merlino said in qmake's 'shell_path' return an altered path on Windows 10:

          CygWin is installed but seems not used.

          It's for sure in your PATH env var.

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

          M 1 Reply Last reply
          0
          • Christian EhrlicherC Christian Ehrlicher

            @Merlino said in qmake's 'shell_path' return an altered path on Windows 10:

            CygWin is installed but seems not used.

            It's for sure in your PATH env var.

            M Offline
            M Offline
            Merlino
            wrote on last edited by
            #5

            @Christian-Ehrlicher I have checked the PATH variable, it's clean, no there isn't the path to cygwin :(

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Hi,

              Are you getting this result from within Qt Creator ?

              If so, check the environment variables there as well.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              M 1 Reply Last reply
              0
              • SGaistS SGaist

                Hi,

                Are you getting this result from within Qt Creator ?

                If so, check the environment variables there as well.

                M Offline
                M Offline
                Merlino
                wrote on last edited by
                #7

                @SGaist yes, is the result of the $$shell_path function inside the qmake.
                These variables are defined somewhere by Qt, they aren't in the system variables.

                JonBJ 1 Reply Last reply
                0
                • M Merlino

                  @SGaist yes, is the result of the $$shell_path function inside the qmake.
                  These variables are defined somewhere by Qt, they aren't in the system variables.

                  JonBJ Offline
                  JonBJ Offline
                  JonB
                  wrote on last edited by JonB
                  #8

                  @Merlino
                  @SGaist is asking you whether you run your qmake command (or whatever invokes it) from within Qt Creator or from e.g. a command-line quite outside of Creator?

                  M 1 Reply Last reply
                  0
                  • JonBJ JonB

                    @Merlino
                    @SGaist is asking you whether you run your qmake command (or whatever invokes it) from within Qt Creator or from e.g. a command-line quite outside of Creator?

                    M Offline
                    M Offline
                    Merlino
                    wrote on last edited by
                    #9

                    @JonB I run qmake within Qt Creator, and the environment is clean.

                    M 1 Reply Last reply
                    0
                    • M Merlino

                      @JonB I run qmake within Qt Creator, and the environment is clean.

                      M Offline
                      M Offline
                      Merlino
                      wrote on last edited by
                      #10

                      Maybe I've found a solution:

                      https://forum.qt.io/topic/99591/5-9-7-problem-with-copying-a-dll-during-build-uses-linux-paths/4

                      Christian EhrlicherC 1 Reply Last reply
                      0
                      • M Merlino

                        Maybe I've found a solution:

                        https://forum.qt.io/topic/99591/5-9-7-problem-with-copying-a-dll-during-build-uses-linux-paths/4

                        Christian EhrlicherC Offline
                        Christian EhrlicherC Offline
                        Christian Ehrlicher
                        Lifetime Qt Champion
                        wrote on last edited by
                        #11

                        @Merlino said in qmake's 'shell_path' return an altered path on Windows 10:

                        Maybe I've found a solution:

                        That's what I wrote in my post above...

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

                        M 1 Reply Last reply
                        1
                        • Christian EhrlicherC Christian Ehrlicher

                          @Merlino said in qmake's 'shell_path' return an altered path on Windows 10:

                          Maybe I've found a solution:

                          That's what I wrote in my post above...

                          M Offline
                          M Offline
                          Merlino
                          wrote on last edited by
                          #12

                          @Christian-Ehrlicher yes thank you, now I know also what and why

                          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