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. plugin sql sqlite not found error

plugin sql sqlite not found error

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 2 Posters 2.0k 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.
  • S Offline
    S Offline
    SherifOmran
    wrote on last edited by
    #1

    hi guys,

    I get the following error. could you please let me know what is the problem?

    undefined symbols for architecture x86_64:
    "qt_static_plugin_qsqlite()", referenced from:

    i installed qt from source with following syntax
    ./configure -static -nomake examples -plugin-sql-sqlite
    make
    make install

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Did you update your project to handle static plugins like shown here ?

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

      S 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Did you update your project to handle static plugins like shown here ?

        S Offline
        S Offline
        SherifOmran
        wrote on last edited by
        #3

        @SGaist yes, the project was working with qt 4.8 using static.
        When i ported it to 5.9.1. first i installed qt from the GUI and then i installed the QT from source. But it keep not detecting the qt sql plugin.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Why build it a static plugin plugin rather than builtin the library ?

          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
          • S Offline
            S Offline
            SherifOmran
            wrote on last edited by
            #5

            when i run macdeployqt, i get a message that sqlite lib is not approporiate for appstore and thus i decided to build it static and try. Now, i removed the full installation and i hope to reinstall it again as static. It seems there is a problem in the configure file, i dont know. May be if i use brew i can edit the receipt to include the static tags and run it. do you ve an idea?

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              AFAIK, that warning is not related to the fact that you are using a plugin.

              I'd rather ensure that there's nothing trying to open a database on an arbitrary path.

              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
              • S Offline
                S Offline
                SherifOmran
                wrote on last edited by
                #7

                The problem occur with Qt5.9.1 when i call

                Q_IMPORT_PLUGIN(qsqlite); //for static sqlite plugin use in MAC
                

                do we need to do it in Qt 5.9 ?

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Did you add the matching QTPLUGIN line in your .pro file ?

                  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
                  • S Offline
                    S Offline
                    SherifOmran
                    wrote on last edited by SherifOmran
                    #9

                    yes, it is in the PRO file.
                    I think Q_IMPORT is no longer needed because it is added by the QMAKE automatically in 5.9.1. I see the plugins in the make file.

                    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