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. How to link SQLite through the .pro file?
Forum Updated to NodeBB v4.3 + New Features

How to link SQLite through the .pro file?

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
3 Posts 2 Posters 346 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.
  • SaltineChipsS Offline
    SaltineChipsS Offline
    SaltineChips
    wrote on last edited by
    #1

    I've been trying to link SQLite as a replacement for Berkeley DB for awhile now, still running into walls and would appreciate some assistance if possible.

    JonBJ 1 Reply Last reply
    0
    • SaltineChipsS SaltineChips

      I've been trying to link SQLite as a replacement for Berkeley DB for awhile now, still running into walls and would appreciate some assistance if possible.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @SaltineChips said in How to link SQLite through the .pro file?:

      How to link SQLite through the .pro file?
      I've been trying to link SQLite as a replacement for Berkeley DB for awhile now

      Hello and welcome.

      There should be no "linking" involved. Obtain the SQLite plugin-driver for your platform (may have to build it, may be able to get it already-built hoefully), specify it through QSqlDatabase::addDatabase("QSQLITE");, and off you go. Qt program loads the plugin-driver dynamically when called for at runtime, nothing to put into .pro file/link against.

      SaltineChipsS 1 Reply Last reply
      1
      • JonBJ JonB

        @SaltineChips said in How to link SQLite through the .pro file?:

        How to link SQLite through the .pro file?
        I've been trying to link SQLite as a replacement for Berkeley DB for awhile now

        Hello and welcome.

        There should be no "linking" involved. Obtain the SQLite plugin-driver for your platform (may have to build it, may be able to get it already-built hoefully), specify it through QSqlDatabase::addDatabase("QSQLITE");, and off you go. Qt program loads the plugin-driver dynamically when called for at runtime, nothing to put into .pro file/link against.

        SaltineChipsS Offline
        SaltineChipsS Offline
        SaltineChips
        wrote on last edited by
        #3

        @JonB said in How to link SQLite through the .pro file?:

        @SaltineChips said in How to link SQLite through the .pro file?:

        How to link SQLite through the .pro file?
        I've been trying to link SQLite as a replacement for Berkeley DB for awhile now

        Hello and welcome.

        There should be no "linking" involved. Obtain the SQLite plugin-driver for your platform (may have to build it, may be able to get it already-built hoefully), specify it through QSqlDatabase::addDatabase("QSQLITE");, and off you go. Qt program loads the plugin-driver dynamically when called for at runtime, nothing to put into .pro file/link against.

        Unfortunately, I'm building static, so everything has to be linked through the .pro file during compilation.

        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