Qt Creator fails to load Qwt plugin (64-bit)
-
Hi,
I have installed Qt 5.9.1 on Windows 7. The only installed kit is "Desktop Qt 5.9.1 MSVC2015 64-bit". Qwt-6.1.3 (64-bit) is built and installed.I have created a test widget using Qwt. It builds and runs without problems.
However, when trying to modify the form using Qt Creator 4.3.1, the Qwt plugin fails to load. The Qwt widgets are not visible in the side panel. "Tools->Form Editor->About Qt Designer Plugins" reports:
"Cannot load library C:\Qwt-6.1.3\plugins\designer\qwt_designer_plugin.dll: %1 is not a valid Win32 application"
If I run Qt Designer (64-bit) from the Start menu ("Qt 5.9.1->5.9.1->MSVC 2015 (64-bit)->Designer"), the Qwt plugin is loaded correctly. Qwt is displayed in the side panel and can be added to the form.
I need Qt Creator to load 64-bit plugins. Can Qt Creator be setup to load 64-bit plugins?
-
Thanks to @jsulm and @SGaist for explaining the mismatch problem with the plugin.
I have implemented the following work-around/solution:
- Built and deployed a 32-bit Qwt plugin for Qt Creator.
- Built a 64-bit Qwt library (.lib).
- Built my test widget as a 64-bit application (linking in the 64-bit Qwt library).
Works for me :-)
-
Hi,
I have installed Qt 5.9.1 on Windows 7. The only installed kit is "Desktop Qt 5.9.1 MSVC2015 64-bit". Qwt-6.1.3 (64-bit) is built and installed.I have created a test widget using Qwt. It builds and runs without problems.
However, when trying to modify the form using Qt Creator 4.3.1, the Qwt plugin fails to load. The Qwt widgets are not visible in the side panel. "Tools->Form Editor->About Qt Designer Plugins" reports:
"Cannot load library C:\Qwt-6.1.3\plugins\designer\qwt_designer_plugin.dll: %1 is not a valid Win32 application"
If I run Qt Designer (64-bit) from the Start menu ("Qt 5.9.1->5.9.1->MSVC 2015 (64-bit)->Designer"), the Qwt plugin is loaded correctly. Qwt is displayed in the side panel and can be added to the form.
I need Qt Creator to load 64-bit plugins. Can Qt Creator be setup to load 64-bit plugins?
-
Thanks to @jsulm and @SGaist for explaining the mismatch problem with the plugin.
I have implemented the following work-around/solution:
- Built and deployed a 32-bit Qwt plugin for Qt Creator.
- Built a 64-bit Qwt library (.lib).
- Built my test widget as a 64-bit application (linking in the 64-bit Qwt library).
Works for me :-)
-
Works fine for me too ;-)
thx a lot @frodebj