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. Build Qt from source
Forum Updated to NodeBB v4.3 + New Features

Build Qt from source

Scheduled Pinned Locked Moved Solved General and Desktop
11 Posts 2 Posters 2.6k Views 1 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.
  • ODБOïO Offline
    ODБOïO Offline
    ODБOï
    wrote on last edited by
    #1

    Hello,
    Trying to build qt from source : http://doc.qt.io/qt-5/windows-requirements.html#building-from-source
    i have a doubt about this :

    ANGLE depends on these extra tools from the GnuWin32 and Win flex-bison projects, which are provided for your convenience in the gnuwin32/bin folder:
    
        GPerf
        Bison, Flex
    
    The gnuwin32/bin folder should be added to the PATH variable.
    

    i dl / installed GPerf from here http://gnuwin32.sourceforge.net/packages.html
    That created a folder c:/gnuwin32/bin ; but there are only 2 .dll files inside bin.
    i also downloaded Bison, Flex

    Do i have to put Bison & Flex inside c:/gnuwin32/bin ?

    Also in Step 4 i have to do :
    configure -debug -nomake examples -nomake tests -skip qtwebengine -opensource

    what is 'configure' it is not recognized as command in windows command prompt

    Last thing i don't understand : when i install qt from online installer, it comes with c:/qt/VERSION/Mingw/ .. but i cant use this for compile Qt from source, correct me if i'm wrong. Do I have to download minGw and install it independetly ?

    I apologize for this silly questions.

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

      Angle is not necessary anymore. You can safely skip that step.

      Besides, the message says which are provided for your convenience in the gnuwin32/bin folder so you don't have to download them on your own, they should be already in Qt source you downloaded.

      Last thing i don't understand : when i install qt from online installer, it comes with c:/qt/VERSION/Mingw/ .. but i cant use this for compile Qt from source, correct me if i'm wrong. Do I have to download minGw and install it independetly ?

      You can use that compiler.

      Although on Windows it's probably the best (and easiest) to use MSVC compiler.

      BTW. The most in-dept guide to building Qt from source is https://wiki.qt.io/Building_Qt_5_from_Git The only downside is that is is based on git instead of using (much simpler) Qt archive packages.

      configure -debug -nomake examples -nomake tests -skip qtwebengine -opensource
      what is 'configure' it is not recognized as command in windows command prompt

      So you opened cmd.exe, changed directory to root directory of Qt source code and then run configure, right?

      (Z(:^

      ODБOïO 2 Replies Last reply
      3
      • sierdzioS sierdzio

        Angle is not necessary anymore. You can safely skip that step.

        Besides, the message says which are provided for your convenience in the gnuwin32/bin folder so you don't have to download them on your own, they should be already in Qt source you downloaded.

        Last thing i don't understand : when i install qt from online installer, it comes with c:/qt/VERSION/Mingw/ .. but i cant use this for compile Qt from source, correct me if i'm wrong. Do I have to download minGw and install it independetly ?

        You can use that compiler.

        Although on Windows it's probably the best (and easiest) to use MSVC compiler.

        BTW. The most in-dept guide to building Qt from source is https://wiki.qt.io/Building_Qt_5_from_Git The only downside is that is is based on git instead of using (much simpler) Qt archive packages.

        configure -debug -nomake examples -nomake tests -skip qtwebengine -opensource
        what is 'configure' it is not recognized as command in windows command prompt

        So you opened cmd.exe, changed directory to root directory of Qt source code and then run configure, right?

        ODБOïO Offline
        ODБOïO Offline
        ODБOï
        wrote on last edited by
        #3

        @sierdzio thank you very much,
        @sierdzio said in Build Qt from source:

        So you opened cmd.exe, changed directory to root directory of Qt source code and then run configure, right?

        yes, i finnaly found configure.bat sorry

        @sierdzio said in Build Qt from source:

        Although on Windows it's probably the best (and easiest) to use MSVC compiler.

        If i use MSVC for building Qt, i am still allowed to use Mingw for the my applications development right ? (silly one)

        I will follow the guide you suggested.
        THX

        sierdzioS 1 Reply Last reply
        0
        • sierdzioS sierdzio

          Angle is not necessary anymore. You can safely skip that step.

          Besides, the message says which are provided for your convenience in the gnuwin32/bin folder so you don't have to download them on your own, they should be already in Qt source you downloaded.

          Last thing i don't understand : when i install qt from online installer, it comes with c:/qt/VERSION/Mingw/ .. but i cant use this for compile Qt from source, correct me if i'm wrong. Do I have to download minGw and install it independetly ?

          You can use that compiler.

          Although on Windows it's probably the best (and easiest) to use MSVC compiler.

          BTW. The most in-dept guide to building Qt from source is https://wiki.qt.io/Building_Qt_5_from_Git The only downside is that is is based on git instead of using (much simpler) Qt archive packages.

          configure -debug -nomake examples -nomake tests -skip qtwebengine -opensource
          what is 'configure' it is not recognized as command in windows command prompt

          So you opened cmd.exe, changed directory to root directory of Qt source code and then run configure, right?

          ODБOïO Offline
          ODБOïO Offline
          ODБOï
          wrote on last edited by ODБOï
          #4

          @sierdzio said in Build Qt from source:

          Angle is not necessary anymore. You can safely skip that step.

          after i did

          configure -debug -nomake examples -nomake tests -skip qtwebengine -opensource -opengl es2
          

          I have a warning :
          Using openGL ES 2.0 on Windows without ANGLE.
          The build will most likely fail.
          Specify -opengl desktop to use regular OpenGL

          ODБOïO 1 Reply Last reply
          0
          • ODБOïO ODБOï

            @sierdzio said in Build Qt from source:

            Angle is not necessary anymore. You can safely skip that step.

            after i did

            configure -debug -nomake examples -nomake tests -skip qtwebengine -opensource -opengl es2
            

            I have a warning :
            Using openGL ES 2.0 on Windows without ANGLE.
            The build will most likely fail.
            Specify -opengl desktop to use regular OpenGL

            ODБOïO Offline
            ODБOïO Offline
            ODБOï
            wrote on last edited by
            #5

            @LeLev ,

            mingw32-make

            In file included from ..\..\include/QtGui/qopengl.h:1,
                             from ..\..\include/QtGui/../../src/gui/kernel/qopenglcontext.h:60,
                             from ..\..\include/QtGui/qopenglcontext.h:1,
                             from C:/Qt/5.11.1/qt-everywhere-src-5.11.1/qtbase/src/gui/kernel/qplatformintegration.h:56,
                             from ..\..\include\QtGui\5.11.1\QtGui/qpa/qplatformintegration.h:1,
                             from accessible\qaccessible.cpp:52:
            ..\..\include/QtGui/../../src/gui/opengl/qopengl.h:111:13: fatal error: GLES2/gl2.h: No such file or directory
             #   include <GLES2/gl2.h>
            
            1 Reply Last reply
            0
            • ODБOïO ODБOï

              @sierdzio thank you very much,
              @sierdzio said in Build Qt from source:

              So you opened cmd.exe, changed directory to root directory of Qt source code and then run configure, right?

              yes, i finnaly found configure.bat sorry

              @sierdzio said in Build Qt from source:

              Although on Windows it's probably the best (and easiest) to use MSVC compiler.

              If i use MSVC for building Qt, i am still allowed to use Mingw for the my applications development right ? (silly one)

              I will follow the guide you suggested.
              THX

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

              @LeLev said in Build Qt from source:

              If i use MSVC for building Qt, i am still allowed to use Mingw for the my applications development right ? (silly one)

              No, MinGW and MSVC builds are not compatible.

              I have a warning :
              Using openGL ES 2.0 on Windows without ANGLE.

              Why are you building with OpenGL ES support? On desktop you should use desktop OpenGL/ DX.

              (Z(:^

              ODБOïO 1 Reply Last reply
              3
              • sierdzioS sierdzio

                @LeLev said in Build Qt from source:

                If i use MSVC for building Qt, i am still allowed to use Mingw for the my applications development right ? (silly one)

                No, MinGW and MSVC builds are not compatible.

                I have a warning :
                Using openGL ES 2.0 on Windows without ANGLE.

                Why are you building with OpenGL ES support? On desktop you should use desktop OpenGL/ DX.

                ODБOïO Offline
                ODБOïO Offline
                ODБOï
                wrote on last edited by
                #7

                Hi,
                @sierdzio said in Build Qt from source:

                Why are you building with OpenGL ES support? On desktop you should use desktop OpenGL/ DX.

                All i want is to test WebGL

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

                  Just use Linux, it will be much easier.

                  If you do decide to stick with Windows, don't forget to force the threaded render loop:

                  Note: The plugin only works using the Threaded Render Loop. If you use Windows or a platform using a different render loop ensure you set QSG_RENDER_LOOP environment variable to threaded
                  

                  https://blog.qt.io/blog/2017/07/07/qt-webgl-streaming-merged/

                  (Z(:^

                  1 Reply Last reply
                  4
                  • ODБOïO Offline
                    ODБOïO Offline
                    ODБOï
                    wrote on last edited by
                    #9

                    can i use linux virtual machine, install qt on it and use mingw for build applications for windows ?

                    sierdzioS 1 Reply Last reply
                    0
                    • ODБOïO ODБOï

                      can i use linux virtual machine, install qt on it and use mingw for build applications for windows ?

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

                      @LeLev said in Build Qt from source:

                      can i use linux virtual machine, install qt on it and use mingw for build applications for windows ?

                      No, MinGW and GCC binaries are not compatible.

                      (Z(:^

                      ODБOïO 1 Reply Last reply
                      1
                      • sierdzioS sierdzio

                        @LeLev said in Build Qt from source:

                        can i use linux virtual machine, install qt on it and use mingw for build applications for windows ?

                        No, MinGW and GCC binaries are not compatible.

                        ODБOïO Offline
                        ODБOïO Offline
                        ODБOï
                        wrote on last edited by
                        #11

                        @sierdzio many thank you for help. I will try to build qt from sources during my hollydays as i already lost to much time trying

                        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