Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Plugin Issue
QtWS25 Last Chance

Plugin Issue

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 2.2k Views
  • 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 Offline
    V Offline
    veeeee_d
    wrote on last edited by
    #1

    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
    0
    • V Offline
      V Offline
      veeeee_d
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goetz
        wrote on last edited by
        #3

        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
        0
        • V Offline
          V Offline
          veeeee_d
          wrote on last edited by
          #4

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

          1 Reply Last reply
          0
          • G Offline
            G Offline
            goetz
            wrote on last edited by
            #5

            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
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved