[SOLVED]can't find the "src" directory to build my QPSQL driver
-
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 -
-
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.
-
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") -
You should uninstall your old version first and you can post a picture, too, if you use DropBox or similar. It's described "here: ":http://qt-project.org/wiki/ForumHelp#b642e0c67b7a32cc0b833ea119693dce
-
ok, thanks ! i built the plugin(the problem was from the old version of my PostgreSQL, i couldn't edit the .h file you talked about).now the new issue is that i get this error message "The specified path was not found" when i enter copy release\libqsqlpsql.a QTSDK_SQLDRIVERS_PATH... just a precision: those files are in C:\Qt\Qt5.2.1\5.2.1\Src\qtbase\plugins\sqldrivers and i think they have just been created.the modification date is today on 3 pm
-
The plugins are built in directories release and debug. I suggest to search for these directories and if you find the newly created DLLs there copy these to QTSDK_SQLDRIVERS_PATH. If there are issues again please post your environment (set > env.txt) and your error messages