Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Plugin Issue

    General and Desktop
    2
    5
    1944
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      veeeee_d last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • V
        veeeee_d last edited by

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

        1 Reply Last reply Reply Quote 0
        • G
          goetz last edited by

          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
          @

          http://www.catb.org/~esr/faqs/smart-questions.html

          1 Reply Last reply Reply Quote 0
          • V
            veeeee_d last edited by

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

            1 Reply Last reply Reply Quote 0
            • G
              goetz last edited by

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

              http://www.catb.org/~esr/faqs/smart-questions.html

              1 Reply Last reply Reply Quote 0
              • First post
                Last post