Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Polyhedron demo problem

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Polyhedron demo problem


Chronological Thread 
  • From: "Martial TOLA (CNRS-Liris)" <>
  • To:
  • Subject: Re: [cgal-discuss] Polyhedron demo problem
  • Date: Thu, 14 May 2009 16:59:30 +0200

Hello

I'm under Ubuntu 9.04 with cmake 2.6patch2 and I have exactly the same problem:

undefined reference to `dgelss'.


I have tried the original CMakeLists.txt and this one but it's the same result.

I have compiled taucs from taucs_full.tgz (3.4) and it's ok.

I have exactly the same error if I use :
- lapack from /usr/local/lib (result of the taucs compilation)
- lapack from /usr/lib
- lapack from /usr/lib/atlas

Do you have an idea for this problem ???

Thank you.

Laurent Rineau (GeometryFactory) a écrit :
On Sunday 25 January 2009 22:09:45 Rob wrote:
Laurent Rineau (GeometryFactory) wrote:
On Saturday 24 January 2009 17:44:12 Rob wrote:
Hello,

I seem to have a problem linking the Polyhedron demo in the 3.4
release of CGAL. When I try to make the demo in /demo/Polyhedron, it
compiles successfully, but then gives the following error during
linking:

CMakeFiles/Polyhedron_3.dir/Polyhedron_3.o: In function
`CGAL::Monge_via_jet_fitting<CGAL::Filtered_kernel<CGAL::Simple_cartesia
n<d ouble>

, CGAL::Cartesian<double>,
CGAL::Lapack_svd>::solve_linear_system(CGAL::Lapack_matrix&,
CGAL::Lapack_vector&)':
Polyhedron_3.cpp:(.text._ZN4CGAL21Monge_via_jet_fittingINS_15Filtered_ke
rne
lINS_16Simple_cartesianIdEEEENS_9CartesianIdEENS_10Lapack_svdEE19solve_l
inea
r_systemERNS_13Lapack_matrixERNS_13Lapack_vectorE[CGAL::Monge_via_jet_fi
ttin g<CGAL::Filtered_kernel<CGAL::Simple_cartesian<double>

, CGAL::Cartesian<double>,
CGAL::Lapack_svd>::solve_linear_system(CGAL::Lapack_matrix&,
CGAL::Lapack_vector&)]+0x94): undefined reference to `dgelss'
collect2: ld returned 1 exit status
make[2]: *** [demo/Polyhedron/Polyhedron_3] Error 1
make[2]: Leaving directory `/home/rob/SoftwareStaging/CGAL-3.4/build'
make[1]: *** [demo/Polyhedron/CMakeFiles/Polyhedron_3.dir/all] Error 2
make[1]: Leaving directory `/home/rob/SoftwareStaging/CGAL-3.4/build'
make: *** [all] Error 2

I've checked multiple times, and I configure cmake with lapack, so I
can't figure out why it's complaining at me. Any help would be greatly
appreciated.
Can you show us the output of cmake, and attach your CMakeCache.txt file?
It seems LAPACK is not configured correctly.

Rob,

I think the bug is my fault. The file demo/Polyhedron/CMakeList.txt does not deal correctly with case when LAPACK is present but not TAUCS.

Please try to copy the attached CMakeLists.txt to demo/Polyhedron/CMakeList.txt and recompile the Polyhedron demo, and tell us if that fixes your linkage problem.

begin:vcard
fn:Martial TOLA
n:TOLA;Martial
org;quoted-printable:CNRS/INSA de Lyon/Universit=C3=A9 Claude Bernard Lyon 1/Universit=C3=A9Lu=
	mi=C3=A8re Lyon 2/Ecole Centrale de Lyon;Laboratoire LIRIS - UMR 5205
email;internet:
title;quoted-printable:Ing=C3=A9nieur d'=C3=A9tudes CNRS
url:http://liris.cnrs.fr/martial.tola
version:2.1
end:vcard




Archive powered by MHonArc 2.6.16.

Top of Page