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. Showing Error while building Qt 5.4.0 source code through VS-2015

Showing Error while building Qt 5.4.0 source code through VS-2015

Scheduled Pinned Locked Moved Unsolved General and Desktop
11 Posts 4 Posters 2.2k 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
    amitgolhani
    wrote on last edited by
    #1

    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...

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      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.

      (Z(:^

      1 Reply Last reply
      3
      • aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @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?

        Qt has to stay free or it will die.

        1 Reply Last reply
        4
        • A Offline
          A Offline
          amitgolhani
          wrote on last edited by
          #4

          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.

          sierdzioS 1 Reply Last reply
          0
          • A 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.

            sierdzioS Offline
            sierdzioS Offline
            sierdzio
            Moderators
            wrote on last edited by
            #5

            @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).

            (Z(:^

            A 1 Reply Last reply
            2
            • sierdzioS sierdzio

              @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).

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

              @sierdzio

              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.

              jsulmJ sierdzioS 2 Replies Last reply
              0
              • A amitgolhani

                @sierdzio

                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.

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

                @amitgolhani If you have paid for a license you can ask The Qt Company for support - it could be faster than asking here.

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

                1 Reply Last reply
                2
                • A amitgolhani

                  @sierdzio

                  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.

                  sierdzioS Offline
                  sierdzioS Offline
                  sierdzio
                  Moderators
                  wrote on last edited by
                  #8

                  @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.

                  (Z(:^

                  A 1 Reply Last reply
                  2
                  • sierdzioS sierdzio

                    @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.

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

                    @sierdzio

                    Could you please suggest how to contact with the Qt company? Is there any direct link to communicate to Qt company?

                    Thanks...

                    jsulmJ 1 Reply Last reply
                    0
                    • A amitgolhani

                      @sierdzio

                      Could you please suggest how to contact with the Qt company? Is there any direct link to communicate to Qt company?

                      Thanks...

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

                      @amitgolhani Just go to their web page: https://www1.qt.io/contact-us/ ...

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

                      1 Reply Last reply
                      1
                      • A Offline
                        A Offline
                        amitgolhani
                        wrote on last edited by
                        #11

                        Thanks a lot to all of you...
                        :)

                        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