Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. SQLCipher as replacement for QSQLITE
Forum Updated to NodeBB v4.3 + New Features

SQLCipher as replacement for QSQLITE

Scheduled Pinned Locked Moved Unsolved General and Desktop
sqlcipherpluginssqlite3
3 Posts 3 Posters 1.2k Views 1 Watching
  • 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.
  • B Offline
    B Offline
    bpbp241
    wrote on 15 Sept 2023, 01:25 last edited by
    #1

    Hi, I'm trying to following this tutorial to embed SQLCipher to QSQLITE plugin, here are what I've done:

    I download Qt 6.2.2 Source and SQLCipher source, and then I copy sqlite3.c and sqlite3.h and go to qtbase/src/3rdparty/sqlite/ replace those 2 matching files.

    Then I go to qtbase\src\plugins\sqldrivers\sqlite and edit the CMakeLists.txt file in the field DEFINES, I add 2 following defines as stated in the SQLCipher static build step: SQLITE_HAS_CODEC and SQLITE_TEMP_STORE=2, and I run configure then build as normal.

    So, here are my questions, as I do above, does it actually build QSQLITE with SQLCipher supported?

    If not, so what I can do to embed SQLCipher into Qt6 as a static plugin (mine Qt6 built with -static as well), as I read on the SQLCipher static build step, we must include OpenSSL include and library folder?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 15 Sept 2023, 20:11 last edited by SGaist
      #2

      Hi,

      You might want to check the qsqlcipher-qt5 project (they have Qt 6 branches).

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • P Offline
        P Offline
        pourjour
        wrote on 17 Mar 2025, 19:48 last edited by
        #3

        I've fixed it to work with Qt6 especially 6.8.2
        https://github.com/pourjour/qsqlcipher/tree/main

        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