Results 1 to 2 of 2

Thread: Qt Plugins - more than one of the same tyoe in one plugin directory

  1. #1
    Join Date
    Oct 2007
    Posts
    5
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Qt Plugins - more than one of the same tyoe in one plugin directory

    Hello,

    let me try to explain my problem. I got an interface class and two classes derived from it that should be used as plugins. Good news: everything compiles and works fine if only one of the libMyClassA.so/libMyClassB.so is in the plugin directory (where i try to load plugins with QPluginLoader).
    But: if i put the second plugin into the plugins directory (so now i got libMyClassA.so and libMyClassB.so) i get strange errors from QPluginLoader while loading.
    Error on loading classA: undefined reference to classB::someFunction
    Error on loading classB: undefined reference to classA::someOtherFunction

    What's strange is that
    a) these functions exist
    b) why do i get an error when loading plugin with classA about something in classB (and vice versa) cause the plugin if the only on in the dir works!!! (even stranger: there are no includes or whatever that tell classA that classB exists!)

    If someone could shed light one this i would be really glad.

    Thx in advance,

    Roland

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt Plugins - more than one of the same tyoe in one plugin directory

    Can we see the implementation of those plugins?

Similar Threads

  1. Qt Plugins Error
    By nathanpackard in forum Qt Programming
    Replies: 1
    Last Post: 17th August 2007, 23:19
  2. QPluginLoader not recognizing a plugin
    By KShots in forum Qt Programming
    Replies: 3
    Last Post: 29th June 2007, 14:13
  3. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 15:21
  4. Qt4 Plugins How-to
    By Chaid in forum Qt Programming
    Replies: 4
    Last Post: 8th July 2006, 08:32
  5. Am I the only one with "make" error ?
    By probine in forum Installation and Deployment
    Replies: 1
    Last Post: 13th February 2006, 12:54

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.