Help on building psycopg2 on windows
"Harald Armin Massa" <[email protected]>
| Newsgroups | gmane.comp.python.db.psycopg.devel |
|---|---|
| Message-ID | <[email protected]> |
hello, I try to build psycopg2 on windows; now using mingw. The compile works, BUT linking fails: c:\mingw\bin\gcc.exe -mno-cygwin -shared -s build\temp.win32-2.5\Release\psycopg \psycopgmodule.o build\temp.win32-2.5\Release\psycopg\pqpath.o build\temp.win32- 2.5\Release\psycopg\typecast.o build\temp.win32-2.5\Release\psycopg\microprotoco ls.o build\temp.win32-2.5\Release\psycopg\microprotocols_proto.o build\temp.win3 2-2.5\Release\psycopg\connection_type.o build\temp.win32-2.5\Release\psycopg\con nection_int.o build\temp.win32-2.5\Release\psycopg\cursor_type.o build\temp.win3 2-2.5\Release\psycopg\cursor_int.o build\temp.win32-2.5\Release\psycopg\lobject_ type.o build\temp.win32-2.5\Release\psycopg\lobject_int.o build\temp.win32-2.5\R elease\psycopg\adapter_qstring.o build\temp.win32-2.5\Release\psycopg\adapter_pb oolean.o build\temp.win32-2.5\Release\psycopg\adapter_binary.o build\temp.win32- 2.5\Release\psycopg\adapter_asis.o build\temp.win32-2.5\Release\psycopg\adapter_ list.o build\temp.win32-2.5\Release\psycopg\adapter_datetime.o build\temp.win32- 2.5\Release\psycopg\_psycopg.def -Lc:\python25\libs -Lc:\python25\PCBuild -Lc:/p ostgres/83RC2/lib -lpython25 -lpq -lws2_32 -ladvapi32 -o build\lib.win32-2.5\psy copg2\_psycopg.pyd c:\mingw\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot find -lpq collect2: ld returned 1 exit status error: command 'gcc' failed with exit status 1 if I google for the error "ld.exe: cannot find -lpq" there is allways the information that the lib-dir of libpq is missing; but : -Lc:/postgres/83RC2/lib is clearle within the commandline, and within c:/postgres/83RC2/lib there is one libqp.lib What am I missing? any hints? Best wishes, Harald -- GHUM Harald Massa persuadere et programmare Harald Armin Massa Spielberger Straße 49 70435 Stuttgart 0173/9409607 fx 01212-5-13695179 - EuroPython 2008 will take place in Vilnius, Lithuania - Stay tuned!