chrisidefix / cgal-bindings

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

Compile failure with Mac OS X 10.8.1, homebrew cgal #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
# What steps will reproduce the problem?
1. Installed CGAL 4.0.2 and swig 2.0.8 with Homebrew on OS X
2. git clone https://code.google.com/p/cgal-bindings/ (HEAD at 8a354bc) and cd 
cgal-bindings
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?

During make phase, I get the following std out with these errors:

In file included from 
/Users/jsick/code/cgal-bindings/SWIG_CGAL/Kernel/Line_3.cpp:10:
In file included from 
/Users/jsick/code/cgal-bindings/SWIG_CGAL/Kernel/Line_3.h:12:
/Users/jsick/code/cgal-bindings/SWIG_CGAL/Kernel/Line_3_impl.h:15:42: error: 
      lookup of 'Line_3' in member access expression is ambiguous
SWIG_CGAL_FORWARD_CALL_AND_REF_1(Plane_3,Line_3::perpendicular_plane,Point_3)
                                         ^
/Users/jsick/code/cgal-bindings/SWIG_CGAL/Common/Macros.h:189:51: note: 
      expanded from macro 'SWIG_CGAL_FORWARD_CALL_AND_REF_1'
  SWIG_CGAL_FORWARD_CALL_AND_REF_SCOPE_1(RET,NAME,NAME,IN_TYPE)
                                                  ^
/Users/jsick/code/cgal-bindings/SWIG_CGAL/Common/Macros.h:183:43: note: 
      expanded from macro 'SWIG_CGAL_FORWARD_CALL_AND_REF_SCOPE_1'
  SWIG_CGAL_FORWARD_CALL_SCOPE_1(RET,NAME,INAME,IN_TYPE) \
                                          ^
/Users/jsick/code/cgal-bindings/SWIG_CGAL/Common/Macros.h:171:57: note: 
      expanded from macro 'SWIG_CGAL_FORWARD_CALL_SCOPE_1'
    return RET(SWIG_CGAL_extract_data(this->get_data()).INAME(...
                                                        ^
/usr/local/Cellar/cgal/4.0.2/include/CGAL/Line_3.h:37:7: note: lookup in the
      object type 'CGAL::Line_3<CGAL::Epick>' refers here
class Line_3 : public R_::Kernel_base::Line_3
      ^
/Users/jsick/code/cgal-bindings/SWIG_CGAL/Kernel/Line_3_def.h:22:29: note: 
      lookup from the current scope refers here
class SWIG_CGAL_KERNEL_DECL Line_3{
                            ^
In file included from 
/Users/jsick/code/cgal-bindings/SWIG_CGAL/Kernel/Line_3.cpp:10:
In file included from 
/Users/jsick/code/cgal-bindings/SWIG_CGAL/Kernel/Line_3.h:12:
/Users/jsick/code/cgal-bindings/SWIG_CGAL/Kernel/Line_3_impl.h:15:42: error: 
      lookup of 'Line_3' in member access expression is ambiguous
SWIG_CGAL_FORWARD_CALL_AND_REF_1(Plane_3,Line_3::perpendicular_plane,Point_3)
                                         ^
/Users/jsick/code/cgal-bindings/SWIG_CGAL/Common/Macros.h:189:51: note: 
      expanded from macro 'SWIG_CGAL_FORWARD_CALL_AND_REF_1'
  SWIG_CGAL_FORWARD_CALL_AND_REF_SCOPE_1(RET,NAME,NAME,IN_TYPE)
                                                  ^
/Users/jsick/code/cgal-bindings/SWIG_CGAL/Common/Macros.h:185:56: note: 
      expanded from macro 'SWIG_CGAL_FORWARD_CALL_AND_REF_SCOPE_1'
    ret = RET(SWIG_CGAL_extract_data(this->get_data()).INAME(...
                                                       ^
/usr/local/Cellar/cgal/4.0.2/include/CGAL/Line_3.h:37:7: note: lookup in the
      object type 'CGAL::Line_3<CGAL::Epick>' refers here
class Line_3 : public R_::Kernel_base::Line_3
      ^
/Users/jsick/code/cgal-bindings/SWIG_CGAL/Kernel/Line_3_def.h:22:29: note: 
      lookup from the current scope refers here
class SWIG_CGAL_KERNEL_DECL Line_3{
                            ^
3 warnings and 2 errors generated.
make[2]: *** [SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Line_3.cpp.o] 
Error 1
make[1]: *** [SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/all] Error 2
make: *** [all] Error 2

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

- Mac OS X 10.8.1
- cgal-bindings 8a354bc
- CGAL 4.0.2
- swig 2.0.8

# Please provide any additional information below.

Here is the result from cmake:

cmake -DCGAL_DIR=/usr/local/Cellar/cgal/4.0.2/lib/CGAL/ -DBUILD_PYTHON=ON 
-DBUILD_JAVA=OFF
-- 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/lib/libpython2.7.dylib (found version "2.7.3") 
-- BUILD_JAVA is set to OFF: no CGAL-bindings for Java will be generated.
-- Found Python libs.
-- CGAL-SWIG Python files and libraries will be written in 
/Users/jsick/code/cgal-bindings/build-python/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/jsick/code/cgal-bindings

Original issue reported on code.google.com by jon.s...@gmail.com on 22 Sep 2012 at 8:51

GoogleCodeExporter commented 9 years ago

Original comment by bootsare...@gmail.com on 24 Sep 2012 at 12:07

GoogleCodeExporter commented 9 years ago
Should be fixed now.

Thanks for the report.

Original comment by sloriot...@gmail.com on 1 Oct 2012 at 8:36