November 10, 2011

veeeee_d veeeee_d
Lab Rat
56 posts

Plugin Issue

 

Hello, guys. So, I’m not that new to Qt, yet I hadn’t read about its plugins until yesterday.
I am trying to use the Plug And Paint example, but I found that the “Basic Tools” static plugin is only compiled to a .a file, and I’m a Windows 7 user, so that’s no use.
Plug And Paint complains that “pnp_basictoolsd” is not found. I have deleted and recompiled to make sure, and I get three files on the output folder:

libpnp_basictoolsd.a
libpnp_extrafiltersd.a
pnp_extrafiltersd.dll

Anyone has a hint?

Thanks in advance,
Vee.

4 replies

November 10, 2011

veeeee_d veeeee_d
Lab Rat
56 posts

It’s worth mentioning that the non-static plugins work, as I can load and use them.

November 11, 2011

Volker Volker
Robot Herder
5428 posts

In the example, the basic tools is always built statically. So you always have to link it statically to your application. The Plug & Paint explanation [doc.qt.nokia.com] shows you the details.

This boils down to

  1. LIBS += -L/path/to/your/plugin/binaries -lpnp_basictools

November 17, 2011

veeeee_d veeeee_d
Lab Rat
56 posts

Yes, but the point is pnp_basictools is not generated…

November 17, 2011

Volker Volker
Robot Herder
5428 posts

If I remember correctly, you will have to build the plugins separately.

 
  ‹‹ emptying a sql table model (or a table view)      mixing Qt3 and Qt4 core in an application ››

You must log in to post a reply. Not a member yet? Register here!