[postgis-users] Compilation Error with PostGRE 7.3.1.1 / CygWin
PABLOGHIGLINO
PABLOGHIGLINO at terra.es
Fri Jan 31 04:19:31 PST 2003
Thanks Christian,
Finally, I had to modify the makefile, I send you a copy.
I amnow trying to create the postGIS.jar file. But the makefile found
errors. I have add the postgresql.jar file to the ClassPath, but I
can't compile.
(I have put the postgresql.jar file in the ../original/jars directory)
thanks again.
Pablo Ghiglino.
$ make
javac -classpath ../original/jars/postgresql.jar:postgis.jar:. \
org/postgis/Geometry.java \
org/postgis/Point.java \
org/postgis/MultiPoint.java \
org/postgis/LineString.java \
org/postgis/MultiLineString.java \
org/postgis/LinearRing.java \
org/postgis/Polygon.java \
org/postgis/MultiPolygon.java
org/postgis/Point.java:3: package org.postgresql.util does not exist
import org.postgresql.util.*;
^
org/postgis/MultiPoint.java:3: package org.postgresql.util does not
exist
import org.postgresql.util.*;
^
org/postgis/LineString.java:3: package org.postgresql.util does not
exist
import org.postgresql.util.*;
^
org/postgis/MultiLineString.java:3: package org.postgresql.util does
not exist
import org.postgresql.util.*;
^
org/postgis/LinearRing.java:5: package org.postgresql.util does not
exist
import org.postgresql.util.*;
^
org/postgis/Polygon.java:3: package org.postgresql.util does not exist
import org.postgresql.util.*;
^
org/postgis/MultiPolygon.java:3: package org.postgresql.util does not
exist
import org.postgresql.util.*;
^
org/postgis/Point.java:57: cannot resolve symbol
symbol : class PGtokenizer
location: class org.postgis.Point
PGtokenizer t = new PGtokenizer(PGtokenizer.removePara
(value),'
');
^
org/postgis/Point.java:57: cannot resolve symbol
symbol : class PGtokenizer
location: class org.postgis.Point
PGtokenizer t = new PGtokenizer(PGtokenizer.removePara
(value),'
');
^
org/postgis/Point.java:57: cannot resolve symbol
symbol : variable PGtokenizer
location: class org.postgis.Point
PGtokenizer t = new PGtokenizer(PGtokenizer.removePara
(value),'
');
^
org/postgis/Point.java:72: cannot resolve symbol
symbol : class PSQLException
location: class org.postgis.Point
throw new PSQLException
("postgis.Point",e.toString());
^
org/postgis/MultiPoint.java:31: cannot resolve symbol
symbol : class PGtokenizer
location: class org.postgis.MultiPoint
PGtokenizer t = new PGtokenizer
(PGtokenizer.removePara(v
alue.substring(10).trim()),',');
^
org/postgis/MultiPoint.java:31: cannot resolve symbol
symbol : class PGtokenizer
location: class org.postgis.MultiPoint
PGtokenizer t = new PGtokenizer
(PGtokenizer.removePara(v
alue.substring(10).trim()),',');
^
org/postgis/MultiPoint.java:31: cannot resolve symbol
symbol : variable PGtokenizer
location: class org.postgis.MultiPoint
PGtokenizer t = new PGtokenizer
(PGtokenizer.removePara(v
alue.substring(10).trim()),',');
^
org/postgis/LineString.java:33: cannot resolve symbol
symbol : class PGtokenizer
location: class org.postgis.LineString
PGtokenizer t = new PGtokenizer(PGtokenizer.removePara
(value),',
');
^
org/postgis/LineString.java:33: cannot resolve symbol
symbol : class PGtokenizer
location: class org.postgis.LineString
PGtokenizer t = new PGtokenizer(PGtokenizer.removePara
(value),',
');
^
org/postgis/LineString.java:33: cannot resolve symbol
symbol : variable PGtokenizer
location: class org.postgis.LineString
PGtokenizer t = new PGtokenizer(PGtokenizer.removePara
(value),',
');
^
org/postgis/MultiLineString.java:31: cannot resolve symbol
symbol : class PGtokenizer
location: class org.postgis.MultiLineString
PGtokenizer t = new PGtokenizer
(PGtokenizer.removePara(v
alue.substring(15).trim()),',');
^
org/postgis/MultiLineString.java:31: cannot resolve symbol
symbol : class PGtokenizer
location: class org.postgis.MultiLineString
PGtokenizer t = new PGtokenizer
(PGtokenizer.removePara(v
alue.substring(15).trim()),',');
^
org/postgis/MultiLineString.java:31: cannot resolve symbol
symbol : variable PGtokenizer
location: class org.postgis.MultiLineString
PGtokenizer t = new PGtokenizer
(PGtokenizer.removePara(v
alue.substring(15).trim()),',');
^
org/postgis/LinearRing.java:34: cannot resolve symbol
symbol : class PGtokenizer
location: class org.postgis.LinearRing
PGtokenizer t = new PGtokenizer(PGtokenizer.removePara
(value.tri
m()),',');
^
org/postgis/LinearRing.java:34: cannot resolve symbol
symbol : class PGtokenizer
location: class org.postgis.LinearRing
PGtokenizer t = new PGtokenizer(PGtokenizer.removePara
(value.tri
m()),',');
^
org/postgis/LinearRing.java:34: cannot resolve symbol
symbol : variable PGtokenizer
location: class org.postgis.LinearRing
PGtokenizer t = new PGtokenizer(PGtokenizer.removePara
(value.tri
m()),',');
^
org/postgis/Polygon.java:33: cannot resolve symbol
symbol : class PGtokenizer
location: class org.postgis.Polygon
PGtokenizer t = new PGtokenizer(PGtokenizer.removePara
(value),',
');
^
org/postgis/Polygon.java:33: cannot resolve symbol
symbol : class PGtokenizer
location: class org.postgis.Polygon
PGtokenizer t = new PGtokenizer(PGtokenizer.removePara
(value),',
');
^
org/postgis/Polygon.java:33: cannot resolve symbol
symbol : variable PGtokenizer
location: class org.postgis.Polygon
PGtokenizer t = new PGtokenizer(PGtokenizer.removePara
(value),',
');
^
org/postgis/MultiPolygon.java:31: cannot resolve symbol
symbol : class PGtokenizer
location: class org.postgis.MultiPolygon
PGtokenizer t = new PGtokenizer
(PGtokenizer.removePara(v
alue.substring(12).trim()),',');
^
org/postgis/MultiPolygon.java:31: cannot resolve symbol
symbol : class PGtokenizer
location: class org.postgis.MultiPolygon
PGtokenizer t = new PGtokenizer
(PGtokenizer.removePara(v
alue.substring(12).trim()),',');
^
org/postgis/MultiPolygon.java:31: cannot resolve symbol
symbol : variable PGtokenizer
location: class org.postgis.MultiPolygon
PGtokenizer t = new PGtokenizer
(PGtokenizer.removePara(v
alue.substring(12).trim()),',');
^
29 errors
make: *** [ogis] Error 1
Content-Type: multipart/alternative;
boundary="=_alternative 0036D38FC1256CBF_="
--=_alternative 0036D38FC1256CBF_=
Content-Type: text/plain; charset="US-ASCII"
Hi Pablo,
I also had the same problem as you. I asume you tried to make PostGIS
0.7.3. I also was not able to make PostGIS 0.7.3. I then downloaded the
CVS version and used a different Makefile which I found in the forum. The
one from the CVS did not work for me. I attached you this Makefile. Just
replace the one in the CVS version and then should be able to make
POSTGIS.
What you also will need to do is to edit the file
/usr/src/postgresql-7.3.1-1/src/include/optimizer/cost.h
Change the line
extern double cpu_index_tuple_cost;
into
extern DLLIMPORT double cpu_index_tuple_cost;
Also do not forget to configure PostgreSQL before you make PostGIS.
I configured PostgreSQL like this
./configure --enable-multibyte --with-CXX --prefix=/usr
--sysconfdri=/etc --docdir=/usr/doc/postgresql-$version
Then make postgresql but do not install it
make
Now you should be able to make PostGIS
Good luck
Christian Schuster
Rudolf Schuster AG
Postfach 277
CH - 3000 Bern 11
http://www.rsag.ch
++41 31 348 05 30
--=_alternative 0036D38FC1256CBF_=
Content-Type: text/html; charset="US-ASCII"
<br><font size=2 face="sans-serif">Hi Pablo,</font>
<br>
<br><font size=2 face="sans-serif">I also had the same problem as you.
I asume you tried to make PostGIS 0.7.3. I also was not able to make PostGIS
0.7.3. I then downloaded the CVS version and used a different Makefile
which I found in the forum. The one from the CVS did not work for me. I
attached you this Makefile. Just replace the one in the CVS version and
then should be able to make POSTGIS.</font>
<br>
<br><font size=2 face="sans-serif">What you also will need to do is to
edit the file /usr/src/postgresql-7.3.1-1/src/include/optimizer/cost.h</font>
<br>
<br><font size=2 face="sans-serif">Change the line</font>
<br><font size=2 face="sans-serif"> </font><font size=2 face="Courier New"><b>extern
double cpu_index_tuple_cost;</b></font>
<br><font size=2 face="sans-serif">into</font>
<br><font size=2 face="sans-serif"> </font><font size=2 face="Courier New"><b>extern
DLLIMPORT double cpu_index_tuple_cost;</b></font>
<br>
<br>
<br><font size=2 face="sans-serif">Also do not forget to configure PostgreSQL
before you make PostGIS.</font>
<br>
<br><font size=2 face="sans-serif">I configured PostgreSQL like this</font>
<br>
<br><font size=2 face="sans-serif"> </font><font size=2 face="Courier New"><b>./configure
--enable-multibyte --with-CXX --prefix=/usr --sysconfdri=/etc --docdir=/usr/doc/postgresql-$version</b></font>
<br>
<br><font size=2 face="sans-serif">Then make postgresql but do not install
it</font>
<br>
<br><font size=2 face="sans-serif"> </font><font size=2 face="Courier New"><b>make</b></font>
<br>
<br><font size=2 face="sans-serif">Now you should be able to make PostGIS</font>
<br>
<br>
<br><font size=2 face="sans-serif">Good luck</font>
<br>
<br>
<br><font size=2 face="sans-serif"><br>
Christian Schuster<br>
<br>
Rudolf Schuster AG<br>
Postfach 277<br>
CH - 3000 Bern 11<br>
<br>
http://www.rsag.ch<br>
++41 31 348 05 30</font>
--=_alternative 0036D38FC1256CBF_=--
-------------- next part --------------
_______________________________________________
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