Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Re: Surface_reconstruction_points_3, macports, eigen problem

Subject: CGAL users discussion list

List archive

[cgal-discuss] Re: Surface_reconstruction_points_3, macports, eigen problem


Chronological Thread 
  • From: drorata <>
  • To:
  • Subject: [cgal-discuss] Re: Surface_reconstruction_points_3, macports, eigen problem
  • Date: Wed, 20 Jun 2012 08:23:27 -0700 (PDT)

I cleared all the previously generated Cmake related files. Then I ran the
cgal_create_cmake_script and then what you suggested:
"cmake -DEIGEN3_INCLUDE_DIR=/Users/drorata/Library/eigen3.1.0-rc1 ."

This was the output:
---(Output)---
-- The C compiler identification is GNU 4.2.1
-- The CXX compiler identification is GNU 4.2.1
-- 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
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- 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
-- Build type: Release
-- USING CXXFLAGS = '-pipe -O2 -arch x86_64 -frounding-math
-fno-strict-aliasing -O3 -DNDEBUG'
-- USING EXEFLAGS = ' -L/opt/local/lib -arch x86_64
-Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
'
-- Targetting Unix Makefiles
-- Using /usr/bin/c++ compiler.
-- DARWIN_VERSION=10
-- Mac Leopard detected
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

EIGEN3_INCLUDE_DIR


-- Build files have been written to:
/Users/drorata/Documents/academics/programing/CGAL/Surface_reconstruction_points_3_CGAL_4
---(Output END)---

Then trying to compile the example yielded:
---(Output)---
In file included from
/opt/local/include/CGAL/Poisson_reconstruction_function.h:32,
from
/Users/drorata/Documents/academics/programing/CGAL/Surface_reconstruction_points_3_CGAL_4/poisson_reconstruction_example.cpp:10:
/opt/local/include/CGAL/Eigen_solver_traits.h:24:24: error: Eigen/Sparse: No
such file or directory
In file included from /opt/local/include/CGAL/Eigen_solver_traits.h:26,
from
/opt/local/include/CGAL/Poisson_reconstruction_function.h:32,
from
/Users/drorata/Documents/academics/programing/CGAL/Surface_reconstruction_points_3_CGAL_4/poisson_reconstruction_example.cpp:10:
/opt/local/include/CGAL/Eigen_vector.h:24:22: error: Eigen/Core: No such
file or directory
...(CONTINUES)
---(Output END)---

This seems not to work.

I don't think that the problem is finding EIGEN. Currently I have (as
Michael Hemmer suggested) the following line in my CMakeLists.txt:
include_directories (BEFORE "~/Library/eigen3.1.0-rc1/")

It seems like neither your suggestion nor setting EIGEN3_INC_DIR to the
eigen's location helps.

Anyway, with either Michael's trick or Menelaos' (which was adding a soft
link to the include directory of the example which pointed to the location
of eigen) it seems like eigen can be found, but the compilation error is
always there.

Dror.

--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Surface-reconstruction-points-3-macports-eigen-problem-tp4655278p4655282.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page