Обсуждение: PG9.1 Static build over Windows

Поиск
Список
Период
Сортировка

PG9.1 Static build over Windows

От
Muhammad Bashir Al-Noimi
Дата:
Howdy,

I want to link Postgresql client to my Qt project but I noticed that C:/PostgreSQL/9.1/lib/libpq.lib points to dynamic libaray (libpq.dll) which is not suiatble for static linking.

How can I link statically my application with Postgresql client?

P.S.
I'm using mingw48_32 not msvs; usually mingw48_32 uses *.a files for static linking not *.lib
Build log of my project is:
----
mingw32-make[1]: Leaving directory 'F:/build-TestSSLConnection-Satic_postgresql-Release'
mingw32-make[1]: *** No rule to make target 'C:/PostgreSQL/9.1/lib/pq.lib', needed by 'release\TestSSLConnection.exe'.  Stop.
makefile:34: recipe for target 'release' failed
mingw32-make: *** [release] Error 2
17:12:37: The process "C:\Qt\Qt5.1.1\Tools\mingw48_32\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project TestSSLConnection (kit: Satic-postgresql)
When executing step 'Make'
17:12:37: Elapsed time: 00:22.

Thanks in advance for help.

--
Best Regards
Muhammad Bashir Al-Noimi

Re: PG9.1 Static build over Windows

От
Muhammad Bashir Al-Noimi
Дата:
On 09/10/2013 05:55 PM, Muhammad Bashir Al-Noimi wrote:
> Howdy,
>
> I want to link Postgresql client to my Qt project but I noticed that
> C:/PostgreSQL/9.1/lib/libpq.lib points to dynamic libaray (libpq.dll)
> which is not suiatble for static linking.
>
> How can I link statically my application with Postgresql client?
>
> P.S.
> I'm using mingw48_32 not msvs; usually mingw48_32 uses *.a files for
> static linking not *.lib
> Build log of my project is:
> ----
> mingw32-make[1]: Leaving directory
> 'F:/build-TestSSLConnection-Satic_postgresql-Release'
> mingw32-make[1]: *** No rule to make target
> 'C:/PostgreSQL/9.1/lib/pq.lib', needed by
> 'release\TestSSLConnection.exe'.  Stop.
> makefile:34: recipe for target 'release' failed
> mingw32-make: *** [release] Error 2
> 17:12:37: The process
> "C:\Qt\Qt5.1.1\Tools\mingw48_32\bin\mingw32-make.exe" exited with code 2.
> Error while building/deploying project TestSSLConnection (kit:
> Satic-postgresql)
> When executing step 'Make'
> 17:12:37: Elapsed time: 00:22.
>
> Thanks in advance for help.
Any suggestion guys?!

--
Best Regards,
Muhammad Bashir Al-Noimi