Results 1 to 3 of 3

Thread: Plugin to Plugin (lib) dependency

  1. #1
    Join Date
    Aug 2007
    Posts
    13
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Plugin to Plugin (lib) dependency

    Can I use a shared plugin library like a regular library?

    For example, I have a project main. Main has 2 plugins A and B. Plugin A has no dependencies. Plugin B relies piggy backs on Plugin A functionallity such that libA.so (Plugin A) needs to be linked.

    Is it possible to load Plugin B?

    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Plugin to Plugin (lib) dependency

    Sounds a bit like a trick question :-)

    When you build your B lib, at build time you will have to link to A.
    The application will have to link to both.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Apr 2010
    Posts
    98
    Thanks
    19
    Thanked 8 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Plugin to Plugin (lib) dependency

    Yes,you can.Take a look at QtCreator.It has a plugin named Core.dll.And almost any other plugin depends on it.
    It's not the goodbye that hurts,but the flashback that follow.

  4. The following user says thank you to MorrisLiang for this useful post:

    Wali (10th June 2010)

Similar Threads

  1. Replies: 7
    Last Post: 11th April 2013, 10:55
  2. Static vs Plugin
    By treyhaslem in forum Newbie
    Replies: 5
    Last Post: 4th December 2009, 14:16
  3. Replies: 0
    Last Post: 16th September 2009, 02:33
  4. TGA/PCX Plugin
    By ComaWhite in forum Qt Programming
    Replies: 1
    Last Post: 26th July 2008, 10:54
  5. tab & plugin
    By fpujol in forum Qt Programming
    Replies: 5
    Last Post: 23rd April 2007, 13:58

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.