Building Python Bindings stops at Mesh_2

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Building Python Bindings stops at Mesh_2

Leonid
The building process stops at compilation of the Mesh_2 module. Build  and install of the bindings without Mesh_2 module succeeds.

system Ubuntu 9.10
all prerequisites are fulllfilled but boost_python library is replaced
by boost_python-mt

build output:

.../cgal-python-0.9.4-beta1$ python setup.py buildrunning build
running build_py
running build_ext
building 'CGAL/Mesh_2' extension
creating build/temp.linux-i686-2.6
creating build/temp.linux-i686-2.6/bindings
creating build/temp.linux-i686-2.6/bindings/Mesh_2
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DCGAL_DONT_USE_LAZY_KERNEL -I../..
-I/.../cgal-python-0.9.4-beta1 -I/usr/include/python2.6 -c
bindings/Mesh_2/Py_Delaunay_mesher_2.cpp -o
build/temp.linux-i686-2.6/bindings/Mesh_2/Py_Delaunay_mesher_2.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
In file included from
/.../cgal-python-0.9.4-beta1/include/approximate_sqrt.h:39,
                from bindings/Mesh_2/Py_Delaunay_mesher_2.cpp:21:
/usr/include/CGAL/Lazy_exact_nt.h: In member function ‘void
CGAL::Lazy_exact_Min<ET>::update_exact() [with ET = CGAL::Gmpq]’:
bindings/Mesh_2/Py_Delaunay_mesher_2.cpp:122:   instantiated from here
/usr/include/CGAL/Lazy_exact_nt.h:294: error: call of overloaded
‘min(CGAL::Gmpq&, CGAL::Gmpq&)’ is ambiguous
/usr/include/CGAL/utils.h:30: note: candidates are: T CGAL::min(const
T&, const T&) [with T = CGAL::Gmpq]
/.../cgal-python-0.9.4-beta1/include/Kernels.h:77: note:
 const CGAL::Lazy_exact_nt<CGAL::Gmpq>& CGAL::min(const
CGAL::Lazy_exact_nt<CGAL::Gmpq>&, const
CGAL::Lazy_exact_nt<CGAL::Gmpq>&)
/usr/include/c++/4.4/bits/stl_algobase.h:186: note:
const _Tp& std::min(const _Tp&, const _Tp&) [with _Tp = CGAL::Gmpq]
error: command 'gcc' failed with exit status 1


kind regards
Leonid
Reply | Threaded
Open this post in threaded view
|

Re: Building Python Bindings stops at Mesh_2

Sylvain Pion
Administrator
Le 10/08/10 08:16, Leonid a écrit :
>
> The building process stops at compilation of the Mesh_2 module. Build  and
> install of the bindings without Mesh_2 module succeeds.

> /usr/include/CGAL/Lazy_exact_nt.h:294: error: call of overloaded
> ‘min(CGAL::Gmpq&, CGAL::Gmpq&)’ is ambiguous

Can you try to qualify the call to min here, as CGAL::min ?

--
Sylvain

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss

Reply | Threaded
Open this post in threaded view
|

Re: Building Python Bindings stops at Mesh_2

Leonid
>>
>> The building process stops at compilation of the Mesh_2 module. Build  and
>> install of the bindings without Mesh_2 module succeeds.

>> /usr/include/CGAL/Lazy_exact_nt.h:294: error: call of overloaded
>> ‘min(CGAL::Gmpq&, CGAL::Gmpq&)’ is ambiguous

>Can you try to qualify the call to min here, as CGAL::min ?

This made the trick. Thanks a lot. The building process was successful. I will test the module later.