Qt-interest Archive, June 2007
Re: starting to use QT
Message 1 in thread
Hi,
Im having problems using PSQL with QT. Im using QT 4.2.3 with MinGW
5.1.3 in Windows XP and recently I've just downloaded and installed
PostgreSQL 8.2.4.
After this I've run the command :
cd %QTDIR%\src\plugins\sqldrivers\psql
qmake -o Makefile "INCLUDEPATH+=C:\psql\include" "LIBS+=C:\psql\lib\ms\libpq.lib" psql.pro
make
And then I've tried to recompile the sqlbrowser in the demo using
'qmake' and 'make' commands and the PSQL driver is not listed.
What am I doing wrong here? or what have I missed?
Thanks for the help
Cheers
Astan
--
[ signature omitted ]
Message 2 in thread
Hi,
Im having problems using PSQL with QT. Im using QT 4.2.3 with MinGW
5.1.3 in Windows XP and recently I've just downloaded and installed
PostgreSQL 8.2.4.
After this I've run the command :
cd %QTDIR%\src\plugins\sqldrivers\psql
qmake -o Makefile "INCLUDEPATH+=C:\psql\include"
"LIBS+=C:\psql\lib\ms\libpq.lib" psql.pro
make
And then I've tried to recompile the sqlbrowser in the demo using
'qmake' and 'make' commands and the PSQL driver is not listed.
What am I doing wrong here? or what have I missed?
Thanks for the help
Cheers
Astan
--
[ signature omitted ]
Message 3 in thread
On Wed, 2007-06-06 at 13:40 +1000, Astan Chee wrote:
> Hi,
> Im having problems using PSQL with QT. Im using QT 4.2.3 with MinGW
> 5.1.3 in Windows XP and recently I've just downloaded and installed
> PostgreSQL 8.2.4.
> After this I've run the command :
>
> cd %QTDIR%\src\plugins\sqldrivers\psql
> qmake -o Makefile "INCLUDEPATH+=C:\psql\include" "LIBS+=C:\psql\lib\ms\libpq.lib" psql.pro
> make
>
> And then I've tried to recompile the sqlbrowser in the demo using
> 'qmake' and 'make' commands and the PSQL driver is not listed.
> What am I doing wrong here? or what have I missed?
> Thanks for the help
> Cheers
> Astan
>
Probably "make install". qsqlpsql.dll needs to go in
%QTDIR%\plugins\sqldrivers
I don't _think_ you need to recompile sqlbrowser; it picks up installed
plugins at runtime from QSqlDatabase::drivers().
--
[ signature omitted ]
Message 4 in thread
Stephen Jackson wrote:
> On Wed, 2007-06-06 at 13:40 +1000, Astan Chee wrote:
>
>> Hi,
>> Im having problems using PSQL with QT. Im using QT 4.2.3 with MinGW
>> 5.1.3 in Windows XP and recently I've just downloaded and installed
>> PostgreSQL 8.2.4.
>> After this I've run the command :
>>
>> cd %QTDIR%\src\plugins\sqldrivers\psql
>> qmake -o Makefile "INCLUDEPATH+=C:\psql\include" "LIBS+=C:\psql\lib\ms\libpq.lib" psql.pro
>> make
>>
>> And then I've tried to recompile the sqlbrowser in the demo using
>> 'qmake' and 'make' commands and the PSQL driver is not listed.
>> What am I doing wrong here? or what have I missed?
>> Thanks for the help
>> Cheers
>> Astan
>>
>>
>
> Probably "make install". qsqlpsql.dll needs to go in
> %QTDIR%\plugins\sqldrivers
>
Thanks for the tip, but although the file is there, it still does not
work (sqlbrowser doesn't show "PSQL" as an option)
> I don't _think_ you need to recompile sqlbrowser; it picks up installed
> plugins at runtime from QSqlDatabase::drivers().
>
Thats what I thought at first as well, but to be on the safe side, I
thought I'd recompile. Oh well, any other ideas?