[postgis-users] postgis-cvs link error on mingw

Jean David TECHER davidtecher at yahoo.fr
Thu Apr 21 08:33:00 PDT 2005


so I think it is a PATH problem

Adão

When U compil PG (I will suppose) U did something

configure --prefix=/c/postgreql-8.0.2

So can U add
C:\postgresql-8.0.2\bin;c:\postgresql-8.0.2\lib;c:\postgresql-8.0.2\lib\post
gresql

at the beginning of your PATH on Windows:

PATH =
C:\postgresql-8.0.2\bin;c:\postgresql-8.0.2\lib;c:\postgresql-8.0.2\lib\post
gresql;....
---------------------------------------------------------------
TECHER Jean David
01MAP
e-mail: david at 01map.net
Tél: 04 67 45 60 27
Entreprise: http://www.01map.net
Perso: http://techer.pascal.free.fr/postgis/
---------------------------------------------------------------
----- Original Message -----
From: <strk at refractions.net>
To: "PostGIS Users Discussion" <postgis-users at postgis.refractions.net>
Sent: Thursday, April 21, 2005 5:23 PM
Subject: Re: [postgis-users] postgis-cvs link error on mingw


> You can do the test with the PG version you already
> have, it's a linking commandline problem.
> Its enough to know if PostGIS HEAD branch (I think the snapshot
> online is from HEAD) works with win32.
>
> --strk;
>
> On Thu, Apr 21, 2005 at 05:18:52PM +0200, Jean David TECHER wrote:
> > Hi Sandro
> >
> > Ok..;I'll download PG 8.0.2 and do the test :-) for
> >
> > Geos 2.1.1
> > proj 4.4.9
> > PG 8.0.2
> > PostGIS 1.0.0
> > ---------------------------------------------------------------
> > TECHER Jean David
> > 01MAP
> > e-mail: david at 01map.net
> > Tél: 04 67 45 60 27
> > Entreprise: http://www.01map.net
> > Perso: http://techer.pascal.free.fr/postgis/
> > ---------------------------------------------------------------
> > ----- Original Message -----
> > From: <strk at refractions.net>
> > To: <postgis-users at postgis.refractions.net>
> > Sent: Thursday, April 21, 2005 5:08 PM
> > Subject: Re: [postgis-users] postgis-cvs link error on mingw
> >
> >
> > > Are you referring to the HEAD branch ?
> > > If you do did you run ./configure ? [ yes, for HEAD tests that's the
> > way! ]
> > >
> > > The HEAD branch contains code trying to do w/out postgresql build
> > > scripts, which are probably much smarter about cross-platform issues.
> > >
> > > David can probably help more then me here as I don't have a win32
system
> > > to check this out. It would be good checking command line differences
> > > between 1.0 and HEAD branch on a win32 system.
> > >
> > > --strk;
> > >
> > > On Thu, Apr 21, 2005 at 11:46:54AM -0300, Adão Paulino wrote:
> > > > Hi,
> > > >
> > > > I'm trying to build PostGIS 1.0.0 on PostGres 8.0.2, using  Windows
and
> > MingW.
> > > >
> > > > I've used the instructions from TECHER Jean David and no errors has
> > occured until I try to run 'Make' on '/home/src/postgres-8.0.2/contrib',
> > after setting USE_PROJ and USE_GEOS to 1,  PROJ_DIR = 1 and GEOS_DIR = 1
int
> > the Makefile.Config.
> > > >
> > > > I've got the following after the make command:
> > > >
> > > > Administrador at HP6 /home/src/postgresql-8.0.2/contrib/postgis-1.0.0
> > > > $ make
> > > > make -C lwgeom
> > > > make[1]: Entering directory
> > `/home/src/postgresql-8.0.2/contrib/postgis-1.0.0/lwgeom'
> > > > sh ../geos_version.sh /c/postgres-8.0.2 > postgis_geos_version.h
> > > > dlltool --export-all  --output-def lwgeom.def measures.o box2d.o
> > ptarray.o lwgeom_api.o lwgeom.o lwpoint.o lwline.o lwpoly.o lwmpoint.o
> > lwmline.o lwmpoly.o lwcollection.o lwgeom_geos_wrapper.o  wktunparse.o
> > lwgparse.o wktparse.tab.o lex.yy.o vsprintf.o liblwgeom.o lwgeom_pg.o
> > lwgeom_debug.o lwgeom_spheroid.o lwgeom_ogc.o
lwgeom_functions_analytic.o
> > lwgeom_geos.o lwgeom_inout.o lwgeom_estimate.o lwgeom_functions_basic.o
> > lwgeom_gist.o lwgeom_btree.o lwgeom_transform.o stringBuffer.o
lwgeom_box.o
> > lwgeom_box3d.o lwgeom_box2dfloat4.o lwgeom_chip.o lwgeom_svg.o
lwgeom_gml.o
> > lwgeom_triggers.o lwgeom_dump.o
> > > > dllwrap  -o liblwgeom.dll --dllname liblwgeom.dll  --def lwgeom.def
> > measures.o box2d.o ptarray.o lwgeom_api.o lwgeom.o lwpoint.o lwline.o
> > lwpoly.o lwmpoint.o lwmline.o lwmpoly.o lwcollection.o
lwgeom_geos_wrapper.o
> > wktunparse.o lwgparse.o wktparse.tab.o lex.yy.o vsprintf.o liblwgeom.o
> > lwgeom_pg.o lwgeom_debug.o lwgeom_spheroid.o lwgeom_ogc.o
> > lwgeom_functions_analytic.o lwgeom_geos.o lwgeom_inout.o
lwgeom_estimate.o
> > lwgeom_functions_basic.o lwgeom_gist.o lwgeom_btree.o lwgeom_transform.o
> > stringBuffer.o lwgeom_box.o lwgeom_box3d.o lwgeom_box2dfloat4.o
> > lwgeom_chip.o lwgeom_svg.o lwgeom_gml.o lwgeom_triggers.o
> >
lwgeom_dump.o -L/home/src/postgresql-8.0.2/contrib/postgis-1.0.0/../../src/p
> >
rt -L/home/src/postgresql-8.0.2/contrib/postgis-1.0.0/../../src/port  -lstd
> >
c++ -L/c/postgres-8.0.2/lib -lgeos -L/c/postgres-8.0.2/lib -lproj -L/home/sr
> > c/postgresql-8.0.2/contrib/postgis-1.0.0/../../src/backend -lpostgres
> > > >
> >
c:\MingW\bin\..\lib\gcc-lib\mingw32\3.2.3\..\..\..\..\mingw32\bin\ld.exe:
> > cannot find -lpostgres
> > > > c:\MingW\bin\dllwrap.exe: c:\MingW\bin\gcc exited with status 1
> > > > make[1]: *** [liblwgeom.dll] Error 1
> > > > make[1]: Leaving directory
> > `/home/src/postgresql-8.0.2/contrib/postgis-1.0.0/lwgeom'
> > > > make: *** [liblwgeom] Error 2
> > > >
> > > > Could someone help me?
> > > >
> > > > Thanks in advance.
> > > >
> > > > Adão Paulino.
> > >
> > > > _______________________________________________
> > > > postgis-users mailing list
> > > > postgis-users at postgis.refractions.net
> > > > http://postgis.refractions.net/mailman/listinfo/postgis-users
> > >
> > > _______________________________________________
> > > postgis-users mailing list
> > > postgis-users at postgis.refractions.net
> > > http://postgis.refractions.net/mailman/listinfo/postgis-users
> >
> >
> >
> > _______________________________________________
> > postgis-users mailing list
> > postgis-users at postgis.refractions.net
> > http://postgis.refractions.net/mailman/listinfo/postgis-users
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>






More information about the postgis-users mailing list