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. Qmake problems
Forum Updated to NodeBB v4.3 + New Features

Qmake problems

Scheduled Pinned Locked Moved General and Desktop
11 Posts 4 Posters 6.3k 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.
  • A Offline
    A Offline
    AFI4ever
    wrote on last edited by
    #1

    Hello!

    I have a problem. Need to build a postgreSQL driver for Windows XP.
    Help says:
    cd %QTDIR%\src\plugins\sqldrivers\psql
    qmake -o Makefile "INCLUDEPATH+=C:\psql\include" "LIBS+=C:\psql\lib" psql.pro
    make

    but when I write it in command line it says that qmake is not a command. What can be wrong with it?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      shahid.pk
      wrote on last edited by
      #2

      I guess you have not set the correct path and environment variable for Qt.

      Love to learn....

      1 Reply Last reply
      0
      • A Offline
        A Offline
        AFI4ever
        wrote on last edited by
        #3

        how do I have to set them?
        My QT is installed in D:\QtSdk.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          AcerExtensa
          wrote on last edited by
          #4

          on cmd line:
          @set PATH=D:\QtSdk\bin;%PATH%@

          God is Real unless explicitly declared as Integer.

          1 Reply Last reply
          0
          • A Offline
            A Offline
            AFI4ever
            wrote on last edited by
            #5

            I have done it, but it did not help...(
            any other ideas?
            or can anyone write it in the right order in cmd and then copy-paste it here? many thanks.

            1 Reply Last reply
            0
            • A Offline
              A Offline
              AcerExtensa
              wrote on last edited by
              #6

              it is in the right order. Are you sure Qt is installed in D:\QtSdk? is where bin folder with qmake.exe? If not, find where the qmake.exe is, and replace D:\QtSdk\bin from example above....

              God is Real unless explicitly declared as Integer.

              1 Reply Last reply
              0
              • A Offline
                A Offline
                AFI4ever
                wrote on last edited by
                #7

                thanks. done that. but now it says "cannot find file psql.pro" although it is in D:\QtSdk\QtSources\4.7.4\src\plugins\sqldrivers\psql. how do i have to set %QTDIR%?

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  shahid.pk
                  wrote on last edited by
                  #8

                  [quote author="AFI4ever" date="1329756880"]thanks. done that. but now it says "cannot find file psql.pro" although it is in D:\QtSdk\QtSources\4.7.4\src\plugins\sqldrivers\psql. how do i have to set %QTDIR%? [/quote]

                  for setting QTDIR look this tutorial a nice step by step tutorial

                  http://sector.ynet.sk/qt4-tutorial/preparations.html

                  Love to learn....

                  1 Reply Last reply
                  0
                  • F Offline
                    F Offline
                    foxyz
                    wrote on last edited by
                    #9

                    Hi, you need run this under environment of QT, please choose menu:Qt SDk->Desktop->Qt4.7.x For MingW or MSVC2008... this will open a CMD window,then do what the helper mentioned above.

                    Or, You need add a new environment QTDIR,then add $QTDIR\bin into env variable Path,then open a CMD window, qmake... make...(or nmake...)

                    I just know coding and coding

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      AFI4ever
                      wrote on last edited by
                      #10

                      I have set up QTDIR PATH and qmake works well but after typing in cmd
                      qmake -o Makefile “INCLUDEPATH+=C:\psql\include” “LIBS+=C:\psql\lib” psql.pro
                      it still says Cannot find file: psql.pro
                      although there is file psql.pro in folder QTDIR\src\plugins\sqldrivers\psql

                      what can cause this problem?

                      1 Reply Last reply
                      0
                      • F Offline
                        F Offline
                        foxyz
                        wrote on last edited by
                        #11

                        "INCLUDEPATH+=C:\psql\include” “LIBS+=C:\psql\lib"
                        this should be moved into psql.pro file. my point of view!
                        just do :qmake
                        make

                        I just know coding and coding

                        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