Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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.



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



  • 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":http://doc.qt.nokia.com/4.7/tools-plugandpaint.html#importing-static-plugins shows you the details.

    This boils down to

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



  • Yes, but the point is pnp_basictools is not generated...



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


Log in to reply