After several attempts I was able to solve the problem.
The problem was that my environment variables INCLUDE and LIB were not set.
In order to build the entire Qt library or just a part of it (like my case building QPSQL plugin)
besides extending the "path" variable it is also necessary to set the "include" and "lib" variables with the right paths.
If those two variables are not present, they need to be created.
Here is how I have set my variables:
Created the following new variables:
QTDIR=C:\Qt\4.6.3
MINGW=C:\mingw
Extended "path" variable adding the following paths:
%QTDIR%\bin
%MINGW%\bin
Created "lib" variable with the following paths
%QTDIR%\lib
%MINGW%\lib
Created "include" variable with the following paths
%QTDIR%\include
%MINGW%\include
Please notice I am compiling with MinGW on WINXP, I don't know about other platforms but I imagine it will be somewhat similar.
I hope this will help anybody else having a similar problem.
Bookmarks