[SOLVED]can't find the "src" directory to build my QPSQL driver
-
wrote on 12 Apr 2014, 17:05 last edited by
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
-
wrote on 12 Apr 2014, 17:48 last edited by
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. -
wrote on 12 Apr 2014, 17:54 last edited by
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
-
wrote on 12 Apr 2014, 18:04 last edited by
maybe a silly question: did you enter "set QTSDK..." and is that visible in your environment if you type SET in the cmd?
-
wrote on 12 Apr 2014, 18:14 last edited by
No, i ca'nt see that
-
wrote on 12 Apr 2014, 18:25 last edited by
But - do you use SET to bring it to the environment?
-
wrote on 12 Apr 2014, 18:33 last edited by
i tried again, and i can see the three variables; QTSDK_SQLDRIVERS_PATH, QT_SRC_PATH and
POSTGRES32 -
wrote on 12 Apr 2014, 18:42 last edited by
are you able to build the plugin now? You should not see the "recipe" message again.
-
wrote on 12 Apr 2014, 18:50 last edited by
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..."
-
wrote on 12 Apr 2014, 19:22 last edited by
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.prowhen this task is done, you will continue with:
mingw32-make debug
mingw32-make release -
wrote on 12 Apr 2014, 19:41 last edited by
-
wrote on 12 Apr 2014, 20:06 last edited by
When i try to start qmake there, i get an error message "qmake is not a command line..."
-
wrote on 12 Apr 2014, 20:18 last edited by
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 -
wrote on 12 Apr 2014, 20:37 last edited by
always the same error "recipe for target 'debug' failed"
-
wrote on 12 Apr 2014, 20:49 last edited by
You must be sure, that all pathnames are correct and the commands are called from the right directories.
-
wrote on 12 Apr 2014, 20:58 last edited by
about "Program~2", for my system it is Program Files (x86). what shall i use ?
-
wrote on 12 Apr 2014, 22:30 last edited by
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.
-
wrote on 13 Apr 2014, 07:30 last edited by
both work, so i will use Program Files (x86)
-
wrote on 13 Apr 2014, 07:54 last edited by
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?
21/63