Ticket #224 (closed enhancement: worksforme)
Need to compile the libGeos using Sun Studio12 on Solaris10
| Reported by: | satyajitt | Owned by: | geos-devel@… |
|---|---|---|---|
| Priority: | blocker | Milestone: | GEOS Future |
| Component: | Core | Version: | svn-trunk |
| Severity: | Significant | Keywords: | sun,solaris,sparc |
| Cc: | satyajit.tripathi@…, varun@…, rroliver |
Description (last modified by mloskot) (diff)
We are trying to compile the libGeos using Sun Studio12 (thats the need). Any help with the below would be appreciated. Thanks in advance.
In ConvexHull?.cpp:
1) Line 272,
sort(pts.begin(), pts.end(), RadiallyLessThen(pts[0]));
Name-space std missing
std::sort(pts.begin(), pts.end(), RadiallyLessThen(pts[0]));
2) Line 167,
dest.erase( unique(dest.begin(),dest.end()), dest.end() );
Name-space std missing
dest.erase( std::unique(dest.begin(),dest.end()), dest.end() );
3) After these changes, the following error appears:
CC: Warning: Option -Wall passed to ld, if ld is invoked, ignored otherwise CC: Warning: Option -ansi passed to ld, if ld is invoked, ignored otherwise CC: Warning: Option -pedantic passed to ld, if ld is invoked, ignored otherwise CC: Warning: Option -Wno-long-long passed to ld, if ld is invoked, ignored otherwise "../../source/headers/geos/platform.h", line 59: Warning: #warning "Could not find 64bit integer definition!". "../../source/headers/geos/geom/Coordinate.inl", line 140: Warning: Shift count is too large. "ConvexHull.cpp", line 122: Warning: inputPts hides geos::algorithm::ConvexHull::inputPts. "ConvexHull.cpp", line 161: Warning: inputPts hides geos::algorithm::ConvexHull::inputPts. "ConvexHull.cpp", line 210: Error: Could not find a match for std::vector<const geos::geom::Coordinate*>::assign(__rwstd::__rb_tree<const geos::geom::Coordinate*, const geos::geom::Coordinate*, __rwstd::__ident<const geos::geom::Coordinate*, const geos::geom::Coordinate*>, geos::geom::CoordinateLessThen, std::allocator<const geos::geom::Coordinate*>>::const_iterator, __rwstd::__rb_tree<const geos::geom::Coordinate*, const geos::geom::Coordinate*, __rwstd::__ident<const geos::geom::Coordinate*, const geos::geom::Coordinate*>, geos::geom::CoordinateLessThen, std::allocator<const geos::geom::Coordinate*>>::const_iterator) needed in geos::algorithm::ConvexHull::reduce(std::vector<const geos::geom::Coordinate*>&). 1 Error(s) and 4 Warning(s) detected. *** Error code 1 make: Fatal error: Command failed for target `ConvexHull.lo'
Unable to build on either x86, amd64 or SPARC
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

