Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to use ANGLE on Windows

How to use ANGLE on Windows

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
10 Posts 2 Posters 2.1k 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.
  • M Offline
    M Offline
    maxwell31
    wrote on last edited by maxwell31
    #1

    Hi,

    I have a cross-platform QT application. I cross-compile for Windows in Linux. Due to problems with some graphics cards I would like my Windows version to use ANGLE. What do I need to do for this? Is there a precompiled DLL for ANGLE which I can simply deploy along with the .exe file? Or do I already need to make changes at the compilation stage?

    I should note that I tried to do

    set QT_OPENGL=angle
    set QSG_INFO=1
    

    when starting, but this did not change anything.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What version of Qt are you using ?

      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
      • M Offline
        M Offline
        maxwell31
        wrote on last edited by
        #3

        5.13 under Linux

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          How did you cross-compile Qt for Windows ?

          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
          • M Offline
            M Offline
            maxwell31
            wrote on last edited by maxwell31
            #5

            I did it using https://mxe.cc/ which uses MinGW-w64 as compiler under Ubuntu Linux. I would like to stick to cross compilation if possible, as my program uses some libraries which would be non straightforward to compile under Windows.

            What I have so far:
            If I install Qt-Creator in Windows, and compile one of the example programs, I also get the d3dcompiler_47.dll (is this actually the relevant file?). If I then start one of the example programs with set QT_OPENGL=angle QSG_INFO tells me that it is correctly using angle.

            How could I get my cross compiled program to use ANGLE?

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              It's at the plugin level however I'm not sure how you can ensure you can get it to be cross-built.

              Are you cross-compiling C libraries ?

              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
              • M Offline
                M Offline
                maxwell31
                wrote on last edited by
                #7

                Not sure what you mean with cross compiling C libraries. As far as I understand it, MingW comes with some libraries precompiled, like libstdc++6.dll.

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  I meant the libraries that you are cross-compiling because they are difficult to build on Windows. Are they C or C++ libraries ?

                  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
                  • M Offline
                    M Offline
                    maxwell31
                    wrote on last edited by
                    #9

                    Yes, they are C and C++ libraries

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      In that case you have to use the MinGW build of Qt. If you only used C libraries you could have used both VS and MinGW.

                      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
                      1

                      • Login

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