[Development] Using qml.exe with a custom QML_ELEMENT plugin

Elias Steurer kelteseth at googlemail.com
Wed Oct 25 14:09:07 CEST 2023


Adding a command line option to add dll search paths via 
_wpuntenv_s(L"PATH", ...) or SetDLLDirectory(L"...") into qml.exe would 
also work, right?

Am 25.10.2023 um 12:52 schrieb Ulf Hermann via Development:
>> According to dependency scanner it depends on Qt6Qml.dll, Qt6Core.dll 
>> and World.dll. All of these should be either be available from Qt or 
>> from the additional import path I provided. Even when copying the 
>> dlls into the directory, I get the same error.
>
> This is not about the import path but about the windows dynamic linker 
> being unable to load any library that's not in PATH or next to the 
> application. The application, in this case is the "qml" tool in Qt. 
> That's unfortunate, but this is just how it is on windows. It's not 
> specific to QML modules Any library that's not next to your 
> application has this problem. We have deployment tooling to deal with 
> this.
>
> best regards,
> Ulf


More information about the Development mailing list