Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2012-03

DBTestframework compilation on Win64: no postgres sonnector

2 messages · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Reinier Olislagers

Trying to compile the db test framework on FPC x64 on windows x64 *), I get a missing PostgreSQL connector:

C:\Development\fpctrunk\packages\fcl-db\tests>ppcx64 dbtestframework.pas Free Pascal Compiler version 2.7.1 [2012/03/26] for x86_64 Copyright (c) 1993-2012 by Florian Klaempfl and others Target OS: Win64 for x64
Compiling dbtestframework.pas
Compiling toolsunit.pas
Compiling sqldbtoolsunit.pas
sqldbtoolsunit.pas(11,17) Fatal: Can't find unit pqconnection used by SQLDBTools
Unit
Fatal: Compilation aborted

In packages\fcl-db\units\x86_64-win64 there was indeed no pq*.*

Had a quick look at
packages\fcl-db\src\sqldb\postgres
Makefile and Makefile.fpc but am a very slow learner with these (a.k.a. they look to complicated)...
Saw they depended on the postgres unit, which was compiled in my case.

Don't have much experience with PostgreSQL, so I don't know whether 64 bit windows clients actually exist.
(Note: remember people complaining about lack of PostgreSQL support on Win64 on the forums, but a quick search in the bug tracker gave no results.)

Should:
1. the uses clause in sqldbtoolsunit.pas be adapted, or
2. the make files for sqldb\postgres be changed or
3. I do something differently?

Thanks,
Reinier

*) part of my quest to boldly go where nobody has gone before and get the test framework running on Firebird embedded x64...

Reinier Olislagers
to Reinier Olislagers
Reinier Olislagers wrote
Trying to compile the db test framework on FPC x64 on windows x64 C:\Development\fpctrunk\packages\fcl-db\tests>ppcx64 dbtestframework.pas

<snip>

Show quoted text 7 lines
sqldbtoolsunit.pas(11,17) Fatal: Can't find unit pqconnection used by SQLDBTools Unit Fatal: Compilation aborted Had a quick look at packages\fcl-db\src\sqldb\postgres Makefile and Makefile.fpc but am a very slow learner with these (a.k.a. they look to complicated)...
Ok, fpmake.pp in that directory has
const
SqldbWithoutPostgresOSes = [win64];
...
P.SourcePath.Add('src/sqldb/postgres',
SqldbConnectionOSes-SqldbWithoutPostgresOSes);
Should: 1. the uses clause in sqldbtoolsunit.pas be adapted, or 2. the make files for sqldb\postgres be changed or 3. I do something differently?

So, option 1 would be right, I suppose...

Regards,
Reinier