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

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

Scheduled Pinned Locked Moved General and Desktop
63 Posts 3 Posters 28.4k 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.
  • K Offline
    K Offline
    k_arnaud
    wrote on 11 Apr 2014, 10:56 last edited by
    #10

    Hi Clochydd Clochydd
    i downloaded PostgreSQL 32 bit and i tried to follow what you've written. but i can't undersdands the #7, when you say . " Modify PATH:
    set QTSDK_SQLDRIVERS_PATH=C:\Qt\Qt5.2.0\5.2.1\mingw48_32\plugins\sqldrivers
    set QT_SRC_PATH=C:\Qt\Qt5.2.1\5.2.1\Src\qtbase
    set POSTGRES32=C:\Progra~2\PostgreSQL\9.3 (USE Progra~2 FOR Programs(86x)!)" and more of the following

    when you asked me to run the .exe installed in Qt installed dir, did you mean Qt creator ? if not which .exe i should run ? thanks

    1 Reply Last reply
    0
    • C Offline
      C Offline
      clochydd
      wrote on 11 Apr 2014, 11:12 last edited by
      #11

      Hi k_arnaud,
      sorry, I made a mistake: It should read "Modify environment" as the variables have to be added. You should set these entries in the CMD-window and have a look at the correct paths - relating to your system.

      1 Reply Last reply
      0
      • K Offline
        K Offline
        k_arnaud
        wrote on 11 Apr 2014, 12:21 last edited by
        #12

        ok, but when you said run the .exe, do you mean Qt creator ?

        1 Reply Last reply
        0
        • C Offline
          C Offline
          clochydd
          wrote on 11 Apr 2014, 12:30 last edited by
          #13

          I'm sorry but I do not understand. What do you mean with run the .exe?

          1 Reply Last reply
          0
          • K Offline
            K Offline
            k_arnaud
            wrote on 11 Apr 2014, 14:34 last edited by
            #14

            about the #11 i've installed Qt with msvc2010 not mingw32

            1 Reply Last reply
            0
            • C Offline
              C Offline
              clochydd
              wrote on 11 Apr 2014, 14:57 last edited by
              #15

              If you have installed with msvc2010 you cannot work with the 32-Bit postgres. I never worked with msvc2010.

              1 Reply Last reply
              0
              • K Offline
                K Offline
                k_arnaud
                wrote on 11 Apr 2014, 15:37 last edited by
                #16

                ok i'll try with mingw32. thanks

                1 Reply Last reply
                0
                • K Offline
                  K Offline
                  k_arnaud
                  wrote on 12 Apr 2014, 09:12 last edited by
                  #17

                  Hi Clochydd, i've downloaded Qt with mingw32...
                  About the #11 here is the error message i get: "cannot find file psql.pro"

                  1 Reply Last reply
                  0
                  • C Offline
                    C Offline
                    clochydd
                    wrote on 12 Apr 2014, 10:10 last edited by
                    #18

                    Hi k_arnaud, the message says that the project file for building the plugin cannot be found.
                    Did you go to the plugins directory:
                    8. cd QT_SRC_PATH\src\plugins\sqldrivers\psql
                    If so, does the psql.pro exist here?

                    1 Reply Last reply
                    0
                    • K Offline
                      K Offline
                      k_arnaud
                      wrote on 12 Apr 2014, 11:09 last edited by
                      #19

                      after entering mingw32-make debug , in the unreadable message i get, i can see makefile:48: recipe for target 'debug' failed and i get the same with release

                      1 Reply Last reply
                      0
                      • C Offline
                        C Offline
                        clochydd
                        wrote on 12 Apr 2014, 11:19 last edited by
                        #20

                        You should check your pathnames again - it seems that dependencies cannot be found. If you cannot find a fault: What is the unreadable message?

                        1 Reply Last reply
                        0
                        • K Offline
                          K Offline
                          k_arnaud
                          wrote on 12 Apr 2014, 17:05 last edited by
                          #21

                          may be the problem is from here QTSDK_SQLDRIVERS_PATH=C:\Qt\Qt5.2.0\5.2.1\mingw48_32\plugins\sqldrivers i don't know wehter i should replace "QTSDK_SQLDRIVERS_PATH" with anything

                          1 Reply Last reply
                          0
                          • C Offline
                            C Offline
                            clochydd
                            wrote on 12 Apr 2014, 17:48 last edited by
                            #22

                            Hi k_arnaud, with "set QTSDK_SQLDRIVERS_PATH=C:\Qt\Qt5.2.0\5.2.1\mingw48_32\plugins\sqldrivers" you create the environment-variable QTSDK_SQLDRIVERS_PATH, which you need later (#12.). Where appropriate you must modify the path itself - according to your system.
                            These variables are for your comfort - you may use the complete pathname instead.

                            1 Reply Last reply
                            0
                            • K Offline
                              K Offline
                              k_arnaud
                              wrote on 12 Apr 2014, 17:54 last edited by
                              #23

                              that is what i did, i entered QTSDK_SQLDRIVERS_PATH=C:\Qt\Qt5.2.0\5.2.1\mingw48_32\plugins\sqldrivers in the CMD-windows without any change

                              1 Reply Last reply
                              0
                              • C Offline
                                C Offline
                                clochydd
                                wrote on 12 Apr 2014, 18:04 last edited by
                                #24

                                maybe a silly question: did you enter "set QTSDK..." and is that visible in your environment if you type SET in the cmd?

                                1 Reply Last reply
                                0
                                • K Offline
                                  K Offline
                                  k_arnaud
                                  wrote on 12 Apr 2014, 18:14 last edited by
                                  #25

                                  No, i ca'nt see that

                                  1 Reply Last reply
                                  0
                                  • C Offline
                                    C Offline
                                    clochydd
                                    wrote on 12 Apr 2014, 18:25 last edited by
                                    #26

                                    But - do you use SET to bring it to the environment?

                                    1 Reply Last reply
                                    0
                                    • K Offline
                                      K Offline
                                      k_arnaud
                                      wrote on 12 Apr 2014, 18:33 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 12 Apr 2014, 18:42 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 12 Apr 2014, 18:50 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

                                          19/63

                                          12 Apr 2014, 11:09

                                          topic:navigator.unread, 44
                                          • Login

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