Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Point set processing issue
- Date: Tue, 05 May 2015 09:03:51 +0200
- Organization: GeometryFactory
Could you try defining CGAL_USE_PROPERTY_MAPS_API_V1 before compiling
the program?
The API of property maps provided by CGAL have changed recently.
If this compiles, then you need to change the property maps to
work on iterator value types and not on iterator.
Sebastien.
On 04/06/2015 08:35 PM, Rene Israel Rodriguez Beltran wrote:
Hi everyone,
I am new by using CGAL and don't use often C++, but CGAL provides me a
good support in processing point sets. I have been trying to run the
next example threaded in the next mailing list:
http://cgal-discuss.949826.n4.nabble.com/error-in-using-CGAL-grid-simplify-point-set-td955463.html
I create my visual studio solution by using CMake, so I try to build the
solution and get these errors:
1>------ Build started: Project: ZERO_CHECK, Configuration: Debug x64 ------
1>Build started 06/04/2015 08:26:29 p. m..
1>InitializeBuildStatus:
1> Creating "x64\Debug\ZERO_CHECK\ZERO_CHECK.unsuccessfulbuild" because
"AlwaysCreate" was specified.
1>CustomBuild:
1> Checking Build System
1> CMake does not need to re-run because C:/Users/I±igo/Desktop/Nueva
carpeta/Build/CMakeFiles/generate.stamp is up-to-date.
1>FinalizeBuildStatus:
1> Deleting file "x64\Debug\ZERO_CHECK\ZERO_CHECK.unsuccessfulbuild".
1> Touching "x64\Debug\ZERO_CHECK\ZERO_CHECK.lastbuildstate".
1>
1>Build succeeded.
1>
1>Time Elapsed 00:00:00.13
2>------ Build started: Project: pinino3, Configuration: Debug x64 ------
2>Build started 06/04/2015 08:26:29 p. m..
2>PrepareForBuild:
2> Creating directory "C:\Users\Iñigo\Desktop\Nueva carpeta\Build\Debug\".
2>InitializeBuildStatus:
2> Creating "pinino3.dir\Debug\pinino3.unsuccessfulbuild" because
"AlwaysCreate" was specified.
2>CustomBuild:
2> Building Custom Rule C:/Users/Iñigo/Desktop/Nueva carpeta/CMakeLists.txt
2> CMake does not need to re-run because C:\Users\I±igo\Desktop\Nueva
carpeta\Build\CMakeFiles\generate.stamp is up-to-date.
2>ClCompile:
2> pinino3.cpp
2>C:\dev\CGAL-4.5.2\include\CGAL/property_map.h(77): error C2100:
illegal indirection
2> C:\dev\boost_1_57_0\boost/property_map/property_map.hpp(302)
: see reference to function template instantiation 'CGAL::Point_3<R_>
&CGAL::Dereference_property_map<T>::operator []<K>(Iter) const' being
compiled
2> with
2> [
2> R_=CGAL::Epick,
2> T=Point,
2> K=std::pair<Point,Vector>,
2> Iter=std::pair<Point,Vector>
2> ]
2> C:\dev\CGAL-4.5.2\include\CGAL/remove_outliers.h(170) : see
reference to function template instantiation 'Reference
boost::get<CGAL::Dereference_property_map<T>,T&,std::pair<_Ty1,_Ty2>>(const
boost::put_get_helper<Reference,LvaluePropertyMap> &,const K &)' being
compiled
2> with
2> [
2> Reference=Point &,
2> T=Point,
2> _Ty1=Point,
2> _Ty2=Vector,
2> LvaluePropertyMap=CGAL::Dereference_property_map<Point>,
2> K=std::pair<Point,Vector>
2> ]
2> C:\dev\CGAL-4.5.2\include\CGAL/remove_outliers.h(228) : see
reference to function template instantiation 'InputIterator
CGAL::remove_outliers<InputIterator,PointPMap,CGAL::Epick>(InputIterator,InputIterator,PointPMap,unsigned
int,double,const Kernel &)' being compiled
2> with
2> [
2>
InputIterator=std::_Vector_iterator<std::_Vector_val<PointVectorPair,std::allocator<PointVectorPair>>>,
2> PointPMap=CGAL::Dereference_property_map<Point>,
2> Kernel=CGAL::Epick
2> ]
2> ..\pinino3.cpp(54) : see reference to function template
instantiation 'InputIterator
CGAL::remove_outliers<std::_Vector_iterator<_Myvec>,CGAL::Dereference_property_map<T>>(InputIterator,InputIterator,PointPMap,unsigned
int,double)' being compiled
2> with
2> [
2>
InputIterator=std::_Vector_iterator<std::_Vector_val<PointVectorPair,std::allocator<PointVectorPair>>>,
2>
_Myvec=std::_Vector_val<PointVectorPair,std::allocator<PointVectorPair>>,
2> T=Point,
2> PointPMap=CGAL::Dereference_property_map<Point>
2> ]
2>C:\dev\CGAL-4.5.2\include\CGAL/property_map.h(77): warning C4172:
returning address of local variable or temporary
2>
2>Build FAILED.
2>
2>Time Elapsed 00:00:11.76
3>------ Skipped Build: Project: ALL_BUILD, Configuration: Debug x64 ------
3>Project not selected to build for this solution configuration
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 1 skipped ==========
I have been looking for the solution to the problem but I haven't found
it. Do you have any idea?
Thanks in advance for your help and attention.
René Rodríguez.
P.S. I am using Visual Studio 2010, CMake 3.1.3 and CGAL 4.5.2.
- Re: [cgal-discuss] Point set processing issue, Sebastien Loriot (GeometryFactory), 05/05/2015
Archive powered by MHonArc 2.6.18.