Sunday, July 6th 2008, 3:32pm UTC+1

You are not logged in.

  • Login
  • Register

1

Thursday, January 17th 2008, 5:49pm

"configure -qt-sql-psql" problem

Hi, i use qt 4.3.3 opensource with mingw32 and win2k. After installing i tried the following:

configure -qt-sql-psql -I H:\PostgreSQL\8.2\include -L H:\PostgreSQL\8.2\lib\ms
.
.
(OK)
mingw32-make

.
.
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-rel
oc -mthreads -Wl -shared -Wl,--out-implib,h:\Qt\4.3.3\lib\libQtSqld4.a -o ..\..\
lib\QtSqld4.dll object_script.QtSqld.Debug -L"h:\Qt\4.3.3\lib" -L"h:\Qt\4.3.3\l
ib" tmp\obj\debug_shared\QtSqld_resource_res.o -LH:\PostgreSQL\8.2\lib\ms -lpq -
lws2_32 -ladvapi32 -lQtCored4
H:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot fin
d -lpq
collect2: ld returned 1 exit status
mingw32-make[2]: *** [..\..\lib\QtSqld4.dll] Error 1
mingw32-make[2]: Leaving directory `H:/Qt/4.3.3/src/sql'
mingw32-make[1]: *** [debug-all] Error 2
mingw32-make[1]: Leaving directory `H:/Qt/4.3.3/src/sql'
mingw32-make: *** [sub-sql-make_default-ordered] Error 2

The path is ok and i do have the postgres dev files. Any idea?

thx
  • Go to the top of the page

2

Friday, January 18th 2008, 12:11am

Finally ...

I copied libpq.a to H:\PostgreSQL\8.2\lib\ms

now the plugin works
  • Go to the top of the page

Rate this thread