filcuc / nimqml

Qt Qml bindings for the Nim programming language
Other
164 stars 20 forks source link

could not load: DOtherSide.dll #30

Closed levovix0 closed 3 years ago

levovix0 commented 3 years ago

OS Windows I compiled dotherside (tried different compilers), moved the dll to binary dir (also tried C:\Windows\System32 and C:\Window\SysWOW64)

Standard nim's dynlib.loadLib returns nil. Seems like the library is located, but it can't load.

How to fix this?

filcuc commented 3 years ago

@levovix0 you need to have also all the Qt libraries in your path. See https://wiki.qt.io/Deploy_an_Application_on_Windows

filcuc commented 3 years ago

Another options is to use the env variables QT_PLUGIN_PATH and QML2_IMPORT_PATH Google about them for further info.

levovix0 commented 3 years ago

Ok, thanks, it works. Maybe you should write about it in the doc?