Results 1 to 9 of 9

Thread: plugin vs driver

  1. #1
    Join Date
    Jan 2006
    Location
    Ukraine, L'viv
    Posts
    57
    Thanks
    3
    Thanked 4 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default plugin vs driver

    Please explain me the difference between the -qt-sql-mysql and -plugin-sql-mysql for example.

    Oops... Found in FAQ:
    Pass option "-qt-sql-mysql" to configure – this will compile MySQL support directly into Qt.

    Pass option "-plugin-sql-mysql" to configure – this will compile MySQL support as plugin.

    But. I've build Qt staticaly with -qt-sql-mysql. Then compiled my app that works with MySQL, but it said it cannot find libmysql.dll. But it has to be "compiled directly into Qt", hasn't it?
    Last edited by L.Marvell; 24th July 2006 at 14:16. Reason: Found explanation in FAQ

  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: plugin vs driver

    Quote Originally Posted by L.Marvell
    But it has to be "compiled directly into Qt", hasn't it?
    No, libmysql.dll is a client library bundled with MySQL, it won't be compiled statically into the driver, at least not unless you have a static version of libmysql client library installed on your system. It is not a part of the plugin.

  3. #3
    Join Date
    Jan 2006
    Location
    Ukraine, L'viv
    Posts
    57
    Thanks
    3
    Thanked 4 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: plugin vs driver

    Quote Originally Posted by wysota
    No, libmysql.dll is a client library bundled with MySQL, it won't be compiled statically into the driver, at least not unless you have a static version of libmysql client library installed on your system. It is not a part of the plugin.
    So all the difference is if I compile plugin (-plugin-sql-mysql) I need to share it with my app, if I compile driver (-qt-sql-mysql) I need to share libmysql.dll with my app?

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: plugin vs driver

    Quote Originally Posted by L.Marvell
    So all the difference is if I compile plugin (-plugin-sql-mysql) I need to share it with my app, if I compile driver (-qt-sql-mysql) I need to share libmysql.dll with my app?
    No, with -plugin-sql-mysql you will have to deliver the plugin and libmysql.dll, and with -qt-sql-mysql only libmysql.dll (because the plugin will be "hidden" inside Qt).

  5. The following user says thank you to jacek for this useful post:

    L.Marvell (25th July 2006)

  6. #5
    Join Date
    Jan 2006
    Location
    Ukraine, L'viv
    Posts
    57
    Thanks
    3
    Thanked 4 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: plugin vs driver

    And one more question. I've build qt also with -qt-sql-pgsql option and now my appliaction need libpq.dll to start, but I it doesn't use it, only libmysql.dll. How can I get rid of this dependency?
    Last edited by L.Marvell; 25th July 2006 at 09:57.

  7. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: plugin vs driver

    Quote Originally Posted by L.Marvell
    How can I get rid of this dependency?
    Don't use -qt-sql-pgsql.

  8. #7
    Join Date
    Jan 2006
    Location
    Ukraine, L'viv
    Posts
    57
    Thanks
    3
    Thanked 4 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: plugin vs driver

    Quote Originally Posted by jacek
    Don't use -qt-sql-pgsql.
    Does it mean I need to rebuild Qt again but without this option? Can I build only app without this dependency?

  9. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: plugin vs driver

    Quote Originally Posted by L.Marvell
    Does it mean I need to rebuild Qt again but without this option? Can I build only app without this dependency?
    Yes, you will have to rebuilt Qt, because Qt depends on that DLL, not your application. If you were using plugins you wouldn't have to (in Qt4 you can use "static" plugins that you can compile into your application).

  10. #9
    Join Date
    Jan 2006
    Location
    Ukraine, L'viv
    Posts
    57
    Thanks
    3
    Thanked 4 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: plugin vs driver

    Greate thanks for explanations!

Similar Threads

  1. Testing a custom Plugin
    By maluta in forum Qt Programming
    Replies: 5
    Last Post: 31st October 2006, 15:09
  2. Plugin woes
    By stevey in forum Qt Programming
    Replies: 8
    Last Post: 24th July 2006, 01:30
  3. creating table plugin
    By mgurbuz in forum Qt Programming
    Replies: 3
    Last Post: 28th April 2006, 13:50
  4. Application plugin on windows
    By Eyee in forum Qt Programming
    Replies: 2
    Last Post: 22nd March 2006, 17:36
  5. Managing widget plugin in Qt Designer
    By yellowmat in forum Newbie
    Replies: 8
    Last Post: 31st January 2006, 09: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.