tags:

views:

690

answers:

2

Hi,

I have gotten the latest QWT 5.1.2 for QT 4.5 and managed to get it to complie. I am now trying to get the plugin to work in QT Designer (with VS intergration). I have placed the plugin files into the plugin/designer folder, but when attempting to load, I hit this error

Cannot load library qwt_desginer_plugin5.dll: The specified module cannot be found.

I've done some search on this issue, one page which suggest moving the plugin to the VS intergration folder - which does not exist for Program Files\Nokia\Vs4Addin.

My QT Designer is a debug-and-relase build. (That is, if I use a debug build of the plugin it would complain that it is expecting a release).

A: 

It appears that I have to place the generated dll into the qt\bin folder for the designer to load the plugin

Extrakun
+1  A: 

qwt_designer_plugin5.dll depends on qwt5.dll, so:

Additionally to placing "qwt_desginer_plugin5.dll" in "plugins\designer" directory, you must put "qwtlib_root\lib\qwt5.dll", where "qwtlib_root" is directory in which you put QWT, to some place where windows loader can find it (at example, you can put it in "%QTDIR%\bin" directory)

vnm