Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt cannot build and run "Boxes" example
Qt 6.11 is out! See what's new in the release blog

Qt cannot build and run "Boxes" example

Scheduled Pinned Locked Moved Solved General and Desktop
28 Posts 3 Posters 20.4k 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.
  • H Offline
    H Offline
    Hassan-math
    wrote on last edited by Hassan-math
    #17

    @mrjj
    Thank you for your instruction. The reason I chose all kits to get installed on my machine was that I did not know which kit includes OpenGL! So, I tried all of them.

    I'm going to do clean uninstallation of Qt and install it again.

    Just to ensure: I should just pick MSVC 2015 64 bit to use OpenGL (as you have shown in the picture)? My project is about physics-based simulation and consists of 3D visualisation, a lot of mathematics (I need Eigen for example) and machine learning. So, If I need to check other options let me know.

    My environment is:
    Windows 10
    I already have Installed VS2019

    Thanks!

    mrjjM 1 Reply Last reply
    0
    • H Hassan-math

      @mrjj
      Thank you for your instruction. The reason I chose all kits to get installed on my machine was that I did not know which kit includes OpenGL! So, I tried all of them.

      I'm going to do clean uninstallation of Qt and install it again.

      Just to ensure: I should just pick MSVC 2015 64 bit to use OpenGL (as you have shown in the picture)? My project is about physics-based simulation and consists of 3D visualisation, a lot of mathematics (I need Eigen for example) and machine learning. So, If I need to check other options let me know.

      My environment is:
      Windows 10
      I already have Installed VS2019

      Thanks!

      mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #18

      @Hassan-math said in Qt cannot build and run "Boxes" example:

      Hi

      If you have Vs2019 installed then select the Qt for Vs 2017 64 bit (not 2015 then)
      All VS and mingw uses openGL.

      but if you need Eigen then I think using visual studio is more fun to than mingw.

      Do notice you can use it 2 ways. Either in Creator, the editor that comes with Qt or the VS Editor.
      If you want to use VS editor thete is a plugin that makes integration better

      If you want to use Creator then be awre to use a debugger, its an extra install as
      Creator cant use the one build in the vs editor and need the microsoft debug tools.

      On windows VS is often more fun than mingw when wanting to use 3rd party libs.

      1 Reply Last reply
      0
      • H Offline
        H Offline
        Hassan-math
        wrote on last edited by
        #19

        @mrjj
        I'm going to use Creator as editor. So, I'll choose VS2017 64 bit.

        Now the problem is that I cannot uninstall QT. The Qt maintenance tool is not working. When I go to the Qt folder there are "MaintenanceTool.exe.new" and "MaintenanceTool.dat.new". Also, using Windows uninstallation is not working as it cannot find "MaintenanceTool.exe:.

        How can I remove Qt?

        1 Reply Last reply
        0
        • H Offline
          H Offline
          Hassan-math
          wrote on last edited by Hassan-math
          #20

          @mrjj
          I changed "MaintenanceTool.exe.new" to "MaintenanceTool.exe" and Windows uninstallation works.

          Just another question: How can I install a debugger for Creator?

          mrjjM 1 Reply Last reply
          1
          • H Hassan-math

            @mrjj
            I changed "MaintenanceTool.exe.new" to "MaintenanceTool.exe" and Windows uninstallation works.

            Just another question: How can I install a debugger for Creator?

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #21

            @Hassan-math said in Qt cannot build and run "Boxes" example:

            : How can I install a debugger for Creator?

            https://doc.qt.io/qtcreator/creator-debugger-engines.html

            "To use the CDB debugger, you must install the Debugging tools for Windows. You can download them from Download and Install Debugging Tools for Windows as part of the Windows SDK."
            https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk/

            1 Reply Last reply
            0
            • H Offline
              H Offline
              Hassan-math
              wrote on last edited by
              #22

              @mrjj

              I unistalled Qt completely and installed it again with "MVS2019 64 bit kit". When I wan to build "Boxes" I get this error:

              :-1: error: Project ERROR: This example requires Qt to be configured with -opengl desktop
              

              same as past.
              Any idea?

              mrjjM 1 Reply Last reply
              0
              • H Hassan-math

                @mrjj

                I unistalled Qt completely and installed it again with "MVS2019 64 bit kit". When I wan to build "Boxes" I get this error:

                :-1: error: Project ERROR: This example requires Qt to be configured with -opengl desktop
                

                same as past.
                Any idea?

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by mrjj
                #23

                @Hassan-math

                What Qt version ?
                5.15.x?

                UPDATE: just tried the sample myself and
                it says the same.
                I already use openGl in my product/work so that is clearly wrong.

                So its something else but good news as its not something local on your pc :)

                I guess they changed something with OpenGL and forgot the examples

                1 Reply Last reply
                0
                • H Offline
                  H Offline
                  Hassan-math
                  wrote on last edited by
                  #24

                  @mrjj
                  5.15.2.

                  So, it's Qt problem, not mine :)

                  mrjjM 1 Reply Last reply
                  0
                  • H Hassan-math

                    @mrjj
                    5.15.2.

                    So, it's Qt problem, not mine :)

                    mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by
                    #25

                    @Hassan-math

                    Yes. It worked on none of the 3 windows pcs.
                    and its both visual stud and mingw

                    So it should work soon for you as soon as we find out what broke

                    1 Reply Last reply
                    0
                    • mrjjM Offline
                      mrjjM Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on last edited by
                      #26

                      Hi
                      Turns out they never updated the samples so it does not work with newer Qt compiled with
                      dynamic opengl.

                      1 Reply Last reply
                      0
                      • H Offline
                        H Offline
                        Hassan-math
                        wrote on last edited by
                        #27

                        @mrjj ,
                        Hi
                        Thank you for the update. I just want to ensure that I can use Qt OpenGL with

                        Qt += OpenGL
                        

                        in the Creator. Does it work correctly in my Qt version?

                        mrjjM 1 Reply Last reply
                        0
                        • H Hassan-math

                          @mrjj ,
                          Hi
                          Thank you for the update. I just want to ensure that I can use Qt OpenGL with

                          Qt += OpenGL
                          

                          in the Creator. Does it work correctly in my Qt version?

                          mrjjM Offline
                          mrjjM Offline
                          mrjj
                          Lifetime Qt Champion
                          wrote on last edited by
                          #28

                          @Hassan-math

                          Yes, should be fine.

                          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
                          • Unsolved