Failed to create D3D11 swapchain: The application made a call that is invalid
-
I'm trying to deploy a qt application on my windows server 2012 R2. I've developed app on my windows 10 and it worked fine on the developement machine but it doesn't show gui on my Windows server.
The problem is related to loading directX dlls I suppose. Here is the screen shot of the debugView on my windows server.
ListDlls shows that on windows server, that app couldn't find
C:\WINDOWS\SYSTEM32\d3d11.dll because its not even there!I've tried to copy the d3d11.dll from my development machine to server but app complains about missing api-ms-win-core-heap-l2-1-0.dll and the list goes if i copy individual dlls.
What could be the possible solution ?
-
@hskoglund I somehow find a lame solution. Here is what i did,
Set QT_QUICK_BACKEND to software in my main(..)
QQuickWindow::setSceneGraphBackend("software");
set the following environment variable on my server i.e.
QSG_RHI_PREFER_SOFTWARE_RENDERER=1
It work for now atleast.