Compile PostGIS 2.0 (SVN)
JP Glutting
jpglutting at gmail.com
Sat Aug 27 08:25:49 PDT 2011
Hi All,
I am resurrecting this old thread, because I am having more problems
compiling the latest version of Postgis 2.0.0SVN (revision 7789) on Lion,
and it makes sense to keep all the information together. After configuring
and make-ing as above, I am getting this error:
ld: symbol(s) not found for architecture i386
The context is:
...
"_lwgeom_calculate_gbox_geodetic", referenced from:
_compute_geography_stats in geography_estimate.o
_geography_gist_selectivity in geography_estimate.o
_geography_area in geography_measurement.o
"_gserialized_get_type", referenced from:
_geography_bestsrid in geography_measurement.o
_geography_covers in geography_measurement.o
_geography_perimeter in geography_measurement.o
"_lwgeom_calculate_gbox_cartesian", referenced from:
_geography_bestsrid in geography_measurement.o
"_lwgeom_covers_lwgeom_sphere", referenced from:
_geography_covers in geography_measurement.o
"_gserialized_get_gbox_p", referenced from:
_geography_point_outside in geography_measurement.o
"_gbox_pt_outside", referenced from:
_geography_point_outside in geography_measurement.o
"_lwgeom_area_sphere", referenced from:
_geography_area in geography_measurement.o
"_lwgeom_area_spheroid", referenced from:
_geography_area in geography_measurement.o
"_gserialized_datum_get_gbox_p", referenced from:
_compute_geometry_stats in geometry_gist_selectivity.o
_geometry_gist_sel_2d in geometry_gist_selectivity.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
lipo: can't open input file:
/var/folders/k0/lzz_jzld03d8yg881mnbh7_h0000gp/T//ccgj6uq8.out (No such file
or directory)
make[1]: *** [postgis-2.0.so] Error 1
make: *** [all] Error 1
Searching for this type of error, I saw that this is often because a
framework is missing. I installed the postgis package that is part of
Macports, in case this brought some other dependency I had missed, and tried
to recompile the dependencies (proj4, GDAL, GEOS, etc. as universal, in case
it was an architecture issue). GEOS wouldn't compile as universal.
I asked on the Postgis list (for a previous version that had the same
problem), but got no response. Any hints welcome.
Thanks,
JP
On Wed, Apr 27, 2011 at 11:03 AM, JP Glutting <jpglutting at gmail.com> wrote:
> Hi Vincent,
>
> A question - how would that affect the postgis variant of qgis? I assume
> that is doesn't work with Postgis 2.0 or rasters at the moment.
>
> JP
>
>
> On Tue, Apr 26, 2011 at 7:06 AM, vincent habchi <vince at macports.org>wrote:
>
>> Hi there,
>>
>> not quoting the thread, I think it may be wise to add a temporary port
>> called PostGIS-devel or something approaching. It is the second thread about
>> PostGIS 2.0, and I expect the number of people going to try to compile the
>> SVN version to increase, given the new capacities (especially raster file
>> handling).
>>
>> Would it be acceptable to create a separate port, and remove it when the
>> final 2.0 version will be out?
>>
>> Vincent
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20110827/e6d9e241/attachment.html>
More information about the macports-users
mailing list