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. same problem but QPSQL DRIVER NOT LOADED
Forum Updated to NodeBB v4.3 + New Features

same problem but QPSQL DRIVER NOT LOADED

Scheduled Pinned Locked Moved Solved General and Desktop
27 Posts 4 Posters 3.6k 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.
  • 1 12bibi12

    Re: MySQL driver detected but not loading on MacOS

    jsulmJ Offline
    jsulmJ Offline
    jsulm
    Lifetime Qt Champion
    wrote on last edited by
    #2

    @12bibi12 Set QT_DEBUG_PLUGINS before starting your app and check the app output then. See https://doc.qt.io/qt-6/debug.html

    https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 1 Reply Last reply
    2
    • jsulmJ jsulm

      @12bibi12 Set QT_DEBUG_PLUGINS before starting your app and check the app output then. See https://doc.qt.io/qt-6/debug.html

      1 Offline
      1 Offline
      12bibi12
      wrote on last edited by
      #3

      @jsulm how do I set it? I saw people in forum using pro file but I am using makelist

      JonBJ 1 Reply Last reply
      0
      • 1 12bibi12

        @jsulm how do I set it? I saw people in forum using pro file but I am using makelist

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

        @12bibi12
        If you read @jsulm's linked thread properly you see it has nothing to do with .pro file or "makelist". It's an environment variable which needs to be set at runtime. If you use Creator it has a Run Environment you can alter.

        1 1 Reply Last reply
        1
        • JonBJ JonB

          @12bibi12
          If you read @jsulm's linked thread properly you see it has nothing to do with .pro file or "makelist". It's an environment variable which needs to be set at runtime. If you use Creator it has a Run Environment you can alter.

          1 Offline
          1 Offline
          12bibi12
          wrote on last edited by
          #5

          @JonB are you talking about this https://doc.qt.io/qt-6/debug.html

          SGaistS 1 Reply Last reply
          0
          • 1 12bibi12

            @JonB are you talking about this https://doc.qt.io/qt-6/debug.html

            SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #6

            @12bibi12 if you are using Qt Creator, go to the Run part of the Project panel and set the environment variable there.

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

            1 1 Reply Last reply
            0
            • SGaistS SGaist

              @12bibi12 if you are using Qt Creator, go to the Run part of the Project panel and set the environment variable there.

              1 Offline
              1 Offline
              12bibi12
              wrote on last edited by
              #7

              @SGaist I get this problem QSqlDatabase: QPSQL driver not loaded
              QSqlDatabase: available drivers: QSQLITE QODBC QPSQL
              "Driver not loaded Driver not loaded"

              JonBJ 1 Reply Last reply
              0
              • 1 12bibi12

                @SGaist I get this problem QSqlDatabase: QPSQL driver not loaded
                QSqlDatabase: available drivers: QSQLITE QODBC QPSQL
                "Driver not loaded Driver not loaded"

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

                @12bibi12
                That is the output we would expect if you do not have QT_DEBUG_PLUGINS=1 environment variable set, which should produce a lot of detailed information. How did you set that environment variable in the run environment for your application, did you follow what we said above?

                1 1 Reply Last reply
                0
                • JonBJ JonB

                  @12bibi12
                  That is the output we would expect if you do not have QT_DEBUG_PLUGINS=1 environment variable set, which should produce a lot of detailed information. How did you set that environment variable in the run environment for your application, did you follow what we said above?

                  1 Offline
                  1 Offline
                  12bibi12
                  wrote on last edited by
                  #9

                  @JonB yes, in run I scrolled down to Environment, then build environment. then I choose add. in Variable I wrote QT_DEBUG_PLUGINS and in value I wrote 1

                  JonBJ 1 Reply Last reply
                  0
                  • 1 12bibi12

                    @JonB yes, in run I scrolled down to Environment, then build environment. then I choose add. in Variable I wrote QT_DEBUG_PLUGINS and in value I wrote 1

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

                    @12bibi12 said in same problem but QPSQL DRIVER NOT LOADED:

                    then build environment

                    We explained it is not a build time variable, it's a run-time variable. That's why it needs to go into the Run environment settings from Creator, not the Build ones.

                    1 1 Reply Last reply
                    0
                    • JonBJ JonB

                      @12bibi12 said in same problem but QPSQL DRIVER NOT LOADED:

                      then build environment

                      We explained it is not a build time variable, it's a run-time variable. That's why it needs to go into the Run environment settings from Creator, not the Build ones.

                      1 Offline
                      1 Offline
                      12bibi12
                      wrote on last edited by
                      #11

                      @JonB I click the project category. in build&run I choose the one for Mac. then I choose Run. in Run settings I can see 8 different subcategories. Deployment, run, environment,custom output parses, debugger settings, performance analyzer settings, valgrind settings, qml profiler settings.

                      I chosed the Environment subcategory, in it I can choose different environment: clean-, system - and build environment. which one should I choose of these?

                      SGaistS 1 Reply Last reply
                      0
                      • 1 12bibi12

                        @JonB I click the project category. in build&run I choose the one for Mac. then I choose Run. in Run settings I can see 8 different subcategories. Deployment, run, environment,custom output parses, debugger settings, performance analyzer settings, valgrind settings, qml profiler settings.

                        I chosed the Environment subcategory, in it I can choose different environment: clean-, system - and build environment. which one should I choose of these?

                        SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #12

                        @12bibi12 as we already wrote several times: Run

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

                        1 1 Reply Last reply
                        0
                        • SGaistS SGaist

                          @12bibi12 as we already wrote several times: Run

                          1 Offline
                          1 Offline
                          12bibi12
                          wrote on last edited by
                          #13

                          @SGaist okay in run there is command line arguments and other different options like working directory. do I put In QT_DEBUG_PLUGINS =1 in command line argument ? sorry but i am a beginner who is trying to work on a school project

                          JonBJ 1 Reply Last reply
                          0
                          • 1 12bibi12

                            @SGaist okay in run there is command line arguments and other different options like working directory. do I put In QT_DEBUG_PLUGINS =1 in command line argument ? sorry but i am a beginner who is trying to work on a school project

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

                            @12bibi12
                            Google: qt creator run environment variables

                            Specifying Run Settings | Qt Creator Manual

                            Qt

                            https://doc.qt.io › qtcreator › creator-run-settings

                            To run with special environment variables set up, select them in the Run Environment section. For more information, see Selecting the Run Environment.

                            https://doc.qt.io/qtcreator/creator-run-settings.html#selecting-the-run-environment

                            1 1 Reply Last reply
                            1
                            • JonBJ JonB

                              @12bibi12
                              Google: qt creator run environment variables

                              Specifying Run Settings | Qt Creator Manual

                              Qt

                              https://doc.qt.io › qtcreator › creator-run-settings

                              To run with special environment variables set up, select them in the Run Environment section. For more information, see Selecting the Run Environment.

                              https://doc.qt.io/qtcreator/creator-run-settings.html#selecting-the-run-environment

                              1 Offline
                              1 Offline
                              12bibi12
                              wrote on last edited by
                              #15

                              @JonB I got this: Detected system locale encoding (US-ASCII, locale "C") is not UTF-8.
                              Qt shall use a UTF-8 locale ("UTF-8") instead. If this causes problems,
                              reconfigure your locale. See the locale(1) manual for more information.
                              qt.core.plugin.factoryloader: checking directory path "/Users/hayssamalsaffar/Qt/6.4.3/macos/plugins/sqldrivers" ...
                              qt.core.plugin.factoryloader: looking at "/Users/hayssamalsaffar/Qt/6.4.3/macos/plugins/sqldrivers/libqsqlite.dylib"
                              qt.core.plugin.loader: Found metadata in lib /Users/hayssamalsaffar/Qt/6.4.3/macos/plugins/sqldrivers/libqsqlite.dylib, metadata=
                              {
                              "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
                              "MetaData": {
                              "Keys": [
                              "QSQLITE"
                              ]
                              },
                              "archlevel": 0,
                              "className": "QSQLiteDriverPlugin",
                              "debug": false,
                              "version": 394240
                              }

                              qt.core.plugin.factoryloader: Got keys from plugin meta data QList("QSQLITE")
                              qt.core.plugin.factoryloader: looking at "/Users/hayssamalsaffar/Qt/6.4.3/macos/plugins/sqldrivers/libqsqlodbc.dylib"
                              qt.core.plugin.loader: Found metadata in lib /Users/hayssamalsaffar/Qt/6.4.3/macos/plugins/sqldrivers/libqsqlodbc.dylib, metadata=
                              {
                              "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
                              "MetaData": {
                              "Keys": [
                              "QODBC"
                              ]
                              },
                              "archlevel": 0,
                              "className": "QODBCDriverPlugin",
                              "debug": false,
                              "version": 394240
                              }

                              qt.core.plugin.factoryloader: Got keys from plugin meta data QList("QODBC")
                              qt.core.plugin.factoryloader: looking at "/Users/hayssamalsaffar/Qt/6.4.3/macos/plugins/sqldrivers/libqsqlpsql.dylib"
                              qt.core.plugin.loader: Found metadata in lib /Users/hayssamalsaffar/Qt/6.4.3/macos/plugins/sqldrivers/libqsqlpsql.dylib, metadata=
                              {
                              "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
                              "MetaData": {
                              "Keys": [
                              "QPSQL"
                              ]
                              },
                              "archlevel": 0,
                              "className": "QPSQLDriverPlugin",
                              "debug": false,
                              "version": 394240
                              }

                              qt.core.plugin.factoryloader: Got keys from plugin meta data QList("QPSQL")
                              qt.core.plugin.factoryloader: checking directory path "/Users/hayssamalsaffar/build-testing-Qt_6_4_3_for_macOS-Debug/testing.app/Contents/MacOS/sqldrivers" ...
                              qt.core.library: "/Users/hayssamalsaffar/Qt/6.4.3/macos/plugins/sqldrivers/libqsqlpsql.dylib" cannot load: Cannot load library /Users/hayssamalsaffar/Qt/6.4.3/macos/plugins/sqldrivers/libqsqlpsql.dylib: (dlopen(/Users/hayssamalsaffar/Qt/6.4.3/macos/plugins/sqldrivers/libqsqlpsql.dylib, 0x0085): Library not loaded: /Applications/Postgres.app/Contents/Versions/14/lib/libpq.5.dylib
                              Referenced from: <24BC2DDB-7D4E-30A3-A970-DD116917D15D> /Users/hayssamalsaffar/Qt/6.4.3/macos/plugins/sqldrivers/libqsqlpsql.dylib
                              Reason: tried: '/Users/hayssamalsaffar/Qt/6.4.3/macos/lib/QtWidgets.framework/Versions/A/libpq.5_debug.dylib' (no such file), '/Users/hayssamalsaffar/Qt/6.4.3/macos/lib/QtWidgets.framework/Versions/A/libpq.5.dylib' (no such file), '/Users/hayssamalsaffar/Qt/6.4.3/macos/lib/QtSql.framework/Versions/A/libpq.5_debug.dylib' (no such file), '/Users/hayssamalsaffar/Qt/6.4.3/macos/lib/QtSql.framework/Versions/A/libpq.5.dylib' (no such file), '/Users/hayssamalsaffar/Qt/6.4.3/macos/lib/QtGui.framework/Versions/A/libpq.5_debug.dylib' (no such file), '/Users/hayssamalsaffar/Qt/6.4.3/macos/lib/QtGui.framework/Versions/A/libpq.5.dylib' (no such file), '/Users/hayssamalsaffar/build-testing-Qt_6_4_3_for_macOS-Debug/libpq.5_debug.dylib' (no such file), '/Users/hayssamalsaffar/build-testing-Qt_6_4_3_for_macOS-Debug/libpq.5.dylib' (no such file), '/Users/hayssamalsaffar/Qt/6.4.3/macos/lib/QtCore.framework/Versions/A/libpq.5_debug.dylib' (no such file), '/Users/hayssamalsaffar/Qt/6.4.3/macos/lib/QtCore.framework/Versions/A/libpq.5.dylib' (no such file), '/Applications/Postgres.app/Contents/Versions/14/lib/libpq.5_debug.dylib' (no such file), '/Applications/Postgres.app/Contents/Versions/14/lib/libpq.5.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Postgres.app/Contents/Versions/14/lib/libpq.5_debug.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Postgres.app/Contents/Versions/14/lib/libpq.5.dylib' (no such file), '/Applications/Postgres.app/Contents/Versions/14/lib/libpq.5_debug.dylib' (no such file), '/Applications/Postgres.app/Contents/Versions/14/lib/libpq.5.dylib' (no such file), '/usr/local/lib/libpq.5_debug.dylib' (no such file), '/usr/local/lib/libpq.5.dylib' (no such file), '/usr/lib/libpq.5_debug.dylib' (no such file, not in dyld cache), '/usr/lib/libpq.5.dylib' (no such file, not in dyld cache))
                              qt.core.plugin.loader: QLibraryPrivate::loadPlugin failed on "/Users/hayssamalsaffar/Qt/6.4.3/macos/plugins/sqldrivers/libqsqlpsql.dylib" : "Cannot load library /Users/hayssamalsaffar/Qt/6.4.3/macos/plugins/sqldrivers/libqsqlpsql.dylib: (dlopen(/Users/hayssamalsaffar/Qt/6.4.3/macos/plugins/sqldrivers/libqsqlpsql.dylib, 0x0085): Library not loaded: /Applications/Postgres.app/Contents/Versions/14/lib/libpq.5.dylib\n Referenced from: <24BC2DDB-7D4E-30A3-A970-DD116917D15D> /Users/hayssamalsaffar/Qt/6.4.3/macos/plugins/sqldrivers/libqsqlpsql.dylib\n Reason: tried: '/Users/hayssamalsaffar/Qt/6.4.3/macos/lib/QtWidgets.framework/Versions/A/libpq.5_debug.dylib' (no such file), '/Users/hayssamalsaffar/Qt/6.4.3/macos/lib/QtWidgets.framework/Versions/A/libpq.5.dylib' (no such file), '/Users/hayssamalsaffar/Qt/6.4.3/macos/lib/QtSql.framework/Versions/A/libpq.5_debug.dylib' (no such file), '/Users/hayssamalsaffar/Qt/6.4.3/macos/lib/QtSql.framework/Versions/A/libpq.5.dylib' (no such file), '/Users/hayssamalsaffar/Qt/6.4.3/macos/lib/QtGui.framework/Versions/A/libpq.5_debug.dylib' (no such file), '/Users/hayssamalsaffar/Qt/6.4.3/macos/lib/QtGui.framework/Versions/A/libpq.5.dylib' (no such file), '/Users/hayssamalsaffar/build-testing-Qt_6_4_3_for_macOS-Debug/libpq.5_debug.dylib' (no such file), '/Users/hayssamalsaffar/build-testing-Qt_6_4_3_for_macOS-Debug/libpq.5.dylib' (no such file), '/Users/hayssamalsaffar/Qt/6.4.3/macos/lib/QtCore.framework/Versions/A/libpq.5_debug.dylib' (no such file), '/Users/hayssamalsaffar/Qt/6.4.3/macos/lib/QtCore.framework/Versions/A/libpq.5.dylib' (no such file), '/Applications/Postgres.app/Contents/Versions/14/lib/libpq.5_debug.dylib' (no such file), '/Applications/Postgres.app/Contents/Versions/14/lib/libpq.5.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Postgres.app/Contents/Versions/14/lib/libpq.5_debug.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Postgres.app/Contents/Versions/14/lib/libpq.5.dylib' (no such file), '/Applications/Postgres.app/Contents/Versions/14/lib/libpq.5_debug.dylib' (no such file), '/Applications/Postgres.app/Contents/Versions/14/lib/libpq.5.dylib' (no such file), '/usr/local/lib/libpq.5_debug.dylib' (no such file), '/usr/local/lib/libpq.5.dylib' (no such file), '/usr/lib/libpq.5_debug.dylib' (no such file, not in dyld cache), '/usr/lib/libpq.5.dylib' (no such file, not in dyld cache))"
                              QSqlDatabase: QPSQL driver not loaded
                              QSqlDatabase: available drivers: QSQLITE QODBC QPSQL
                              "Driver not loaded Driver not loaded"

                              SGaistS 1 Reply Last reply
                              0
                              • 1 12bibi12

                                @JonB I got this: Detected system locale encoding (US-ASCII, locale "C") is not UTF-8.
                                Qt shall use a UTF-8 locale ("UTF-8") instead. If this causes problems,
                                reconfigure your locale. See the locale(1) manual for more information.
                                qt.core.plugin.factoryloader: checking directory path "/Users/hayssamalsaffar/Qt/6.4.3/macos/plugins/sqldrivers" ...
                                qt.core.plugin.factoryloader: looking at "/Users/hayssamalsaffar/Qt/6.4.3/macos/plugins/sqldrivers/libqsqlite.dylib"
                                qt.core.plugin.loader: Found metadata in lib /Users/hayssamalsaffar/Qt/6.4.3/macos/plugins/sqldrivers/libqsqlite.dylib, metadata=
                                {
                                "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
                                "MetaData": {
                                "Keys": [
                                "QSQLITE"
                                ]
                                },
                                "archlevel": 0,
                                "className": "QSQLiteDriverPlugin",
                                "debug": false,
                                "version": 394240
                                }

                                qt.core.plugin.factoryloader: Got keys from plugin meta data QList("QSQLITE")
                                qt.core.plugin.factoryloader: looking at "/Users/hayssamalsaffar/Qt/6.4.3/macos/plugins/sqldrivers/libqsqlodbc.dylib"
                                qt.core.plugin.loader: Found metadata in lib /Users/hayssamalsaffar/Qt/6.4.3/macos/plugins/sqldrivers/libqsqlodbc.dylib, metadata=
                                {
                                "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
                                "MetaData": {
                                "Keys": [
                                "QODBC"
                                ]
                                },
                                "archlevel": 0,
                                "className": "QODBCDriverPlugin",
                                "debug": false,
                                "version": 394240
                                }

                                qt.core.plugin.factoryloader: Got keys from plugin meta data QList("QODBC")
                                qt.core.plugin.factoryloader: looking at "/Users/hayssamalsaffar/Qt/6.4.3/macos/plugins/sqldrivers/libqsqlpsql.dylib"
                                qt.core.plugin.loader: Found metadata in lib /Users/hayssamalsaffar/Qt/6.4.3/macos/plugins/sqldrivers/libqsqlpsql.dylib, metadata=
                                {
                                "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
                                "MetaData": {
                                "Keys": [
                                "QPSQL"
                                ]
                                },
                                "archlevel": 0,
                                "className": "QPSQLDriverPlugin",
                                "debug": false,
                                "version": 394240
                                }

                                qt.core.plugin.factoryloader: Got keys from plugin meta data QList("QPSQL")
                                qt.core.plugin.factoryloader: checking directory path "/Users/hayssamalsaffar/build-testing-Qt_6_4_3_for_macOS-Debug/testing.app/Contents/MacOS/sqldrivers" ...
                                qt.core.library: "/Users/hayssamalsaffar/Qt/6.4.3/macos/plugins/sqldrivers/libqsqlpsql.dylib" cannot load: Cannot load library /Users/hayssamalsaffar/Qt/6.4.3/macos/plugins/sqldrivers/libqsqlpsql.dylib: (dlopen(/Users/hayssamalsaffar/Qt/6.4.3/macos/plugins/sqldrivers/libqsqlpsql.dylib, 0x0085): Library not loaded: /Applications/Postgres.app/Contents/Versions/14/lib/libpq.5.dylib
                                Referenced from: <24BC2DDB-7D4E-30A3-A970-DD116917D15D> /Users/hayssamalsaffar/Qt/6.4.3/macos/plugins/sqldrivers/libqsqlpsql.dylib
                                Reason: tried: '/Users/hayssamalsaffar/Qt/6.4.3/macos/lib/QtWidgets.framework/Versions/A/libpq.5_debug.dylib' (no such file), '/Users/hayssamalsaffar/Qt/6.4.3/macos/lib/QtWidgets.framework/Versions/A/libpq.5.dylib' (no such file), '/Users/hayssamalsaffar/Qt/6.4.3/macos/lib/QtSql.framework/Versions/A/libpq.5_debug.dylib' (no such file), '/Users/hayssamalsaffar/Qt/6.4.3/macos/lib/QtSql.framework/Versions/A/libpq.5.dylib' (no such file), '/Users/hayssamalsaffar/Qt/6.4.3/macos/lib/QtGui.framework/Versions/A/libpq.5_debug.dylib' (no such file), '/Users/hayssamalsaffar/Qt/6.4.3/macos/lib/QtGui.framework/Versions/A/libpq.5.dylib' (no such file), '/Users/hayssamalsaffar/build-testing-Qt_6_4_3_for_macOS-Debug/libpq.5_debug.dylib' (no such file), '/Users/hayssamalsaffar/build-testing-Qt_6_4_3_for_macOS-Debug/libpq.5.dylib' (no such file), '/Users/hayssamalsaffar/Qt/6.4.3/macos/lib/QtCore.framework/Versions/A/libpq.5_debug.dylib' (no such file), '/Users/hayssamalsaffar/Qt/6.4.3/macos/lib/QtCore.framework/Versions/A/libpq.5.dylib' (no such file), '/Applications/Postgres.app/Contents/Versions/14/lib/libpq.5_debug.dylib' (no such file), '/Applications/Postgres.app/Contents/Versions/14/lib/libpq.5.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Postgres.app/Contents/Versions/14/lib/libpq.5_debug.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Postgres.app/Contents/Versions/14/lib/libpq.5.dylib' (no such file), '/Applications/Postgres.app/Contents/Versions/14/lib/libpq.5_debug.dylib' (no such file), '/Applications/Postgres.app/Contents/Versions/14/lib/libpq.5.dylib' (no such file), '/usr/local/lib/libpq.5_debug.dylib' (no such file), '/usr/local/lib/libpq.5.dylib' (no such file), '/usr/lib/libpq.5_debug.dylib' (no such file, not in dyld cache), '/usr/lib/libpq.5.dylib' (no such file, not in dyld cache))
                                qt.core.plugin.loader: QLibraryPrivate::loadPlugin failed on "/Users/hayssamalsaffar/Qt/6.4.3/macos/plugins/sqldrivers/libqsqlpsql.dylib" : "Cannot load library /Users/hayssamalsaffar/Qt/6.4.3/macos/plugins/sqldrivers/libqsqlpsql.dylib: (dlopen(/Users/hayssamalsaffar/Qt/6.4.3/macos/plugins/sqldrivers/libqsqlpsql.dylib, 0x0085): Library not loaded: /Applications/Postgres.app/Contents/Versions/14/lib/libpq.5.dylib\n Referenced from: <24BC2DDB-7D4E-30A3-A970-DD116917D15D> /Users/hayssamalsaffar/Qt/6.4.3/macos/plugins/sqldrivers/libqsqlpsql.dylib\n Reason: tried: '/Users/hayssamalsaffar/Qt/6.4.3/macos/lib/QtWidgets.framework/Versions/A/libpq.5_debug.dylib' (no such file), '/Users/hayssamalsaffar/Qt/6.4.3/macos/lib/QtWidgets.framework/Versions/A/libpq.5.dylib' (no such file), '/Users/hayssamalsaffar/Qt/6.4.3/macos/lib/QtSql.framework/Versions/A/libpq.5_debug.dylib' (no such file), '/Users/hayssamalsaffar/Qt/6.4.3/macos/lib/QtSql.framework/Versions/A/libpq.5.dylib' (no such file), '/Users/hayssamalsaffar/Qt/6.4.3/macos/lib/QtGui.framework/Versions/A/libpq.5_debug.dylib' (no such file), '/Users/hayssamalsaffar/Qt/6.4.3/macos/lib/QtGui.framework/Versions/A/libpq.5.dylib' (no such file), '/Users/hayssamalsaffar/build-testing-Qt_6_4_3_for_macOS-Debug/libpq.5_debug.dylib' (no such file), '/Users/hayssamalsaffar/build-testing-Qt_6_4_3_for_macOS-Debug/libpq.5.dylib' (no such file), '/Users/hayssamalsaffar/Qt/6.4.3/macos/lib/QtCore.framework/Versions/A/libpq.5_debug.dylib' (no such file), '/Users/hayssamalsaffar/Qt/6.4.3/macos/lib/QtCore.framework/Versions/A/libpq.5.dylib' (no such file), '/Applications/Postgres.app/Contents/Versions/14/lib/libpq.5_debug.dylib' (no such file), '/Applications/Postgres.app/Contents/Versions/14/lib/libpq.5.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Postgres.app/Contents/Versions/14/lib/libpq.5_debug.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Postgres.app/Contents/Versions/14/lib/libpq.5.dylib' (no such file), '/Applications/Postgres.app/Contents/Versions/14/lib/libpq.5_debug.dylib' (no such file), '/Applications/Postgres.app/Contents/Versions/14/lib/libpq.5.dylib' (no such file), '/usr/local/lib/libpq.5_debug.dylib' (no such file), '/usr/local/lib/libpq.5.dylib' (no such file), '/usr/lib/libpq.5_debug.dylib' (no such file, not in dyld cache), '/usr/lib/libpq.5.dylib' (no such file, not in dyld cache))"
                                QSqlDatabase: QPSQL driver not loaded
                                QSqlDatabase: available drivers: QSQLITE QODBC QPSQL
                                "Driver not loaded Driver not loaded"

                                SGaistS Offline
                                SGaistS Offline
                                SGaist
                                Lifetime Qt Champion
                                wrote on last edited by
                                #16

                                Do you have PostgreSQL installed in some fashion ?
                                If so, how and where did you install it ?

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

                                1 1 Reply Last reply
                                0
                                • SGaistS SGaist

                                  Do you have PostgreSQL installed in some fashion ?
                                  If so, how and where did you install it ?

                                  1 Offline
                                  1 Offline
                                  12bibi12
                                  wrote on last edited by
                                  #17

                                  @SGaist i have something named postgre https://postgresapp.com. its installed in my applications. /Applications/Postgres.app/Contents

                                  SGaistS 1 Reply Last reply
                                  0
                                  • 1 12bibi12

                                    @SGaist i have something named postgre https://postgresapp.com. its installed in my applications. /Applications/Postgres.app/Contents

                                    SGaistS Offline
                                    SGaistS Offline
                                    SGaist
                                    Lifetime Qt Champion
                                    wrote on last edited by
                                    #18

                                    From the debug log, I would guess that you installed the 15 version of the application.

                                    You have two options here:

                                    • Install version 14
                                    • Use install_name_tool to update the /Applications/Postgres.app/Contents/Versions/14/lib/libpq.5.dylib path to use the library from your installed Postgres.app

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

                                    1 1 Reply Last reply
                                    0
                                    • SGaistS SGaist

                                      From the debug log, I would guess that you installed the 15 version of the application.

                                      You have two options here:

                                      • Install version 14
                                      • Use install_name_tool to update the /Applications/Postgres.app/Contents/Versions/14/lib/libpq.5.dylib path to use the library from your installed Postgres.app
                                      1 Offline
                                      1 Offline
                                      12bibi12
                                      wrote on last edited by
                                      #19

                                      @SGaist i dont know exactly how to use install_name_tool.

                                      do I write in my command install_name_tool with the path? I have never used it

                                      1 Reply Last reply
                                      0
                                      • 1 Offline
                                        1 Offline
                                        12bibi12
                                        wrote on last edited by
                                        #20

                                        @SGaist I tried instead installing version 14 but I got same error

                                        SGaistS 1 Reply Last reply
                                        0
                                        • 1 12bibi12

                                          @SGaist I tried instead installing version 14 but I got same error

                                          SGaistS Offline
                                          SGaistS Offline
                                          SGaist
                                          Lifetime Qt Champion
                                          wrote on last edited by
                                          #21

                                          Did you check that ˋ/Applications/Postgres.app/Contents/Versions/14/lib/libpq.5.dylibˋ exists ?

                                          As for ˋinstall_name_tool`, please read its help. It's really not complicated to replace a path with another one.

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

                                          1 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