Results 1 to 4 of 4

Thread: Consequence of 'config += QT_PLUGIN '

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

    Default Consequence of 'config += QT_PLUGIN '

    We have a QT4.4-based application in which we develop our own plugins. Following Qt's instructions, we have added:

    config += plugin

    To our plugin libraries. This has worked fine.

    However, we are transitioning to a non qmake-based system, and consequently I need to better understand the build semantics of plugins.

    As far as I can tell, the only compile-time effect of 'config += plugin' is to define QT_PLUGIN (as in, 'g++ -DQT_PLUGIN ...'). Also, executables using plugins are not linked to those plugins.

    Have I correctly understood the mechanics of 'config += plugin' ? Are there other compile-time or link-time effects that I should know about?

    Thanks,
    --Steve

  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: Consequence of 'config += QT_PLUGIN '

    According to the "qt.prf" features file:

    plugin { #Qt plugins
    static:DEFINES += QT_STATICPLUGIN
    DEFINES += QT_PLUGIN
    }

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

    Default Re: Consequence of 'config += QT_PLUGIN '

    Thanks a lot!

  4. #4
    Join Date
    May 2008
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Consequence of 'config += QT_PLUGIN '

    Hi, I have also been trying to construct a non-qmake makefile for a Qt plugin by adding -DQT_PLUGIN. But so far it does not seem to work either.

    I am not an expert on Qt and this qt.prf does not offer too much clue for me. Steve, would you mind explaining in more details?

    Thanks in advance!

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.