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. [SOLVED]can't find the "src" directory to build my QPSQL driver
Forum Updated to NodeBB v4.3 + New Features

[SOLVED]can't find the "src" directory to build my QPSQL driver

Scheduled Pinned Locked Moved General and Desktop
63 Posts 3 Posters 30.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.
  • K Offline
    K Offline
    k_arnaud
    wrote on last edited by
    #27

    i tried again, and i can see the three variables; QTSDK_SQLDRIVERS_PATH, QT_SRC_PATH and
    POSTGRES32

    1 Reply Last reply
    0
    • C Offline
      C Offline
      clochydd
      wrote on last edited by
      #28

      are you able to build the plugin now? You should not see the "recipe" message again.

      1 Reply Last reply
      0
      • K Offline
        K Offline
        k_arnaud
        wrote on last edited by
        #29

        sorry i can't. "qmake is not a command line", that is the error message when i try to buld with CMD-window. But when i try with the the "qt-cmd" i get the same error message "recipe..."

        1 Reply Last reply
        0
        • C Offline
          C Offline
          clochydd
          wrote on last edited by
          #30

          must be a wrong path, too:
          your_qt_path is something like C:\Qt\Qt5.2.1\5.2.1 and
          qmake.exe is located in your_qt_path\mingw48_32\bin
          so you must start qmake by:
          your_qt_path\mingw48_32\bin\qmake “INCLUDEPATH+=%POSTGRES32%\include” “LIBS+=%POSTGRES32%\lib\libpq.lib” psql.pro

          when this task is done, you will continue with:
          mingw32-make debug
          mingw32-make release

          1 Reply Last reply
          0
          • K Offline
            K Offline
            k_arnaud
            wrote on last edited by
            #31

            here is the error message when i did what you said : cannot find file psql.pro.
            that file is not in the qmake.exe directory so when i enter cd C:\Qt\Qt5.2.1\5.2.1\mingw48_32\bin\qmake “INCLUDEPATH+=%POSTGRES32%\include” “LIBS+=%POSTGRES32%\lib\libpq.lib” psql.pro, i get an error message

            1 Reply Last reply
            0
            • C Offline
              C Offline
              clochydd
              wrote on last edited by
              #32

              the psql.pro is in the sources, in the plugin\sqldrivers directory (see above cd QT_SRC_PATH\src\plugins\sqldrivers\psql)
              you should start your qmake from THIS directory, not from the ...bin dir!

              1 Reply Last reply
              0
              • K Offline
                K Offline
                k_arnaud
                wrote on last edited by
                #33

                When i try to start qmake there, i get an error message "qmake is not a command line..."

                1 Reply Last reply
                0
                • C Offline
                  C Offline
                  clochydd
                  wrote on last edited by
                  #34

                  Do you call qmake with the complete path:
                  C:\Qt\Qt5.2.1\5.2.1\mingw48_32\bin\qmake
                  remember to use the path for your machine - maybe you have to modify slightly

                  1 Reply Last reply
                  0
                  • K Offline
                    K Offline
                    k_arnaud
                    wrote on last edited by
                    #35

                    always the same error "recipe for target 'debug' failed"

                    1 Reply Last reply
                    0
                    • C Offline
                      C Offline
                      clochydd
                      wrote on last edited by
                      #36

                      You must be sure, that all pathnames are correct and the commands are called from the right directories.

                      1 Reply Last reply
                      0
                      • K Offline
                        K Offline
                        k_arnaud
                        wrote on last edited by
                        #37

                        about "Program~2", for my system it is Program Files (x86). what shall i use ?

                        1 Reply Last reply
                        0
                        • C Offline
                          C Offline
                          clochydd
                          wrote on last edited by
                          #38

                          This follows the 8.3 format, a relict from DOS-times. I think you should use the same name but you can test it in the command window with cd.

                          1 Reply Last reply
                          0
                          • K Offline
                            K Offline
                            k_arnaud
                            wrote on last edited by
                            #39

                            both work, so i will use Program Files (x86)

                            1 Reply Last reply
                            0
                            • C Offline
                              C Offline
                              clochydd
                              wrote on last edited by
                              #40

                              Hi k_arnaud, you only need the 8.3 format if you have problems with building the plugins - as Windows may refuse to work with spaces in the pathnames.
                              Did you succeed in building your plugin now?

                              1 Reply Last reply
                              0
                              • K Offline
                                K Offline
                                k_arnaud
                                wrote on last edited by
                                #41

                                Hi Clochydd, sorry i can't build the plugin. idon't know where the issue is from, thanks for the time you've spent on this thread

                                1 Reply Last reply
                                0
                                • C Offline
                                  C Offline
                                  clochydd
                                  wrote on last edited by
                                  #42

                                  You are welcome! Shall we start another analysis of your problem?
                                  Will you post the the last error messages?

                                  1 Reply Last reply
                                  0
                                  • K Offline
                                    K Offline
                                    k_arnaud
                                    wrote on last edited by
                                    #43

                                    Hi Clochydd,
                                    always the same error message "recipe....failed",
                                    maybe i forgot something... but there's no configuration when you instal Qt

                                    1 Reply Last reply
                                    0
                                    • C Offline
                                      C Offline
                                      clochydd
                                      wrote on last edited by
                                      #44

                                      Hi k_arnaud, I will try to find more possible reasons for the message and come back with some new support.

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

                                        Currently, avoid spaces in path to libraries when developing. Or use the 8.3 names (you can check which one is correct using sir /x in a cmd prompt). To be on the safe side, reinstall PostgreSQL in a path without spaces. That will eliminate one possible source of problems. If the build fails again, then post the error log, it might give the clue to what you are missing.

                                        Also, ensure that you have a 32bit version of PostgreSQL installed since you are using the 32bit MinGW package.

                                        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
                                        • K Offline
                                          K Offline
                                          k_arnaud
                                          wrote on last edited by
                                          #46

                                          Hi SGaist,
                                          i have a PostgreSQL 32bit installed. I try to instal an ohter, but the installer wizard doesn't allow me to choose my own directory, it updates the older which is in C:\Program Files (x86)\PostgreSQL... about to the error log, i don't know to post it. i think this site doesn't allow uploaded picture from computer ("i've printed my screen which shows the cmd with the error log")

                                          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