chrisidefix / cgal-bindings

Automatically exported from code.google.com/p/cgal-bindings
Boost Software License 1.0
0 stars 0 forks source link

compilation failed: today clone, CGAL 4.0.2 and SWIG 2.0.7 #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

- checkout lastest cgal-bindings, cmake and build (please attached files for 
convenient)

$ ./build_cgal-bindings.sh

What is the expected output? What do you see instead?

- error-free build result. first error is
/usr/include/CGAL/Alpha_shape_2.h:594:44: error: ‘locate’ was not declared 
in this scope, ...

What version of the product are you using? On what operating system?

- I am using Fedora 17

$ yum info cgal swig boost gcc | grep -e Name -e Version
Name        : CGAL
Version     : 4.0.2
Name        : boost
Version     : 1.48.0
Name        : gcc
Version     : 4.7.0
Name        : swig
Version     : 2.0.7

$ uname -a
Linux wisut-pc.local 3.5.2-3.fc17.i686.PAE #1 SMP Tue Aug 21 19:27:17 UTC 2012 
i686 i686 i386 GNU/Linux

Please provide any additional information below.

- got same error trying both pythonlibs version 2.7 and version 3

Original issue reported on code.google.com by wiz...@gmail.com on 29 Aug 2012 at 5:43

Attachments:

GoogleCodeExporter commented 9 years ago
Update:: To narrow it down.Since I don't need the Alpha_Shape now I just 
comment out a line in CMakeLists.txt and the compilation was successful.

$ git diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2c8c96f..4370ea9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -89,7 +89,7 @@ if ( CGAL_FOUND )
     add_subdirectory(SWIG_CGAL/Triangulation_3)
     add_subdirectory(SWIG_CGAL/Triangulation_2)
     add_subdirectory(SWIG_CGAL/Polyhedron_3)
-    add_subdirectory(SWIG_CGAL/Alpha_shape_2)
+    #add_subdirectory(SWIG_CGAL/Alpha_shape_2)
     add_subdirectory(SWIG_CGAL/Spatial_searching)
     add_subdirectory(SWIG_CGAL/AABB_tree)
     if (CGAL_ImageIO_FOUND)

Original comment by wiz...@gmail.com on 1 Sep 2012 at 6:15

GoogleCodeExporter commented 9 years ago
Maybe a problem in CGAL. Can you try hacking Alpha_shape_2.h and replace 
locate(....) by this->locate(...)?

Original comment by sloriot...@gmail.com on 5 Sep 2012 at 5:34

GoogleCodeExporter commented 9 years ago
This is an issue in Alpha_shape_2 in CGAL 4.0.2. This should be fixed in the 
next CGAL release. The attached patch fixes the issue.

Original comment by bootsare...@gmail.com on 3 Oct 2012 at 10:16

Attachments:

GoogleCodeExporter commented 9 years ago
Issue 24 has been merged into this issue.

Original comment by sloriot...@gmail.com on 3 Oct 2012 at 10:25

GoogleCodeExporter commented 9 years ago
Issue 25 has been merged into this issue.

Original comment by sloriot...@gmail.com on 15 Oct 2012 at 7:03

GoogleCodeExporter commented 9 years ago
Thanks for the quick reply. :)

Original comment by teemu.ha...@greyarealabs.com on 15 Oct 2012 at 7:40