[Solved]KDReports and Qt plugins
-
Hi everyone!
Is there anybody tryed use KDReports from plugin? Before i never tryed combine them, and everything works fine, but now, if anywhere in plugin code i create objects of KDReport library, plugin gives error "Cannot load library [path to plugin file]: The specified module could not be found."edit:
Qt version: 4.8.1
OS: Windows XP
KDReports: 1.4 -
Hi,
Maybe a basic question but: are you sure that the KDReport dll is in the PATH when loading your plugin ?
-
Plugin dll and KDReports dll in a same directory. But one plugin can be loaded by different apps. Probably KDReport dlls should be located in same directory with every executable?
-
No, but it should be in a path that is found in the PATH variable or, you could try to add a call to QCoreApplication's addLibraryPath in your plugin
-
Unfortunately doesn't help.
-
Did you try modifying the PATH variable ?
-
Yes i did. It doesn’t help.
But problem solved by rebuilding KDReport and clean&rebuild my project. -
Well then, there's only one thing left to do... Add solved to the thread's title :)