Problem with cgal-bindings install.

228 views
Skip to first unread message

Willie Maddox

unread,
Sep 4, 2013, 4:58:13 PM9/4/13
to cgal-bindi...@googlegroups.com
Hello,

I have successfully built all the cgal-bindings for python except for one -- Point_set_processing_3.

Here is the error when running make:

[maddoxw@T3600-Ubuntu-Phys ~/src/cgal-bindings/build/CGAL-4.2_release]$ make
[ 40%] Built target CGAL_Kernel_cpp
[ 43%] Built target _CGAL_Kernel
[ 45%] Built target CGAL_Triangulation_3_cpp
[ 48%] Built target _CGAL_Triangulation_3
[ 50%] Built target CGAL_Triangulation_2_cpp
[ 53%] Built target _CGAL_Triangulation_2
[ 56%] Built target _CGAL_Polyhedron_3
[ 58%] Built target CGAL_Alpha_shape_2_cpp
[ 61%] Built target _CGAL_Alpha_shape_2
[ 65%] Built target _CGAL_Spatial_searching
[ 66%] Built target CGAL_AABB_tree_cpp
[ 70%] Built target _CGAL_AABB_tree
[ 71%] Built target CGAL_Surface_mesher_cpp
[ 75%] Built target _CGAL_Surface_mesher
[ 76%] Built target CGAL_Mesh_3_cpp
[ 80%] Built target _CGAL_Mesh_3
[ 83%] Built target _CGAL_Mesh_2
[ 86%] Built target _CGAL_Interpolation
[ 90%] Built target _CGAL_Convex_hull_2
[ 93%] Built target _CGAL_Voronoi_diagram_2
[ 96%] Built target _CGAL_HalfedgeDS
[ 98%] Building CXX object SWIG_CGAL/Point_set_processing_3/CMakeFiles/_CGAL_Point_set_processing_3.dir/CGAL_Point_set_processing_3PYTHON_wrap.cxx.o
In file included from /home/maddoxw/src/cgal-bindings/build/CGAL-4.2_release/SWIG_CGAL/Point_set_processing_3/CGAL_Point_set_processing_3PYTHON_wrap.cxx:3386:
/home/maddoxw/src/cgal-bindings/SWIG_CGAL/Point_set_processing_3/functions.h:193: error: using ‘typename’ outside of template
make[2]: *** [SWIG_CGAL/Point_set_processing_3/CMakeFiles/_CGAL_Point_set_processing_3.dir/CGAL_Point_set_processing_3PYTHON_wrap.cxx.o] Error 1
make[1]: *** [SWIG_CGAL/Point_set_processing_3/CMakeFiles/_CGAL_Point_set_processing_3.dir/all] Error 2
make: *** [all] Error 2

also of help may be,

[maddoxw@T3600-Ubuntu-Phys ~/src/cgal-bindings/build/CGAL-4.2_release]$ gcc --version
gcc (Ubuntu/Linaro 4.4.7-2ubuntu1) 4.4.7
[maddoxw@T3600-Ubuntu-Phys ~/src/cgal-bindings/build/CGAL-4.2_release]$ swig -version
SWIG Version 2.0.7
Compiled with g++ [x86_64-unknown-linux-gnu]
Configured options: +pcre

Suggestions?

Thanks,

-Will


Sebastien Loriot (GeometryFactory)

unread,
Sep 6, 2013, 7:12:56 AM9/6/13
to cgal-bindi...@googlegroups.com
> error: using �typename� outside of template
> make[2]: ***
> [SWIG_CGAL/Point_set_processing_3/CMakeFiles/_CGAL_Point_set_processing_3.dir/CGAL_Point_set_processing_3PYTHON_wrap.cxx.o]
> Error 1
> make[1]: ***
> [SWIG_CGAL/Point_set_processing_3/CMakeFiles/_CGAL_Point_set_processing_3.dir/all]
> Error 2
> make: *** [all] Error 2
>
> also of help may be,
>
> [maddoxw@T3600-Ubuntu-Phys ~/src/cgal-bindings/build/CGAL-4.2_release]$
> gcc --version
> gcc (Ubuntu/Linaro 4.4.7-2ubuntu1) 4.4.7
> [maddoxw@T3600-Ubuntu-Phys ~/src/cgal-bindings/build/CGAL-4.2_release]$
> swig -version
> SWIG Version 2.0.7
> Compiled with g++ [x86_64-unknown-linux-gnu]
> Configured options: +pcre
>
> Suggestions?
>
git pull :)

