Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [Solved] How to build sql driver plugin with Qt SDK

[Solved] How to build sql driver plugin with Qt SDK

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 1 Posters 5.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AlekseyK
    wrote on 26 Jul 2011, 17:44 last edited by
    #1

    How to build sql driver plugin with Qt SDK, is it possible? Problem described "here":https://bugreports.qt.nokia.com/browse/QTBUG-9955?focusedCommentId=159899&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-159899 actually.

    Seems like it is impossible to build sql plugin without manual file copying recent time. qsql_sqlite.cpp refers to <QtSql/private/qsqlcachedresult_p.h>, however file located in \QtSDK\QtSources\4.7.3\src\sql\kernel\ so compiler can't find it. I.e. header files located in wrong place in Qt SDK, that is why it is impossible to build plugin automatically: need to copy file manually but this is inconvenient. Is somebody had such issue, how to solve it? Is it necessary to build own Qt version or what?

    Also sql plugins build documentation is outdated.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      AlekseyK
      wrote on 26 Jul 2011, 18:19 last edited by
      #2

      Hmm, headers is in right place in 4.8...

      1 Reply Last reply
      0
      • A Offline
        A Offline
        AlekseyK
        wrote on 30 Jul 2011, 17:25 last edited by
        #3

        Solved, write to me if interesting.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          AlekseyK
          wrote on 16 Sept 2011, 13:17 last edited by
          #4

          Need to install 4.8 beta in SDK (experimental part), including sources. I thought that I need many sources from Qt, but need only 2 source files: qsql_sqlite.cpp/h and qsqlcachedresult_p.h (not code stub, but with class definition) and 3 .pri files (however you may remove them at all as the do not hold any useful functionality) and change paths in them to yours. I had taken all of that from 4.8 and simply copied to my project (no need to build driver utilizing whole source tree).

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved