PDA

View Full Version : Building PSQL driver problem with windres



Itzuke
28th November 2011, 16:37
Hello. I tried this explaination: http://www.qtcentre.org/wiki/index.php?title=Building_the_QPSQL_plugin_on_Windo ws_using_MinGW

But when I reached the make stage I have this error: 7136
I am running in admin mode as you see...

Windows 7 64-bit, 32-bit PosgreSQL 9.1, QtSDK 1.1.4 (Qt 4.7.4).

Itzuke
28th November 2011, 18:52
Ahahahaha, I fixed it.

Passed --use-tmp-file to windres in the Makefile.Debug (or Relase, same shit happens on release) after running qmake.

So in short:

(Run the Qt Command Prompt as an admin.)

0. qmake...
1. First make fails. Add the --use-tmp-file to the current makefile.
2. Make again fails. Copy the newly generated debugqsqlpsqld_resource_res.o file to debug/qsqlpsqld_resource_res.o (same with release).
3. Make finaly succeeds.