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. Compile error QSQLCIPHER driver plugin for Qt
QtWS25 Last Chance

Compile error QSQLCIPHER driver plugin for Qt

Scheduled Pinned Locked Moved General and Desktop
sqlcipherqsqlite
19 Posts 2 Posters 8.9k 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.
  • 4 4j1th
    26 Jul 2015, 10:46

    @mrjj Thank you,

    bugreports.qt.io

    do you think this bug report has something to do with this error

    M Offline
    M Offline
    mrjj
    Lifetime Qt Champion
    wrote on 26 Jul 2015, 10:54 last edited by
    #7

    @4j1th
    Hi
    Very hard to say from the txt file
    For some reason it wont let me go back and view the actual bug report (33795)

    This evening Im going to try the step-by-step in a virtual machine to see if im more lucky or get same error.

    4 1 Reply Last reply 26 Jul 2015, 10:58
    0
    • M mrjj
      26 Jul 2015, 10:54

      @4j1th
      Hi
      Very hard to say from the txt file
      For some reason it wont let me go back and view the actual bug report (33795)

      This evening Im going to try the step-by-step in a virtual machine to see if im more lucky or get same error.

      4 Offline
      4 Offline
      4j1th
      wrote on 26 Jul 2015, 10:58 last edited by 4j1th
      #8

      @mrjj Thank you very very much, please let me know the result

      Pardon my English
      Thank you.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mrjj
        Lifetime Qt Champion
        wrote on 26 Jul 2015, 14:20 last edited by
        #9

        Hi
        Got same result as you in step 6.
        I used 5.4.0 as in tut.

        After qmake which says nothing no moc file is
        generated and mingw32-make fails and no qsqlcipher.dll is produced.

        I then tried to create a moc by "moc.exe smain.cpp > smain.moc" and then copy that around but
        either i did not hit the right directory or its not ok to create it like that. Still same error.

        One should think that smain.cpp that do #include "smain.moc" should find it in same folder but
        maybe I should have tried with full path to the file.

        I have a feeling it is something really simple that will make us go facepalm once discovered.

        4 1 Reply Last reply 26 Jul 2015, 14:53
        1
        • M mrjj
          26 Jul 2015, 14:20

          Hi
          Got same result as you in step 6.
          I used 5.4.0 as in tut.

          After qmake which says nothing no moc file is
          generated and mingw32-make fails and no qsqlcipher.dll is produced.

          I then tried to create a moc by "moc.exe smain.cpp > smain.moc" and then copy that around but
          either i did not hit the right directory or its not ok to create it like that. Still same error.

          One should think that smain.cpp that do #include "smain.moc" should find it in same folder but
          maybe I should have tried with full path to the file.

          I have a feeling it is something really simple that will make us go facepalm once discovered.

          4 Offline
          4 Offline
          4j1th
          wrote on 26 Jul 2015, 14:53 last edited by
          #10

          @mrjj Thank you for your help and time,

          what do you think, is it a bug in the qmake ?

          Pardon my English
          Thank you.

          M 1 Reply Last reply 26 Jul 2015, 15:06
          0
          • 4 4j1th
            26 Jul 2015, 14:53

            @mrjj Thank you for your help and time,

            what do you think, is it a bug in the qmake ?

            M Offline
            M Offline
            mrjj
            Lifetime Qt Champion
            wrote on 26 Jul 2015, 15:06 last edited by
            #11

            @4j1th
            Np, i can see the benefit of encrypted sqlite.

            Not sure it is a bug in qmake.
            More likely something with the PRI/PRO file but it does seem like qmake just sort of bails out.

            Im going now for a B.day but when i get home I going to try one more time. If same result it must be
            an build error.

            1 Reply Last reply
            1
            • M Offline
              M Offline
              mrjj
              Lifetime Qt Champion
              wrote on 26 Jul 2015, 21:08 last edited by
              #12

              Ok, did it once more after some beers and it build ?!
              No errors.

              I have shared the DLLs (debug/release) and the A files here:
              https://www.dropbox.com/s/k1jm5qv7mvdyyzn/sqldrivers.zip?dl=0

              Cheers :)

              4 1 Reply Last reply 27 Jul 2015, 01:28
              0
              • M mrjj
                26 Jul 2015, 21:08

                Ok, did it once more after some beers and it build ?!
                No errors.

                I have shared the DLLs (debug/release) and the A files here:
                https://www.dropbox.com/s/k1jm5qv7mvdyyzn/sqldrivers.zip?dl=0

                Cheers :)

                4 Offline
                4 Offline
                4j1th
                wrote on 27 Jul 2015, 01:28 last edited by
                #13

                @mrjj congrats, well done

                did you compile a project with this lib ?

                Pardon my English
                Thank you.

                M 1 Reply Last reply 27 Jul 2015, 06:36
                0
                • 4 4j1th
                  27 Jul 2015, 01:28

                  @mrjj congrats, well done

                  did you compile a project with this lib ?

                  M Offline
                  M Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on 27 Jul 2015, 06:36 last edited by
                  #14

                  @4j1th

                  No I did not do the last part of the tut.
                  Maybe tonight.

                  4 1 Reply Last reply 29 Jul 2015, 02:11
                  0
                  • M mrjj
                    27 Jul 2015, 06:36

                    @4j1th

                    No I did not do the last part of the tut.
                    Maybe tonight.

                    4 Offline
                    4 Offline
                    4j1th
                    wrote on 29 Jul 2015, 02:11 last edited by
                    #15

                    @mrjj copied the dlls to plugin/sqldriver dir and build a test project but got an error

                    ("QSQLITE", "QMYSQL", "QMYSQL3", "QODBC", "QODBC3", "QPSQL", "QPSQL7")
                    QSqlDatabase: QSQLCIPHER driver not loaded
                    QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QODBC QODBC3 QPSQL QPSQL
                    7
                    QSqlQuery::exec: database not open
                    QSqlQuery::exec: database not open
                    QSqlQuery::exec: database not open
                    Press <RETURN> to close this window...
                    

                    Pardon my English
                    Thank you.

                    M 1 Reply Last reply 29 Jul 2015, 06:27
                    0
                    • 4 4j1th
                      29 Jul 2015, 02:11

                      @mrjj copied the dlls to plugin/sqldriver dir and build a test project but got an error

                      ("QSQLITE", "QMYSQL", "QMYSQL3", "QODBC", "QODBC3", "QPSQL", "QPSQL7")
                      QSqlDatabase: QSQLCIPHER driver not loaded
                      QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QODBC QODBC3 QPSQL QPSQL
                      7
                      QSqlQuery::exec: database not open
                      QSqlQuery::exec: database not open
                      QSqlQuery::exec: database not open
                      Press <RETURN> to close this window...
                      
                      M Offline
                      M Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on 29 Jul 2015, 06:27 last edited by
                      #16

                      @4j1th
                      Ok so its not listed at all :(
                      I will try it too and let you know.

                      M 1 Reply Last reply 29 Jul 2015, 19:22
                      0
                      • M mrjj
                        29 Jul 2015, 06:27

                        @4j1th
                        Ok so its not listed at all :(
                        I will try it too and let you know.

                        M Offline
                        M Offline
                        mrjj
                        Lifetime Qt Champion
                        wrote on 29 Jul 2015, 19:22 last edited by
                        #17

                        Hi, I did the rest of the tut and
                        it did produce an encrypted db.

                        but, then i tried to use the test .pro and main.cpp i got same
                        error "driver not loaded"

                        I tried to find a fix but seems not to see the new dlls.
                        Not even if you make a Deploy folder with all the needed files.

                        I think its just a path problem like here
                        http://stackoverflow.com/questions/14362881/qt-mysql-cant-load-plugin-driver-qlibrary-qpluginloader-successfuly-loaded-qs

                        But I had time to try load the DLL which works. Did not try the add path etc.

                        4 1 Reply Last reply 30 Jul 2015, 10:32
                        0
                        • M mrjj
                          29 Jul 2015, 19:22

                          Hi, I did the rest of the tut and
                          it did produce an encrypted db.

                          but, then i tried to use the test .pro and main.cpp i got same
                          error "driver not loaded"

                          I tried to find a fix but seems not to see the new dlls.
                          Not even if you make a Deploy folder with all the needed files.

                          I think its just a path problem like here
                          http://stackoverflow.com/questions/14362881/qt-mysql-cant-load-plugin-driver-qlibrary-qpluginloader-successfuly-loaded-qs

                          But I had time to try load the DLL which works. Did not try the add path etc.

                          4 Offline
                          4 Offline
                          4j1th
                          wrote on 30 Jul 2015, 10:32 last edited by
                          #18

                          @mrjj I tried the solution, it doesn't work.

                          And I tried the sqlite default driver qt provided it's works perfectly.

                          Pardon my English
                          Thank you.

                          M 1 Reply Last reply 30 Jul 2015, 10:42
                          0
                          • 4 4j1th
                            30 Jul 2015, 10:32

                            @mrjj I tried the solution, it doesn't work.

                            And I tried the sqlite default driver qt provided it's works perfectly.

                            M Offline
                            M Offline
                            mrjj
                            Lifetime Qt Champion
                            wrote on 30 Jul 2015, 10:42 last edited by
                            #19

                            @4j1th
                            Ok, very strange.
                            Im out of ideas why it will not load as driver.

                            The .a +.exe could produce a encrypted db and the dll can be loaded as DLL but
                            for some reason, it wont load as a sql driver.

                            So close and yet nothing :(

                            1 Reply Last reply
                            0

                            16/19

                            29 Jul 2015, 06:27

                            • Login

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