Sebastien.

> Thanks,
>
> -Will
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "CGAL Bindings discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to cgal-bindings-di...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Willie Maddox

unread,
Sep 9, 2013, 7:18:50 PM9/9/13
to cgal-bindi...@googlegroups.com
Well, that was an easy fix. My make ran without a hitch. Thanks!!!

Yasaman shm

unread,
Jun 29, 2014, 2:35:11 AM6/29/14
to cgal-bindi...@googlegroups.com

Hi,

I'm trying to install CGAl-bindings too and have the same error. I just don't get how and where I can use the git pull?

Thank you
Yasaman

Sebastien Loriot (GeometryFactory)

unread,
Jul 3, 2014, 3:06:17 PM7/3/14
to cgal-bindi...@googlegroups.com
On 06/29/2014 08:35 AM, Yasaman shm wrote:
>
> Hi,
>
> I'm trying to install CGAl-bindings too and have the same error. I just
> don't get how and where I can use the git pull?

"git pull" means take the last version from git.
Could you tell me more about your system, what you tried and what is not
working?

Sebastien.
> --
> You received this message because you are subscribed to the Google
> Groups "CGAL Bindings discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to cgal-bindings-di...@googlegroups.com
> <mailto:cgal-bindings-di...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

Yasaman shm

unread,
Jul 5, 2014, 7:27:51 PM7/5/14
to cgal-bindi...@googlegroups.com
Hi,

Yes, Thanks,
I'm using Ubuntu, and I used these codes:
I need to use the C++ codes on python.

git clone https://code.google.com/p/cgal-bindings
cd cgal-bindings
mkdir build/CGAL-3.9_release -p
cd build/CGAL-3.9_release
cmake -DCGAL_DIR=/usr/lib/CGAL -DBUILD_PYTHON=ON -DBUILD_PYTHON=OFF -DPYTHON_OUTDIR_PREFIX=../../examples/python ../..
make -j 4

but for the last one I get this:

