Unsolved Showing Error while building Qt 5.4.0 source code through VS-2015
-
Hi,
I am trying to build Qt 5.4.0 source code through visual studio 2015 but its showing fallowing error:
D:\qt-everywhere-opensource-src-5.4.0>configure.bat
- cd qtbase
- D:\qt-everywhere-opensource-src-5.4.0\qtbase\configure.bat -top-level
Unable to detect the platform from environment. Use -platform command lineargume
nt or set the QMAKESPEC environment variable and run configure again
See the README file for a list of supported operating systems and compilers.
D:\qt-everywhere-opensource-src-5.4.0>
I have run "set QMAKESPEC=win32-msvc2015 " this command, then showing fallowing error:
D:\qt-everywhere-opensource-src-5.4.0>configure.bat
- cd qtbase
- D:\qt-everywhere-opensource-src-5.4.0\qtbase\configure.bat -top-level
QMAKESPEC environment variable is set to "win32-msvc2015" which is not a support
ed platform
See the README file for a list of supported operating systems and compilers.
D:\qt-everywhere-opensource-src-5.4.0>
Is it possible to build source code of Qt 5.4.0 by visual studio 2015??????
Kindly suggest me.Thanks...
-
Qt 5.4 supports MSVC 2013 max, as far as I know. You can probably make it work by applying some custom patches to Qt.
-
@sierdzio said in Showing Error while building Qt 5.4.0 source code through VS-2015:
Qt 5.4 supports MSVC 2013 max, as far as I know. You can probably make it work by applying some custom patches to Qt.
I might be easier to use Qt 5.6.x or 5.9.x, however. Is there a reason you want to use Qt 5.4, @amitgolhani?
-
Actually I have used the APIs of Qt 5.4.0 in our project. So I do not want to change Qt version right now. There is another way to build Qt 5.4.0 by MSVC2015?
Thanks.
-
@amitgolhani said in Showing Error while building Qt 5.4.0 source code through VS-2015:
Actually I have used the APIs of Qt 5.4.0 in our project
You mean private Qt APIs? If you refer to the public ones then it should not be a problem, Qt is forwards and backwards compatible (same source code will compile with any Qt 5.x version).
-
Actually, I have purchased commercial licence of Qt 5.4.0 and PyQt for my project. Both (Qt 5.4.0 and PyQt) versions are working fine in my project. My project is stable right now. Due to some reason, the entire project have to migrate from MSVC2012 to MSVC2015. If I change the versions of Qt 5.4.0 and PyQt, then I have to buy new commercial licenses (for both Qt and PyQt) and its process is time consuming and the migration required immediate. This is the the reason, I have to build Qt 5.4.0 by MSVC2015.
Can I build Qt 5.4.0 by MSVC2015? what challenges will I face in the migration?
Kindly suggest me.Thanks.
-
@amitgolhani If you have paid for a license you can ask The Qt Company for support - it could be faster than asking here.
-
@amitgolhani said in Showing Error while building Qt 5.4.0 source code through VS-2015:
If I change the versions of Qt 5.4.0 and PyQt, then I have to buy new commercial licenses
If your Qt license has not run out, you can simply download a newer version.
Anyway, like @jsulm says, contact Qt Company.
I think allowing 5.4 to compile with MSVC2015 should be relatively easy (copy mkspecs from newer Qt, maybe tweak some things in qglobals.h), it's probably a single commit you could find in Qt git repo history. But checking with Qt Company is a better way if you still have their support.
-
Could you please suggest how to contact with the Qt company? Is there any direct link to communicate to Qt company?
Thanks...
-
@amitgolhani Just go to their web page: https://www1.qt.io/contact-us/ ...
-
Thanks a lot to all of you...
:)