What steps will reproduce the problem?
1. I have CGAL 4.0.2 and Swig 2.0.8 installed using Homebrew. OS X version
10.8.2.
2. Using master branch of cgal-bindings (1a97eaa664b9).
3. cmake -DCGAL_DIR=/usr/local/Cellar/cgal/4.0.2/lib/CGAL/ -DBUILD_PYTHON=ON
4. make
What is the expected output? What do you see instead?
When building I get his error (and some warnings):
In file included from
/Users/teemu/Code/cgal-bindings/SWIG_CGAL/Alpha_shape_2/CGAL_Alpha_shape_2JAVA_w
rap.cxx:283:
In file included from
/Users/teemu/Code/cgal-bindings/SWIG_CGAL/Alpha_shape_2/all_includes.h:10:
In file included from
/Users/teemu/Code/cgal-bindings/SWIG_CGAL/Alpha_shape_2/typedefs.h:11:
/usr/local/Cellar/cgal/4.0.2/include/CGAL/Alpha_shape_2.h:594:27: error: use of
undeclared identifier 'locate'
Face_handle pFace = locate(p, type, i);
^
this->
/usr/local/Cellar/cgal/4.0.2/include/CGAL/Alpha_shape_2.h:584:14: note: in
instantiation of member function
'CGAL::Alpha_shape_2<CGAL::Delaunay_triangulation_2<CGAL::Epick,
CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Epick, CGAL::Default, CGAL::Boolean_tag<false>>, CGAL::Triangulation_face_base_with_info_2<JavaData, CGAL::Epick,
CGAL::Alpha_shape_face_base_2<CGAL::Epick, CGAL::Triangulation_face_base_2<CGAL::Epick, CGAL::Triangulation_ds_face_base_2<void>>, CGAL::Boolean_tag<false>>>>>, CGAL::Boolean_tag<false> >::classify'
requested here
return classify( p, get_alpha());
^
/Users/teemu/Code/cgal-bindings/SWIG_CGAL/Alpha_shape_2/Alpha_shape_2.h:88:48:
note: in instantiation of member function
'CGAL::Alpha_shape_2<CGAL::Delaunay_triangulation_2<CGAL::Epick,
CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Epick, CGAL::Default, CGAL::Boolean_tag<false>>, CGAL::Triangulation_face_base_with_info_2<JavaData, CGAL::Epick,
CGAL::Alpha_shape_face_base_2<CGAL::Epick, CGAL::Triangulation_face_base_2<CGAL::Epick, CGAL::Triangulation_ds_face_base_2<void>>, CGAL::Boolean_tag<false>>>>>, CGAL::Boolean_tag<false> >::classify'
requested here
SWIG_CGAL_FORWARD_CALL_1(Classification_type,classify,Point)
^
/Users/teemu/Code/cgal-bindings/SWIG_CGAL/Common/Macros.h:189:43: note:
expanded from macro 'SWIG_CGAL_FORWARD_CALL_1'
SWIG_CGAL_FORWARD_CALL_SCOPE_1(RET,NAME,NAME,IN_TYPE)
^
/Users/teemu/Code/cgal-bindings/SWIG_CGAL/Common/Macros.h:185:57: note:
expanded from macro 'SWIG_CGAL_FORWARD_CALL_SCOPE_1'
return RET(SWIG_CGAL_extract_data(this->get_data()).INAME(internal::Converter<IN_TYPE>::convert(c)));\
^
/Users/teemu/Code/cgal-bindings/SWIG_CGAL/Alpha_shape_2/CGAL_Alpha_shape_2JAVA_w
rap.cxx:8320:45: note: in instantiation of member function
'Alpha_shape_2_wrapper<CGAL::Alpha_shape_2<CGAL::Delaunay_triangulation_2<CGAL::Epick, CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Epick, CGAL::Default,
CGAL::Boolean_tag<false>>, CGAL::Triangulation_face_base_with_info_2<JavaData, CGAL::Epick, CGAL::Alpha_shape_face_base_2<CGAL::Epick, CGAL::Triangulation_face_base_2<CGAL::Epick,
CGAL::Triangulation_ds_face_base_2<void>>, CGAL::Boolean_tag<false>>>>>, CGAL::Boolean_tag<false>>, Point_2,
SWIG_Triangulation_2::CGAL_Vertex_handle<CGAL::Alpha_shape_2<CGAL::Delaunay_triangulation_2<CGAL::Epick, CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Epick,
CGAL::Default, CGAL::Boolean_tag<false>>, CGAL::Triangulation_face_base_with_info_2<JavaData, CGAL::Epick, CGAL::Alpha_shape_face_base_2<CGAL::Epick, CGAL::Triangulation_face_base_2<CGAL::Epick,
CGAL::Triangulation_ds_face_base_2<void>>, CGAL::Boolean_tag<false>>>>>, CGAL::Boolean_tag<false>>, Point_2>,
SWIG_Triangulation_2::CGAL_Face_handle<CGAL::Alpha_shape_2<CGAL::Delaunay_triangulation_2<CGAL::Epick, CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Epick,
CGAL::Default, CGAL::Boolean_tag<false>>, CGAL::Triangulation_face_base_with_info_2<JavaData, CGAL::Epick, CGAL::Alpha_shape_face_base_2<CGAL::Epick, CGAL::Triangulation_face_base_2<CGAL::Epick,
CGAL::Triangulation_ds_face_base_2<void>>, CGAL::Boolean_tag<false>>>>>, CGAL::Boolean_tag<false>>, Point_2>, CGAL::Boolean_tag<false>,
Delaunay_triangulation_2_wrapper<CGAL::Alpha_shape_2<CGAL::Delaunay_triangulation_2<CGAL::Epick, CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Epick, CGAL::Default,
CGAL::Boolean_tag<false>>, CGAL::Triangulation_face_base_with_info_2<JavaData, CGAL::Epick, CGAL::Alpha_shape_face_base_2<CGAL::Epick, CGAL::Triangulation_face_base_2<CGAL::Epick,
CGAL::Triangulation_ds_face_base_2<void>>, CGAL::Boolean_tag<false>>>>>, CGAL::Boolean_tag<false>>,
SWIG_Triangulation_2::CGAL_Vertex_handle<CGAL::Alpha_shape_2<CGAL::Delaunay_triangulation_2<CGAL::Epick, CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Epick,
CGAL::Default, CGAL::Boolean_tag<false>>, CGAL::Triangulation_face_base_with_info_2<JavaData, CGAL::Epick, CGAL::Alpha_shape_face_base_2<CGAL::Epick, CGAL::Triangulation_face_base_2<CGAL::Epick,
CGAL::Triangulation_ds_face_base_2<void>>, CGAL::Boolean_tag<false>>>>>, CGAL::Boolean_tag<false>>, Point_2>,
SWIG_Triangulation_2::CGAL_Face_handle<CGAL::Alpha_shape_2<CGAL::Delaunay_triangulation_2<CGAL::Epick, CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Epick,
CGAL::Default, CGAL::Boolean_tag<false>>, CGAL::Triangulation_face_base_with_info_2<JavaData, CGAL::Epick, CGAL::Alpha_shape_face_base_2<CGAL::Epick, CGAL::Triangulation_face_base_2<CGAL::Epick,
CGAL::Triangulation_ds_face_base_2<void>>, CGAL::Boolean_tag<false>>>>>, CGAL::Boolean_tag<false>>, Point_2>> >::classify' requested here
result = (Classification_type)(arg1)->classify((Point_2 const &)*arg2);
^
/usr/local/Cellar/cgal/4.0.2/include/CGAL/Triangulation_2.h:410:3: note: must
qualify identifier to find this declaration in dependent base class
locate(const Point & p,
^
/usr/local/Cellar/cgal/4.0.2/include/CGAL/Triangulation_2.h:422:3: note: must
qualify identifier to find this declaration in dependent base class
locate(const Point & p, Face_handle start = Face_handle()) const
^
18 warnings and 1 error generated.
make[2]: ***
[SWIG_CGAL/Alpha_shape_2/CMakeFiles/CGAL_Alpha_shape_2.dir/CGAL_Alpha_shape_2JAV
A_wrap.cxx.o] Error 1
make[1]: *** [SWIG_CGAL/Alpha_shape_2/CMakeFiles/CGAL_Alpha_shape_2.dir/all]
Error 2
make: *** [all] Error 2
What version of the product are you using? On what operating system?
Cmake output looks like this:
-- The C compiler identification is GNU 4.2.1
-- The CXX compiler identification is Clang 4.0.0
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found SWIG: /usr/local/bin/swig (found version "2.0.8")
-- Build type: Release
-- USING CXXFLAGS = ' -O3 -DNDEBUG'
-- USING EXEFLAGS = ' '
-- Targetting Unix Makefiles
-- Using /usr/bin/c++ compiler.
-- DARWIN_VERSION=12
-- Mac Leopard detected
-- BUILD_Ruby is set to OFF: no CGAL-bindings for Ruby will be generated.
-- Found PythonLibs: /usr/local/lib/libpython2.7.dylib (found version "2.7.2")
-- Found JNI: -framework JavaVM
-- Found Python libs.
-- CGAL-SWIG Python files and libraries will be written in
/Users/teemu/Code/cgal-bindings/build-python/CGAL.
-- Found JNI: JNI include dirs
/System/Library/Frameworks/JavaVM.framework/Headers
/System/Library/Frameworks/JavaVM.framework/Headers.
-- CGAL-SWIG Java libraries and files will be respectively written in
/Users/teemu/Code/cgal-bindings/build-java/lib and
/Users/teemu/Code/cgal-bindings/build-java/CGAL.
-- NOTICE: CGAL imageIO has not be found, few bindings will not be compiled
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/teemu/Code/cgal-bindings
Please provide any additional information below.
Original issue reported on code.google.com by teemu.ha...@greyarealabs.com on 15 Oct 2012 at 6:00
Original issue reported on code.google.com by
teemu.ha...@greyarealabs.com
on 15 Oct 2012 at 6:00