Subject: CGAL users discussion list
List archive
- From: Philipp Moeller <>
- To:
- Subject: Re: [cgal-discuss] Surface_reconstruction_points_3, macports, eigen problem
- Date: Wed, 20 Jun 2012 17:24:20 +0200
- Organization: GeometryFactory
Menelaos Karavelas
<>
writes:
> We essentially did that with Dror, and we get the error messages listed in
> his email (see the end).
>
> So for me the question is why we get these errors....
The message looks clear. Eigen::ConjugateGradient is non-copyable and it
is copied inside compute_implicit_function.
I just tried this with Eigen3.1-rc1 on next and the same thing
happens. Do we have a test-suite that actually uses eigen3?
>
> - m.
>
> On 20 Jun 2012, at 17:55, Sebastien Loriot (GeometryFactory) wrote:
>
>> Try:
>>
>> "cmake -DEIGEN3_INCLUDE_DIR=/Users/drorata/Library/eigen3.1.0-rc1 ."
>>
>> There should be no need to do something else for the demo.
>>
>> This was documented on that page:
>>
>> http://www.cgal.org/Manual/latest/doc_html/installation_manual/Chapter_installation_manual.html#Subsection_10.4
>>
>> Sebastien.
>>
>> On 06/20/2012 04:19 PM,
>>
>> wrote:
>>> I have installed *CGAL 4.0* on a Mac OS 10.6 using *macports*. As a test
>>> case, I tried to compile the example given in /Triangulation_2/, using the
>>> standard procedure:
>>> - cgal_create_cmake_script
>>> - cmake .
>>> - make
>>>
>>> This worked like a charm and suggests, if I understand it correctly, that
>>> CGAL's installation is OK.
>>>
>>> Next, I wanted to compile and consider the example
>>> /Surface_reconstruction_points_3/. Here things got messy. I'll try to
>>> describe the steps I took (some of them with the great help of Menelaos
>>> Karavelas and Michael Hemmer. Thank you Menelaos and MIchael) in order to
>>> resolve the issue.
>>>
>>> The version of Eigen shipped with the CGAL installation through macports
>>> is
>>> old, and thus I downloaded manually the latest version of eigen
>>> (3.1.0-rc1).
>>> In addition, I added the following line to the CMakeLists.txt:
>>>
>>> include_directories (BEFORE "~/Library/eigen3.1.0-rc1/")
>>> where ~/Library/eigen3.1.0-rc1/ is where the file
>>> "signature_of_eigen3_matrix_library" is located.
>>> This should make sure that eigen will be looked for in the right location.
>>>
>>> Then I added
>>>
>>> #define CGAL_EIGEN3_ENABLED
>>>
>>> to the example "poisson_reconstruction_example.cpp". Finally, I ran:
>>> - cmake .
>>> - make poisson_reconstruction_example
>>>
>>> Then I got the following compilation error:
>>>
>>> ---Compilation Error Cite---
>>> /Users/drorata/Library/eigen3.1.0-rc1/Eigen/src/Core/util/Meta.h: In copy
>>> constructor
>>> ‘Eigen::IterativeSolverBase<Eigen::ConjugateGradient<Eigen::SparseMatrix<double,
>>> 0, int>, 1, Eigen::DiagonalPreconditioner<double> >
>>>> ::IterativeSolverBase(const
>>> Eigen::IterativeSolverBase<Eigen::ConjugateGradient<Eigen::SparseMatrix<double,
>>> 0, int>, 1, Eigen::DiagonalPreconditioner<double> > >&)’:
>>> /Users/drorata/Library/eigen3.1.0-rc1/Eigen/src/IterativeLinearSolvers/
>>> IterativeSolverBase.h:37: instantiated from ‘bool
>>> CGAL::Poisson_reconstruction_function<Gt>::compute_implicit_function()
>>> [with
>>> Gt = CGAL::Epick]’
>>> /Users/drorata/Documents/academics/programing/CGAL/
>>> Surface_reconstruction_points_3_CGAL_4/poisson_reconstruction_example.cpp:65:
>>> instantiated from here
>>> /Users/drorata/Library/eigen3.1.0-rc1/Eigen/src/Core/util/Meta.h:113:
>>> error:
>>> ‘Eigen::internal::noncopyable::noncopyable(const
>>> Eigen::internal::noncopyable&)’ is private
>>> /Users/drorata/Library/eigen3.1.0-rc1/Eigen/src/IterativeLinearSolvers/
>>> IterativeSolverBase.h:37: error: within this context
>>> /Users/drorata/Library/eigen3.1.0-rc1/Eigen/src/IterativeLinearSolvers/
>>> ConjugateGradient.h: In copy constructor
>>> ‘Eigen::ConjugateGradient<Eigen::SparseMatrix<double, 0, int>, 1,
>>> Eigen::DiagonalPreconditioner<double> >::ConjugateGradient(const
>>> Eigen::ConjugateGradient<Eigen::SparseMatrix<double, 0, int>, 1,
>>> Eigen::DiagonalPreconditioner<double> >&)’:
>>> /Users/drorata/Library/eigen3.1.0-rc1/Eigen/src/IterativeLinearSolvers/
>>> ConjugateGradient.h:160: instantiated from ‘bool
>>> CGAL::Poisson_reconstruction_function<Gt>::compute_implicit_function()
>>> [with
>>> Gt = CGAL::Epick]’
>>> /Users/drorata/Documents/academics/programing/CGAL/
>>> Surface_reconstruction_points_3_CGAL_4/poisson_reconstruction_example.cpp:65:
>>> instantiated from here
>>> /Users/drorata/Library/eigen3.1.0-rc1/Eigen/src/IterativeLinearSolvers/
>>> ConjugateGradient.h:160: note: synthesized method
>>> ‘Eigen::IterativeSolverBase<Eigen::ConjugateGradient<Eigen::SparseMatrix<double,
>>> 0, int>, 1, Eigen::DiagonalPreconditioner<double> >
>>>> ::IterativeSolverBase(const
>>> Eigen::IterativeSolverBase<Eigen::ConjugateGradient<Eigen::SparseMatrix<double,
>>> 0, int>, 1, Eigen::DiagonalPreconditioner<double> > >&)’ first required
>>> here
>>> /opt/local/include/CGAL/Eigen_solver_traits.h: In copy constructor
>>> ‘CGAL::Eigen_solver_traits<Eigen::ConjugateGradient<Eigen::SparseMatrix<double,
>>> 0, int>, 1, Eigen::DiagonalPreconditioner<double> >
>>>> ::Eigen_solver_traits(const
>>> CGAL::Eigen_solver_traits<Eigen::ConjugateGradient<Eigen::SparseMatrix<double,
>>> 0, int>, 1, Eigen::DiagonalPreconditioner<double> > >&)’:
>>> /opt/local/include/CGAL/Eigen_solver_traits.h:58: instantiated from
>>> ‘bool
>>> CGAL::Poisson_reconstruction_function<Gt>::compute_implicit_function()
>>> [with
>>> Gt = CGAL::Epick]’
>>> /Users/drorata/Documents/academics/programing/CGAL/
>>> Surface_reconstruction_points_3_CGAL_4/poisson_reconstruction_example.cpp:65:
>>> instantiated from here
>>> /opt/local/include/CGAL/Eigen_solver_traits.h:58: note: synthesized method
>>> ‘Eigen::ConjugateGradient<Eigen::SparseMatrix<double, 0, int>, 1,
>>> Eigen::DiagonalPreconditioner<double> >::ConjugateGradient(const
>>> Eigen::ConjugateGradient<Eigen::SparseMatrix<double, 0, int>, 1,
>>> Eigen::DiagonalPreconditioner<double> >&)’ first required here
>>> /opt/local/include/CGAL/Poisson_reconstruction_function.h: In member
>>> function
>>> ‘bool
>>> CGAL::Poisson_reconstruction_function<Gt>::compute_implicit_function()
>>> [with Gt = CGAL::Epick]’:
>>> /opt/local/include/CGAL/Poisson_reconstruction_function.h:264: note:
>>> synthesized method
>>> ‘CGAL::Eigen_solver_traits<Eigen::ConjugateGradient<Eigen::SparseMatrix<double,
>>> 0, int>, 1, Eigen::DiagonalPreconditioner<double> >
>>>> ::Eigen_solver_traits(const
>>> CGAL::Eigen_solver_traits<Eigen::ConjugateGradient<Eigen::SparseMatrix<double,
>>> 0, int>, 1, Eigen::DiagonalPreconditioner<double> > >&)’ first required
>>> here
>>> make[3]: *** [CMakeFiles/poisson_reconstruction_example.dir/
>>> poisson_reconstruction_example.cpp.o] Error 1
>>> make[2]: *** [CMakeFiles/poisson_reconstruction_example.dir/all] Error 2
>>> make[1]: *** [CMakeFiles/poisson_reconstruction_example.dir/rule] Error 2
>>> make: *** [poisson_reconstruction_example] Error 2
>>> ---Compilation Error END---
>>>
>>> I am unable to find what the problem is? Seems like it is either a
>>> problem in
>>> EIGEN, or the way it is being using in CGAL/this specific example.
>>>
>>> If further details regarding my setting etc. is needed please let me know.
>>>
>>> Thanks in advance!
>>> Dror Atariah
>>>
>>> PS: I'm in Chapel Hill till tomorrow, so if you're around I'm available to
>>> have a look at the problem together.
>>>
>>
>>
>> --
>> You are currently subscribed to cgal-discuss.
>> To unsubscribe or access the archives, go to
>> https://lists-sop.inria.fr/wws/info/cgal-discuss
>>
--
Philipp Moeller
GeometryFactory
- [cgal-discuss] Surface_reconstruction_points_3, macports, eigen problem, dror.atariah, 06/20/2012
- Re: [cgal-discuss] Surface_reconstruction_points_3, macports, eigen problem, Sebastien Loriot (GeometryFactory), 06/20/2012
- Re: [cgal-discuss] Surface_reconstruction_points_3, macports, eigen problem, Menelaos Karavelas, 06/20/2012
- Re: [cgal-discuss] Surface_reconstruction_points_3, macports, eigen problem, Philipp Moeller, 06/20/2012
- [cgal-discuss] Re: Surface_reconstruction_points_3, macports, eigen problem, drorata, 06/20/2012
- Re: [cgal-discuss] Surface_reconstruction_points_3, macports, eigen problem, Dror Atariah, 06/20/2012
- Re: [cgal-discuss] Surface_reconstruction_points_3, macports, eigen problem, Sebastien Loriot (GeometryFactory), 06/20/2012
- Re: [cgal-discuss] Surface_reconstruction_points_3, macports, eigen problem, Dror Atariah, 06/20/2012
- Re: [cgal-discuss] Surface_reconstruction_points_3, macports, eigen problem, Sebastien Loriot (GeometryFactory), 06/21/2012
- Re: [cgal-discuss] Surface_reconstruction_points_3, macports, eigen problem, Dror Atariah, 06/22/2012
- Re: [cgal-discuss] Surface_reconstruction_points_3, macports, eigen problem, Sebastien Loriot (GeometryFactory), 06/22/2012
- Re: [cgal-discuss] Surface_reconstruction_points_3, macports, eigen problem, Dror Atariah, 06/26/2012
- Re: [cgal-discuss] Surface_reconstruction_points_3, macports, eigen problem, Philipp Möller, 06/26/2012
- Re: [cgal-discuss] Surface_reconstruction_points_3, macports, eigen problem, Dror Atariah, 06/26/2012
- Re: [cgal-discuss] Surface_reconstruction_points_3, macports, eigen problem, Dror Atariah, 06/22/2012
- Re: [cgal-discuss] Surface_reconstruction_points_3, macports, eigen problem, Sebastien Loriot (GeometryFactory), 06/21/2012
- Re: [cgal-discuss] Surface_reconstruction_points_3, macports, eigen problem, Dror Atariah, 06/20/2012
- Re: [cgal-discuss] Surface_reconstruction_points_3, macports, eigen problem, Sebastien Loriot (GeometryFactory), 06/20/2012
- Re: [cgal-discuss] Surface_reconstruction_points_3, macports, eigen problem, Menelaos Karavelas, 06/20/2012
- Re: [cgal-discuss] Surface_reconstruction_points_3, macports, eigen problem, Sebastien Loriot (GeometryFactory), 06/20/2012
Archive powered by MHonArc 2.6.18.