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. Unable to detect the platform from environment
Forum Updated to NodeBB v4.3 + New Features

Unable to detect the platform from environment

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
14 Posts 3 Posters 5.4k Views 2 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.
  • A Offline
    A Offline
    Ardec
    wrote on last edited by
    #1

    Hello all,

    I am working on Qt5.5.1 with msvc2013 for my project. When i ran the configure.bat file it generating a strange error shown below. It was working fine since one month but suddenly it generating error with the same command which i used

    The following output

    cd qtbase
    Press any key to continue . . .
    D:\TOOL\Qt5\5.5\Src\qtbase\configure.bat -embedded -xplatform android-g++ -hostprefix %CD% -prefix / -qt-sql-sqlite
    Unable to detect the platform from environment. Use -platform command lineargument or set the QMAKES
    PEC environment variable and run configure again
    See the README file for a list of supported operating systems and compilers.
    Press any key to continue . . .
    I was working with 30 days free trail of Qt for application development. Is this problem with license or some other reasons??
    Thank you all

    jsulmJ 1 Reply Last reply
    0
    • A Ardec

      Hello all,

      I am working on Qt5.5.1 with msvc2013 for my project. When i ran the configure.bat file it generating a strange error shown below. It was working fine since one month but suddenly it generating error with the same command which i used

      The following output

      cd qtbase
      Press any key to continue . . .
      D:\TOOL\Qt5\5.5\Src\qtbase\configure.bat -embedded -xplatform android-g++ -hostprefix %CD% -prefix / -qt-sql-sqlite
      Unable to detect the platform from environment. Use -platform command lineargument or set the QMAKES
      PEC environment variable and run configure again
      See the README file for a list of supported operating systems and compilers.
      Press any key to continue . . .
      I was working with 30 days free trail of Qt for application development. Is this problem with license or some other reasons??
      Thank you all

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

      @Ardec said in Unable to detect the platform from environment:

      30 days free trail of Qt

      is there a reason why you're using a trial version? Do you need a commercial license? If not you can use the open source version.

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

      A 1 Reply Last reply
      0
      • jsulmJ jsulm

        @Ardec said in Unable to detect the platform from environment:

        30 days free trail of Qt

        is there a reason why you're using a trial version? Do you need a commercial license? If not you can use the open source version.

        A Offline
        A Offline
        Ardec
        wrote on last edited by
        #3

        @jsulm Yeah, I am developing application. Even I tried with Open source after my free trail but i am getting the same

        jsulmJ 1 Reply Last reply
        0
        • A Ardec

          @jsulm Yeah, I am developing application. Even I tried with Open source after my free trail but i am getting the same

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

          @Ardec Another question: do you have to build Qt by yourself? If not you can just install prebuilt binaries using Qt online installer.

          You probably have to get rid of this trial license, but I don't know how.

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

          A 1 Reply Last reply
          0
          • A Offline
            A Offline
            Ardec
            wrote on last edited by
            #5

            No, I will try for that thank you

            1 Reply Last reply
            0
            • jsulmJ jsulm

              @Ardec Another question: do you have to build Qt by yourself? If not you can just install prebuilt binaries using Qt online installer.

              You probably have to get rid of this trial license, but I don't know how.

              A Offline
              A Offline
              Ardec
              wrote on last edited by
              #6

              @jsulm If I want to port Qt on some Target plat form I must have access to do it for example on target mkspecs EMBEDDED LINUX

              jsulmJ 1 Reply Last reply
              0
              • A Ardec

                @jsulm If I want to port Qt on some Target plat form I must have access to do it for example on target mkspecs EMBEDDED LINUX

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

                @Ardec I would suggest to remove your current Qt and install the open source version to get rid of the trial license.

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

                A 1 Reply Last reply
                0
                • A Offline
                  A Offline
                  Ardec
                  wrote on last edited by
                  #8
                  This post is deleted!
                  1 Reply Last reply
                  0
                  • jsulmJ jsulm

                    @Ardec I would suggest to remove your current Qt and install the open source version to get rid of the trial license.

                    A Offline
                    A Offline
                    Ardec
                    wrote on last edited by
                    #9

                    @jsulm If I have two different versions of QT installed on my pc. It may cause any problem for the above error??

                    reply

                    jsulmJ 1 Reply Last reply
                    0
                    • A Ardec

                      @jsulm If I have two different versions of QT installed on my pc. It may cause any problem for the above error??

                      reply

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

                      @Ardec I don't think so. You should use one of those vcvarsall.bat scripts provided by Visual Studio. These scripts prepare the environment, then the configure script should be able to recognize the platform.

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

                      A B 3 Replies Last reply
                      0
                      • jsulmJ jsulm

                        @Ardec I don't think so. You should use one of those vcvarsall.bat scripts provided by Visual Studio. These scripts prepare the environment, then the configure script should be able to recognize the platform.

                        A Offline
                        A Offline
                        Ardec
                        wrote on last edited by
                        #11
                        This post is deleted!
                        1 Reply Last reply
                        0
                        • jsulmJ jsulm

                          @Ardec I don't think so. You should use one of those vcvarsall.bat scripts provided by Visual Studio. These scripts prepare the environment, then the configure script should be able to recognize the platform.

                          A Offline
                          A Offline
                          Ardec
                          wrote on last edited by
                          #12

                          @jsulm Yeah I found it, qtenv2.bat using the vcvarsall.bat provided by the VS.

                          echo off
                          echo Setting up environment for Qt usage...
                          set PATH=D:\TOOL\Qt5\5.5\msvc2013_64\bin;%PATH%
                          cd /D D:\TOOL\Qt5\5.5\msvc2013_64
                          echo Remember to call vcvarsall.bat to complete environment setup!

                          1 Reply Last reply
                          0
                          • jsulmJ jsulm

                            @Ardec I don't think so. You should use one of those vcvarsall.bat scripts provided by Visual Studio. These scripts prepare the environment, then the configure script should be able to recognize the platform.

                            B Offline
                            B Offline
                            Bharathdwaj
                            wrote on last edited by
                            #13

                            @jsulm I found the solution finally, The problem with the Path(Environment Changed)

                            It missed the qmake path

                            A 1 Reply Last reply
                            0
                            • B Bharathdwaj

                              @jsulm I found the solution finally, The problem with the Path(Environment Changed)

                              It missed the qmake path

                              A Offline
                              A Offline
                              Ardec
                              wrote on last edited by
                              #14

                              @Bharathdwaj Yeah, absolutely its working now.

                              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