Unsolved How to use ANGLE on Windows
-
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.
-
Hi,
What version of Qt are you using ?
-
5.13 under Linux
-
How did you cross-compile Qt for Windows ?
-
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?
-
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 ?
-
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.
-
I meant the libraries that you are cross-compiling because they are difficult to build on Windows. Are they C or C++ libraries ?
-
Yes, they are C and C++ libraries
-
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.