/usr/include/CGAL/Regular_triangulation_2.h:638:3: note: template argument deduction/substitution failed:
In file included from /home/yasi/cgal-bindings/SWIG_CGAL/Interpolation/typedefs.h:10:0,
from /home/yasi/cgal-bindings/build/CGAL-3.9_release/SWIG_CGAL/Interpolation/CGAL_InterpolationPYTHON_wrap.cxx:3274:
/usr/include/CGAL/natural_neighbor_coordinates_2.h:158:3: note: candidate expects 3 arguments, 4 provided
dt.get_boundary_of_conflicts(p, std::back_inserter(hole), fh, false);
^
make[2]: *** [SWIG_CGAL/Interpolation/CMakeFiles/_CGAL_Interpolation.dir/CGAL_InterpolationPYTHON_wrap.cxx.o] Error 1
make[1]: *** [SWIG_CGAL/Interpolation/CMakeFiles/_CGAL_Interpolation.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
virtual memory exhausted: Cannot allocate memory
make[2]: *** [SWIG_CGAL/Mesh_3/CMakeFiles/_CGAL_Mesh_3.dir/CGAL_Mesh_3PYTHON_wrap.cxx.o] Error 1
make[1]: *** [SWIG_CGAL/Mesh_3/CMakeFiles/_CGAL_Mesh_3.dir/all] Error 2

make: *** [all] Error 2


This is actually end of the messages, there is more.
I understand that git pull means get the last version but I'm not sure how I can use it here.

Thank you
Yasaman

Sebastien Loriot (GeometryFactory)

unread,
Jul 7, 2014, 1:48:02 AM7/7/14
to cgal-bindi...@googlegroups.com
On 07/06/2014 01:27 AM, Yasaman shm wrote:
> Hi,
>
> Yes, Thanks,
> I'm using Ubuntu, and I used these codes:
> I need to use the C++ codes on python.
>
> git clone https://code.google.com/p/cgal-bindings
> cd cgal-bindings
> mkdir build/CGAL-3.9_release-p
> cd build/CGAL-3.9_release
> cmake-DCGAL_DIR=/usr/lib/CGAL-DBUILD_PYTHON=ON-DBUILD_PYTHON=OFF -DPYTHON_OUTDIR_PREFIX=../../examples/python../..
> make-j4

What version of CGAL are you using?

>
> but for the last one I get this:
>
> /usr/include/CGAL/Regular_triangulation_2.h:638:3: note: template argument deduction/substitution failed:
> In file included from /home/yasi/cgal-bindings/SWIG_CGAL/Interpolation/typedefs.h:10:0,
> from /home/yasi/cgal-bindings/build/CGAL-3.9_release/SWIG_CGAL/Interpolation/CGAL_InterpolationPYTHON_wrap.cxx:3274:
> /usr/include/CGAL/natural_neighbor_coordinates_2.h:158:3: note: candidate expects 3 arguments, 4 provided
> dt.get_boundary_of_conflicts(p, std::back_inserter(hole), fh, false);
> ^
> make[2]: *** [SWIG_CGAL/Interpolation/CMakeFiles/_CGAL_Interpolation.dir/CGAL_InterpolationPYTHON_wrap.cxx.o] Error 1
> make[1]: *** [SWIG_CGAL/Interpolation/CMakeFiles/_CGAL_Interpolation.dir/all] Error 2
> make[1]: *** Waiting for unfinished jobs....
> virtual memory exhausted: Cannot allocate memory
> make[2]: *** [SWIG_CGAL/Mesh_3/CMakeFiles/_CGAL_Mesh_3.dir/CGAL_Mesh_3PYTHON_wrap.cxx.o] Error 1
> make[1]: *** [SWIG_CGAL/Mesh_3/CMakeFiles/_CGAL_Mesh_3.dir/all] Error 2
> make: *** [all] Error 2
>
> This is actually end of the messages, there is more.
> I understand that git pull means get the last version but I'm not sure how I can use it here.
>

Actually the first message is the most important.
> > an email to cgal-bindings-di...@googlegroups.com
> <javascript:>
> > <mailto:cgal-bindings-di...@googlegroups.com
> <javascript:>>.
> > For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "CGAL Bindings discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to cgal-bindings-di...@googlegroups.com
> <mailto:cgal-bindings-di...@googlegroups.com>.

Yasaman shm

unread,
Jul 13, 2014, 7:35:41 PM7/13/14
to cgal-bindi...@googlegroups.com
Hi,

OK, I'm working on VMWare, My Ubuntu version is 14.04. My CGAL version in 4.2 and these are the commands I used again on a new machine:

git clone https://code.google.com/p/cgal-bindings

cd cgal-bindings

mkdir build/CGAL-4.2_release -p

cd build/CGAL-4.2_release

cmake -DCGAL_DIR=/usr/lib/CGAL -DBUILD_PYTHON=ON -DBUILD_JAVA=OFF -DJAVA_OUTDIR_PREFIX=../../examples/java ../.. -DPYTHON_OUTDIR_PREFIX=../../examples/python ../..

make -j 4


The interesting part for me is that it goes through the make part partially then it get stuck at some point. Like for instance if I use make it will be stuck at %66 but when I'm using make -j 2 it goes up to %96 but not feather. I've used make -j 4 or even higher but no difference in the result. can it be because I'm using VMware? the error that it gives me is the same error in both situations. Like this:

[ 96%] Built target _CGAL_Surface_mesher
Built target _CGAL_Voronoi_diagram_2
Built target _CGAL_AABB_tree
Built target _CGAL_Triangulation_2
Building CXX object SWIG_CGAL/Alpha_shape_2/CMakeFiles/_CGAL_Alpha_shape_2.dir/CGAL_Alpha_shape_2PYTHON_wrap.cxx.o
Building CXX object SWIG_CGAL/Mesh_3/CMakeFiles/_CGAL_Mesh_3.dir/CGAL_Mesh_3PYTHON_wrap.cxx.o
In file included from /home/yasi/cgal-bindings/SWIG_CGAL/Alpha_shape_2/typedefs.h:11:0,
                 from /home/yasi/cgal-bindings/SWIG_CGAL/Alpha_shape_2/all_includes.h:10,
                 from /home/yasi/cgal-bindings/build/CGAL-4.2_release/SWIG_CGAL/Alpha_shape_2/CGAL_Alpha_shape_2PYTHON_wrap.cxx:3137:
/home/yasi/cgal-bindings/SWIG_CGAL/Triangulation_2/Triangulation_2.h: In instantiation of ‘Triangulation_2_wrapper<Triangulation, Point, Vertex_handle, Face_handle, Weighted_tag>::Triangulation_2_wrapper(const cpp_base&) [with Triangulation = CGAL::Alpha_shape_2<CGAL::Delaunay_triangulation_2<CGAL::Epick, CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Epick>, CGAL::Alpha_shape_face_base_2<CGAL::Epick, CGAL::Triangulation_face_base_2<CGAL::Epick> >
.
.
.
.
/home/yasi/cgal-bindings/build/CGAL-4.2_release/SWIG_CGAL/Alpha_shape_2/CGAL_Alpha_shape_2PYTHON_wrap.cxx:35074:227:   required from here
/usr/include/CGAL/Alpha_shape_2.h:745:3: error: ‘CGAL::Alpha_shape_2<Dt, ExactAlphaComparisonTag>::Alpha_shape_2(const CGAL::Alpha_shape_2<Dt, ExactAlphaComparisonTag>&) [with Dt = CGAL::Regular_triangulation_2<CGAL::Weighted_alpha_shape_euclidean_traits_2<CGAL::Epick>, CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Weighted_alpha_shape_euclidean_traits_2<CGAL::Epick>, CGAL::Regular_triangulation_vertex_base_2<CGAL::Weighted_alpha_shape_euclidean_traits_2<CGAL::Epick> > >, CGAL::Alpha_shape_face_base_2<CGAL::Weighted_alpha_shape_euclidean_traits_2<CGAL::Epick>, CGAL::Regular_triangulation_face_base_2<CGAL::Weighted_alpha_shape_euclidean_traits_2<CGAL::Epick> > > > >; ExactAlphaComparisonTag = CGAL::Boolean_tag<false>]’ is private
   Alpha_shape_2(const Alpha_shape_2& A);
   ^
In file included from /home/yasi/cgal-bindings/SWIG_CGAL/Triangulation_2/Delaunay_triangulation_2.h:11:0,
                 from /home/yasi/cgal-bindings/SWIG_CGAL/Alpha_shape_2/Alpha_shape_2.h:11,
                 from /home/yasi/cgal-bindings/SWIG_CGAL/Alpha_shape_2/all_includes.h:11,
                 from /home/yasi/cgal-bindings/build/CGAL-4.2_release/SWIG_CGAL/Alpha_shape_2/CGAL_Alpha_shape_2PYTHON_wrap.cxx:3137:
/home/yasi/cgal-bindings/SWIG_CGAL/Triangulation_2/Triangulation_2.h:84:77: error: within this context
   Triangulation_2_wrapper(const cpp_base& base):data_sptr(new cpp_base(base)){}
                                                                             ^
make[2]: *** [SWIG_CGAL/Alpha_shape_2/CMakeFiles/_CGAL_Alpha_shape_2.dir/CGAL_Alpha_shape_2PYTHON_wrap.cxx.o] Error 1
make[1]: *** [SWIG_CGAL/Alpha_shape_2/CMakeFiles/_CGAL_Alpha_shape_2.dir/all] Error 2

make[1]: *** Waiting for unfinished jobs....
virtual memory exhausted: Cannot allocate memory
make[2]: *** [SWIG_CGAL/Mesh_3/CMakeFiles/_CGAL_Mesh_3.dir/CGAL_Mesh_3PYTHON_wrap.cxx.o] Error 1
make[1]: *** [SWIG_CGAL/Mesh_3/CMakeFiles/_CGAL_Mesh_3.dir/all] Error 2

make: *** [all] Error 2


Thank you
Yasaman





On Wednesday, September 4, 2013 1:58:13 PM UTC-7, Willie Maddox wrote:

Sebastien Loriot (GeometryFactory)

unread,
Jul 15, 2014, 2:34:01 AM7/15/14
to cgal-bindi...@googlegroups.com
Could you try make 2>&1 | tee log and post log here?

Thanks,

Sebastien.

On 07/14/2014 01:35 AM, Yasaman shm wrote:
> Hi,
>
> OK, I'm working on VMWare, My Ubuntu version is 14.04. My CGAL version
> in 4.2 and these are the commands I used again on a new machine:
>
> git clone https://code.google.com/p/cgal-bindings
>
> cd cgal-bindings
>
> mkdir build/CGAL-4.2_release -p
>
> cd build/CGAL-4.2_release
>
> cmake -DCGAL_DIR=/usr/lib/CGAL -DBUILD_PYTHON=ON -DBUILD_JAVA=OFF
> -DJAVA_OUTDIR_PREFIX=../../examples/java ../..
> -DPYTHON_OUTDIR_PREFIX=../../examples/python ../..
>
> make -j 4
>
> The interesting part for me is that it goes through the make part
> partially then it get stuck at some point. Like for instance if I
> usemake it will be stuck at%66 but when I'm using make -j 2 it goes up

Sebastien Loriot (GeometryFactory)

unread,
Jul 15, 2014, 3:03:33 AM7/15/14
to cgal-bindi...@googlegroups.com
937fb76 should fix it.
Try to 'git pull', touch 'SWIG_CGAL/Alpha_shape_2/CGAL_Alpha_shape_2.i''
(to force regeneration of package) and then 'make'

Sebastien.

Yasaman shm

unread,
Jul 19, 2014, 4:13:08 PM7/19/14
to cgal-bindi...@googlegroups.com
Hi,

Thank you very much. It worked.
But I'm still not able to make %100. On %98 I get the memory exhausted error. Even though I increased the memory up to 7.8. I even used ulimit -v unlimited but no luck.
but It pass the %66 or %96 which I was stuck. Thank you.

[ 98%] Building CXX object SWIG_CGAL/Mesh_3/CMakeFiles/_CGAL_Mesh_3.dir/CGAL_Mesh_3PYTHON_wrap.cxx.o

virtual memory exhausted: Cannot allocate memory
make[2]: *** [SWIG_CGAL/Mesh_3/CMakeFiles/_CGAL_Mesh_3.dir/CGAL_Mesh_3PYTHON_wrap.cxx.o] Error 1
make[1]: *** [SWIG_CGAL/Mesh_3/CMakeFiles/_CGAL_Mesh_3.dir/all] Error 2
make: *** [all] Error 2



Thank you
Yasaman

Sebastien Loriot (GeometryFactory)

unread,
Jul 28, 2014, 3:28:21 AM7/28/14
to cgal-bindi...@googlegroups.com
On 07/19/2014 10:13 PM, Yasaman shm wrote:
> Hi,
>
> Thank you very much. It worked.
> But I'm still not able to make %100. On %98 I get the memory exhausted
> error. Even though I increased the memory up to 7.8. I even used ulimit
> -v unlimited but no luck.
> but It pass the %66 or %96 which I was stuck. Thank you.
>

You said you're running in vmware, how much memory is allocated to the VM?

Sebastien
> >> an email to cgal-bindings-di...@googlegroups.com
> <javascript:>
> >> <mailto:cgal-bindings-di...@googlegroups.com
> <javascript:>>.
> >> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
> >
>
> --
> You received this message because you are subscribed to the Google
> Groups "CGAL Bindings discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to cgal-bindings-di...@googlegroups.com
> <mailto:cgal-bindings-di...@googlegroups.com>.

Yasaman shm

unread,
Jul 29, 2014, 3:00:21 AM7/29/14
to cgal-bindi...@googlegroups.com
Yes it's a virtual machine


          total       used       free     shared    buffers     cached
Mem:       7066820    5363752    1703068       4408      23032    4716620
-/+ buffers/cache:     624100    6442720
Swap:     21378028          0   21378028

But still:


virtual memory exhausted: Cannot allocate memory
make[2]: *** [SWIG_CGAL/Mesh_3/CMakeFiles/_CGAL_Mesh_3.dir/CGAL_Mesh_3PYTHON_wrap.cxx.o] Error 1
make[1]: *** [SWIG_CGAL/Mesh_3/CMakeFiles/_CGAL_Mesh_3.dir/all] Error 2
make: *** [all] Error 2



Thank you
Yasaman
>      >> an email to cgal-bindings-discuss+unsub...@googlegroups.com
>     <javascript:>
>      >> <mailto:cgal-bindings-discuss+unsub...@googlegroups.com
>     <javascript:>>.
>      >> For more options, visit https://groups.google.com/d/optout
>     <https://groups.google.com/d/optout>.
>      >
>
> --
> You received this message because you are subscribed to the Google
> Groups "CGAL Bindings discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send

Sebastien Loriot (GeometryFactory)

unread,
Jul 29, 2014, 3:44:17 AM7/29/14
to cgal-bindi...@googlegroups.com
Strange.

I tried:
> ulimit -v 4000000
> make _CGAL_Mesh_3

and it could compile without any problem.
I tried
> ulimit -v 1000000
and I got the same error message you had.

Maybe you're using an old compiler or you have another
process consuming memory (parallel build?)

Sebastien
> cgal-bindings-di...@googlegroups.com <javascript:>
> > <javascript:>
> > >>
> <mailto:cgal-bindings-di...@googlegroups.com
> <javascript:>
> > <javascript:>>.
> > >> For more options, visit
> https://groups.google.com/d/optout <https://groups.google.com/d/optout>
> > <https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>>.
> > >
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "CGAL Bindings discuss" group.
> > To unsubscribe from this group and stop receiving emails from it,
> send
> > an email to cgal-bindings-di...@googlegroups.com
> <javascript:>
> > <mailto:cgal-bindings-di...@googlegroups.com
> <javascript:>>.
> > For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "CGAL Bindings discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to cgal-bindings-di...@googlegroups.com
> <mailto:cgal-bindings-di...@googlegroups.com>.

Yasaman shm

unread,
Jul 30, 2014, 1:18:20 AM7/30/14
to cgal-bindi...@googlegroups.com

Hi,

I just did > Sudo apt-get update and upgrade, if this is what you mean. still the same error. Also I couldn't even run the

> ulimit -v 4000000
> make _CGAL_Mesh_3

I closed everything else even Firefox and also on my host computer just the VMware.

Thank you
Yasaman
>     cgal-bindings-discuss+unsub...@googlegroups.com <javascript:>
>      >     <javascript:>
>      >      >>
>     <mailto:cgal-bindings-discuss+unsub...@googlegroups.com
>     <javascript:>
>      >     <javascript:>>.
>      >      >> For more options, visit
>     https://groups.google.com/d/optout <https://groups.google.com/d/optout>
>      >     <https://groups.google.com/d/optout
>     <https://groups.google.com/d/optout>>.
>      >      >
>      >
>      > --
>      > You received this message because you are subscribed to the Google
>      > Groups "CGAL Bindings discuss" group.
>      > To unsubscribe from this group and stop receiving emails from it,
>     send
>      > an email to cgal-bindings-discuss+unsub...@googlegroups.com
>     <javascript:>
>      > <mailto:cgal-bindings-discuss+unsub...@googlegroups.com
>     <javascript:>>.
>      > For more options, visit https://groups.google.com/d/optout
>     <https://groups.google.com/d/optout>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "CGAL Bindings discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send

Vincent Rivola

unread,
Sep 9, 2014, 12:00:23 PM9/9/14
to cgal-bindi...@googlegroups.com
Dear All,

I reply in this thread because I have a similar compilation problem.
I am trying to compile the cgal-binding with CGal 4.5.
and I get the following error message:

[ 98%] Built target CGAL_Mesh_3
In file included from /home/vincent/cgal-bindings/SWIG_CGAL/Point_set_processing_3/CGAL_Point_set_processing_3JAVA_wrap.cxx:281:0:
/home/vincent/cgal-bindings/SWIG_CGAL/Point_set_processing_3/functions.h: In function ‘void jet_smooth_point_set(Wrapper_iterator_helper<Point_3>::input, unsigned int, unsigned int, unsigned int)’:
/home/vincent/cgal-bindings/SWIG_CGAL/Point_set_processing_3/functions.h:111:102: erreur: no matching function for call to ‘jet_smooth_point_set(std::vector<CGAL::Point_3<CGAL::Epick> >::iterator, std::vector<CGAL::Point_3<CGAL::Epick> >::iterator, unsigned int&, unsigned int&, unsigned int&)’
/home/vincent/cgal-bindings/SWIG_CGAL/Point_set_processing_3/functions.h:111:102: note: candidate is:
/usr/local/include/CGAL/jet_smooth_point_set.h:136:1: note: template<class InputIterator, class PointPMap, class Kernel, class SvdTraits> void CGAL::jet_smooth_point_set(InputIterator, InputIterator, PointPMap, unsigned int, const Kernel&, unsigned int, unsigned int)
/home/vincent/cgal-bindings/SWIG_CGAL/Point_set_processing_3/functions.h: In function ‘void jet_estimate_normals(Wrapper_iterator_helper<Point_3>::input, Wrapper_iterator_helper<Vector_3>::output, unsigned int, unsigned int)’:
/home/vincent/cgal-bindings/SWIG_CGAL/Point_set_processing_3/functions.h:127:101: erreur: no matching function for call to ‘jet_estimate_normals(std::vector<std::pair<CGAL::Point_3<CGAL::Epick>, CGAL::Vector_3<CGAL::Epick> > >::iterator, std::vector<std::pair<CGAL::Point_3<CGAL::Epick>, CGAL::Vector_3<CGAL::Epick> > >::iterator, CGAL::First_of_pair_property_map<std::pair<CGAL::Point_3<CGAL::Epick>, CGAL::Vector_3<CGAL::Epick> > >&, CGAL::Second_of_pair_property_map<std::pair<CGAL::Point_3<CGAL::Epick>, CGAL::Vector_3<CGAL::Epick> > >&, unsigned int&, unsigned int&)’
/home/vincent/cgal-bindings/SWIG_CGAL/Point_set_processing_3/functions.h:127:101: note: candidate is:
/usr/local/include/CGAL/jet_estimate_normals.h:138:1: note: template<class ForwardIterator, class PointPMap, class NormalPMap, class Kernel, class SvdTraits> void CGAL::jet_estimate_normals(ForwardIterator, ForwardIterator, PointPMap, NormalPMap, unsigned int, const Kernel&, unsigned int)
make[2]: *** [SWIG_CGAL/Point_set_processing_3/CMakeFiles/CGAL_Point_set_processing_3.dir/CGAL_Point_set_processing_3JAVA_wrap.cxx.o] Erreur 1
make[1]: *** [SWIG_CGAL/Point_set_processing_3/CMakeFiles/CGAL_Point_set_processing_3.dir/all] Erreur 2

Could it be that the way to call functions jet_smooth_point_set and jet_estimate_normals() changed in version 4.5?
I tried to have a look at the code in CGAL, and there are multiple implementations of this functions.
One of them is similar to the one called from cgal-binding (at line 251) but apparently cgal-binding wants to use the implementation of line 136 which is recquiring more attributes.

Does someone has a solution?
Reply all
Reply to author
Forward
0 new messages