Thread: building pgadmin on win7

building pgadmin on win7

From
Дмитрий Ольшевский
Date:
Hello everybody!

I'm trying to build pgadmin 1.18.1 from this repository https://github.com/postgres/pgadmin3.
Using software: Visual Studio 2010, wxwidgets 2.8.12, postgres 9.3.4.
Fllowing the instruction INSTALL, I've built wxMSW by running build-wxmsw.bat from xtra/wx-build in pgadmin sources,
set the vars %PGDIR%, %PGBUILD% and %WXWIN% and dirs in project's properties.

Library directories: $(VCInstallDir)lib;$(VCInstallDir)atlmfc\lib;$(WindowsSdkDir)lib;$(FrameworkSDKDir)\lib;c:\pgbuild\iconv\lib\;c:\pgbuild\libxml2\lib\;c:\pgbuild\libxslt\lib\;c:\pgbuild\openssl\lib\;c:\pgsql\lib

But when I tried to compile the project, I received errors like these:

Error 14 error LNK2001: unresolved external symbol _PQgetisnull C:\pgadmin\pgadmin\ctlResultGrid.obj pgAdmin3
Error 15 error LNK2001: unresolved external symbol _PQgetisnull C:\pgadmin\pgadmin\dbgTargetInfo.obj pgAdmin3
Error 16 error LNK2001: unresolved external symbol _PQgetisnull C:\pgadmin\pgadmin\dlgDirectDbg.obj pgAdmin3
Error 17 error LNK2019: unresolved external symbol _PQgetisnull referenced in function "public: bool __thiscall pgSet::IsNull(int)const " (?IsNull@pgSet@@QBE_NH@Z) C:\pgadmin\pgadmin\ctlSQLResult.obj pgAdmin3
Error 18 error LNK2001: unresolved external symbol _PQgetisnull C:\pgadmin\pgadmin\frmEditGrid.obj pgAdmin3
Error 19 error LNK2001: unresolved external symbol _PQgetisnull C:\pgadmin\pgadmin\pgAggregate.obj pgAdmin3Can anybody give me some advice?

# Olshevskiy Dmitriy

Re: building pgadmin on win7

From
"J.F. Oster"
Date:
Добрый день, Дмитрий,

ДО> Error 14 error LNK2001: unresolved external symbol
ДО> _PQgetisnull C:\pgadmin\pgadmin\ctlResultGrid.obj pgAdmin3
ДО> Error 15 error LNK2001: unresolved external symbol
ДО> _PQgetisnull C:\pgadmin\pgadmin\dbgTargetInfo.obj pgAdmin3
ДО> Error 16 error LNK2001: unresolved external symbol
ДО> _PQgetisnull C:\pgadmin\pgadmin\dlgDirectDbg.obj pgAdmin3
ДО> Error 17 error LNK2019: unresolved external symbol
ДО> _PQgetisnull referenced in function "public: bool __thiscall
ДО> pgSet::IsNull(int)const " (?IsNull@pgSet@@QBE_NH@Z)
ДО> C:\pgadmin\pgadmin\ctlSQLResult.obj pgAdmin3
ДО> Error 18 error LNK2001: unresolved external symbol
ДО> _PQgetisnull C:\pgadmin\pgadmin\frmEditGrid.obj pgAdmin3
ДО> Error 19 error LNK2001: unresolved external symbol
ДО> _PQgetisnull C:\pgadmin\pgadmin\pgAggregate.obj pgAdmin3

ДО> Can anybody give me some advice?

Make sure you have 32-bit PostgreSQL installation in c:\pgsql\, not
64-bit.

--
Best regards,
 J.F.



Re[2]: [pgadmin-hackers] building pgadmin on win7

From
Дмитрий Ольшевский
Date:
Hello J.F.
Thank you very much! It's really helped.

# Olshevskiy Dmitriy

Sun, 11 May 2014 06:55:33 +0400 от "J.F. Oster" <jinfroster@mail.ru>:
Добрый день, Дмитрий,

ДО> Error 14 error LNK2001: unresolved external symbol
ДО> _PQgetisnull C:\pgadmin\pgadmin\ctlResultGrid.obj pgAdmin3
ДО> Error 15 error LNK2001: unresolved external symbol
ДО> _PQgetisnull C:\pgadmin\pgadmin\dbgTargetInfo.obj pgAdmin3
ДО> Error 16 error LNK2001: unresolved external symbol
ДО> _PQgetisnull C:\pgadmin\pgadmin\dlgDirectDbg.obj pgAdmin3
ДО> Error 17 error LNK2019: unresolved external symbol
ДО> _PQgetisnull referenced in function "public: bool __thiscall
ДО> pgSet::IsNull(int)const " (?IsNull@pgSet@@QBE_NH@Z)
ДО> C:\pgadmin\pgadmin\ctlSQLResult.obj pgAdmin3
ДО> Error 18 error LNK2001: unresolved external symbol
ДО> _PQgetisnull C:\pgadmin\pgadmin\frmEditGrid.obj pgAdmin3
ДО> Error 19 error LNK2001: unresolved external symbol
ДО> _PQgetisnull C:\pgadmin\pgadmin\pgAggregate.obj pgAdmin3

ДО> Can anybody give me some advice?

Make sure you have 32-bit PostgreSQL installation in c:\pgsql\, not
64-bit.

--
Best regards,
 J.F.