Results 1 to 7 of 7

Thread: Nightmares with plugins

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Nightmares with plugins

    Do you have more than one plugin in the "libplugins" lib? I don't think this is possible... AFAIR you can have only one plugin export macro per plugin.

  2. #2
    Join Date
    Feb 2006
    Location
    USA
    Posts
    142
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android
    Thanks
    24
    Thanked 2 Times in 2 Posts

    Default Re: Nightmares with plugins

    Quote Originally Posted by wysota View Post
    Do you have more than one plugin in the "libplugins" lib? I don't think this is possible... AFAIR you can have only one plugin export macro per plugin.
    I only have one "libplugins" plugin. This is my first shot at plugins (at least under Qt... I've used ld and libtool ld before), and I had a bit of a misunderstanding that I have not yet corrected. It will end up being libWhiteboard.

    The name of the source file(s) are pluginWhiteboard.[h/cpp]

    And also, because I forgot to post it, the contents of the .pro file for the plugin:
    Qt Code:
    1. # Target is a library: whiteboard
    2.  
    3. QT = network core
    4. INCLUDEPATH += ../src
    5. TARGET = whiteboard
    6. DESTDIR = ../bin/plugins
    7. CONFIG += release \
    8. warn_on \
    9. qt \
    10. plugin
    11. TEMPLATE = lib
    12. HEADERS += pluginWhiteboard.h
    13. SOURCES += pluginWhiteboard.cpp
    To copy to clipboard, switch view to plain text mode 
    Life without passion is death in disguise

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

    Default Re: Nightmares with plugins

    I think the name you put into the Q_EXPORT_PLUGIN2 macro is wrong.

Similar Threads

  1. Qt plugins - how to do a libtool-style autoload
    By KShots in forum Qt Programming
    Replies: 2
    Last Post: 7th February 2007, 13:40
  2. Plugins support Help!
    By Chaid in forum Qt Programming
    Replies: 5
    Last Post: 4th July 2006, 16:07
  3. Arthur Plugins demos and designer
    By antonio.r.tome in forum Installation and Deployment
    Replies: 4
    Last Post: 21st March 2006, 15:01
  4. Plugins that use *.ui based classes
    By blackliteon in forum Qt Programming
    Replies: 2
    Last Post: 6th February 2006, 10:33
  5. Plugins as small application
    By blackliteon in forum Qt Programming
    Replies: 4
    Last Post: 12th January 2006, 10:39

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
  •  
Qt is a trademark of The Qt Company.