Dear Subhasree,
BLAS and LAPACK are included in CGAL Windows installer, thus
Point_set_processing_3 examples should compile out of the box. No
need to download Netlib libraries or setup cmake variables.
I recommend you to do again Laurent Rineau's first suggestion:
* Relaunch the CGAL Windows installer, and ask it to download the
precompiled LAPACK/BLAS/TAUCS libraries.
* Run CMake and VC++ compiler again to recompile CGAL.
* Then, in examples\Point_set_processing_3 folder:
- Remove CMakeCache.txt
- Run CMake. That time it should find BLAS and LAPACK
automatically.
- Compile in Visual Studio
Regards,
Laurent Saboret
Le 12/10/2011 15:33, Subhasree M a écrit :
Hello,
Thanks for your suggestions. They solved the problems related to
the .lib files.
I tried the alternatives you suggested.
1)setting BLAS_INC_DIR and BLAS_LIB_DIR as environment variables
using the binaries from netlib.org, but it
gave the same error
"LINK : fatal error LNK1104: cannot open file 'libcblas.lib"
2) Tried your precompiled libraries LAPACK/BLAS/TAUCS and got
lipcblas.lib,
but got another error : "cannot open vcf2c.lib"(i forgot the
error number)
Downloaded vcf2c.lib and put it in
CGAL-3.8\auxiliary\taucs\include directory and compiled it again ,
but got the following error:
2>jet_smoothing_example.obj : error LNK2019: unresolved
external symbol _dgelss_ referenced in function "void __cdecl
CGAL::LAPACK::dgelss(int *,int *,int *,double *,int *,double *,int
*,double *,double *,int *,double *,int *,int *)"
(?dgelss@LAPACK@CGAL@@YAXPAH00PAN010110100@Z)
2>C:\Users\Subha\Desktop\CGAL-3.8\examples\Point_set_processing_3\Debug\jet_smoothing_example.exe
: fatal error LNK1120: 1 unresolved externals
I followed one of your earlier suggestions to Laurent Saboret(on Fri, 29 Jan 2010)
for the same query and added #define CGAL_LIB_DIAGNOSTIC at the beginning of e.g.
jet_smoothing_example.cpp, and compiled.
The error still persists and the list of errors is as follows :
2>jet_smoothing_example.obj : error LNK2019: unresolved
external symbol _dgelss_ referenced in function "void __cdecl
CGAL::LAPACK::dgelss(int *,int *,int *,double *,int *,double *,int
*,double *,double *,int *,double *,int *,int *)"
(?dgelss@LAPACK@CGAL@@YAXPAH00PAN010110100@Z)
2>C:\Users\Subha\Desktop\CGAL-3.8\examples\Point_set_processing_3\Debug\jet_smoothing_example.exe
: fatal error LNK1120: 1 unresolved externals
1>normal_estimation.obj : error LNK2019: unresolved external
symbol _dgelss_ referenced in function "void __cdecl
CGAL::LAPACK::dgelss(int *,int *,int *,double *,int *,double *,int
*,double *,double *,int *,double *,int *,int *)"
(?dgelss@LAPACK@CGAL@@YAXPAH00PAN010110100@Z)
1>C:\Users\Subha\Desktop\CGAL-3.8\examples\Point_set_processing_3\Debug\normal_estimation.exe
: fatal error LNK1120: 1 unresolved externals.
Anticipating your valuable suggestions,
Subhasree.
On Tue, Oct 11, 2011 at 6:11 PM, Laurent
Rineau (GeometryFactory) <>
wrote:
On mardi 11 octobre 2011 11:27:05
Subhas2>jet_smoothing_example.obj : error LNK2019:
unresolved external symbol _dgelss_ referenced in function
"void __cdecl CGAL::LAPACK::dgelss(int *,int *,int *,double
*,int *,double *,int *,double *,double *,int *,double *,int
*,int *)" (?dgelss@LAPACK@CGAL@@YAXPAH00PAN010110100@Z)
2>C:\Users\Subha\Desktop\CGAL-3.8\examples\Point_set_processing_3\Debug\jet_smoothing_example.exe
: fatal error LNK1120: 1 unresolved externalsree M wrote:
> Hello,
>
> When I compile Point_set_processing_3_
> example.sln, I get the following message:
[MSVC build log]
> 6>LINK : fatal error LNK1104: cannot
open file 'libcblas.lib'
Probably you did not setup the CMake configuration correctly.
If you want to avoid to do that yourself, you can relaunch the
CGAL Windows
installer, and ask it to download our precompiled
LAPACK/BLAS/TAUCS libraries.
Then re-run cmake for Point_set_processing_3 from an empty
cache. That time it
will find BLAS automatically.
If you really want to use the binaries from netlib.org, then you probably need
to define BLAS_INC_DIR and BLAS_LIB_DIR in your environment
variables.
--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
|