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. How to compile qt source on Windows7 platform?
QtWS25 Last Chance

How to compile qt source on Windows7 platform?

Scheduled Pinned Locked Moved General and Desktop
compilesource codewindows7openglmingw
5 Posts 3 Posters 2.3k Views
  • 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.
  • D Offline
    D Offline
    dhuta
    wrote on 30 Apr 2015, 07:27 last edited by dhuta
    #1

    I want to compile qt5.3.1 source code with some changes. Actually, i want to compile qt like qt-opensource-windows-x86-mingw482_opengl-5.3.1.exe as official website shows. The point is that the specific constraint like mingw & opengl etc matter.

    Could anyone help me?

    K 1 Reply Last reply 30 Apr 2015, 08:29
    0
    • D dhuta
      30 Apr 2015, 07:27

      I want to compile qt5.3.1 source code with some changes. Actually, i want to compile qt like qt-opensource-windows-x86-mingw482_opengl-5.3.1.exe as official website shows. The point is that the specific constraint like mingw & opengl etc matter.

      Could anyone help me?

      K Offline
      K Offline
      koahnig
      wrote on 30 Apr 2015, 08:29 last edited by
      #2

      @dhuta
      You need to download the source package from here and the guidelines are here

      The exe you referring to is a precompiled version. It includes also source code, but it is recommended to use the pure source code package and start the compilation.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dhuta
        wrote on 4 May 2015, 03:13 last edited by
        #3

        @koahnig

        i must use Visual Studio 2013? I just installed Visual Studio 2012. And when i run the .cmd as those steps show, there are errors like:

        NMAKE: fatal error U1077: "c:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\cl.EXE": return code: "0xc1000135".
        Stop.
        Building qmake failed, return code 2.
        

        What's the reason? How to solve it?

        K 1 Reply Last reply 4 May 2015, 06:15
        0
        • D dhuta
          4 May 2015, 03:13

          @koahnig

          i must use Visual Studio 2013? I just installed Visual Studio 2012. And when i run the .cmd as those steps show, there are errors like:

          NMAKE: fatal error U1077: "c:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\cl.EXE": return code: "0xc1000135".
          Stop.
          Building qmake failed, return code 2.
          

          What's the reason? How to solve it?

          K Offline
          K Offline
          koahnig
          wrote on 4 May 2015, 06:15 last edited by
          #4

          @dhuta
          You may use basically any compiler suite, but you have to stay with it. Binaries of Qt libs of compiler versions are not compatible in general. When Visual Studio 2013 is used for compiling Qt libs, you can use those only for VS 2013, but not for any other version of VS. MinGW is different again.

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 4 May 2015, 23:33 last edited by
            #5

            Hi,

            To add to @koahnig, it's not a Qt specific problem. Compilers on Windows are not compatible one with the other, so basically you have to ensure that all components of your software are built using the same compiler.

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

            1 Reply Last reply
            0

            2/5

            30 Apr 2015, 08:29

            • Login

            • Login or register to search.
            2 out of 5
            • First post
              2/5
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved