Solved Unable to detect the platform from environment
-
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 -
@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.
-
@jsulm Yeah, I am developing application. Even I tried with Open source after my free trail but i am getting the same
-
@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.
-
No, I will try for that thank you
-
@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
-
@Ardec I would suggest to remove your current Qt and install the open source version to get rid of the trial license.
-
This post is deleted! -
@jsulm If I have two different versions of QT installed on my pc. It may cause any problem for the above error??
reply
-
@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.
-
This post is deleted! -
@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! -
@jsulm I found the solution finally, The problem with the Path(Environment Changed)
It missed the qmake path
-
@Bharathdwaj Yeah, absolutely its working now.