Or maybe, if the Windows executable is created by Microsoft Visual C, use the  
/delayload:dllname linker option, and advise users on Windows 7 and 8, to not 
try to use DirectX12 (by setting the environment variable QSG_RHI_BACKEND if 
necessary). See 
https://learn.microsoft.com/en-us/cpp/build/reference/linker-support-for-delay-loaded-dlls?view=msvc-170

 

 

Van: Richard Kimberly Heck Verzonden: zondag 3 november 2024 22:46
Aan: Kees Zeelenberg ; 'taras mogilyuk' ; lyx-users@lists.lyx.org
Onderwerp: Re: d3d12.dll error on Windows 8.1

 

On 11/3/24 10:51 AM, Kees Zeelenberg wrote:

DirectX12 is not available on Windows 7 and 8; DirectX11 is the latest. See 
https://support.microsoft.com/en-us/topic/how-to-install-the-latest-version-of-directx-d1f5ffa5-dae2-246c-91b1-ee1e973ed8c2

The dependence on DirectX12 comes from Qt 6; see 
https://doc.qt.io/qt-6/qtquick-visualcanvas-scenegraph-renderer.html#rendering-via-the-qt-rendering-hardware-interface.
 This page also says that you may set the environment variable QSG_RHI_BACKEND 
to one of the values vulkan, metal, opengl, d3d11, d3d12. Since d3d11.dll is 
also a dependency of QtGui.dll, you might try whether setting  QSG_RHI_BACKEND 
to d3d11 works, although, since d3d12.dll is a direct dependency of QtGui.dll, 
I suspect it won’t; if not, you could try renaming a copy of d3d11.dll to 
d3d12.dll and add it to the LyX/bin directory.

It sounds, therefore, as if one could compile LyX 2.4.2 with Qt 5, and that 
would avoid this problem. Yes?

Riki

 

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-users

Reply via email to