Quantcast
Channel: MATLAB Central Newsreader - tag:"optimization"
Viewing all articles
Browse latest Browse all 130

Re: Create mex file from levmar.c

$
0
0
Did you solve that?
Same question

"Toan Cao" wrote in message <lk90a8$n8v$1@newscl01ah.mathworks.com>...
> Hello everyone,
>
> I would like to use Levmar package (code C for Levenberg-Marquardt algorithm) in Matlab. But i can not create a mex file from the file levmar.c in this package.
> I follow the guide in this package for creating mex file (after finishing to choose complier for mex file):
> ----------------------------------------------------------------------------
> mex -DHAVE_LAPACK -I.. -O -L<levmar library dir> -L<blas/lapack libraries dir> levmar.c -llevmar -lclapack -lblas -lf2c
> ----------------------------------------------------------------------------
> My compiler is Microsoft Visual C++ 2008.
> The compiling process always has errors, like this:
> ----------------------------------------------------------------------------
> MEX could not find the library "levmar" specified with -l option.
> MEX looked for a file with one of the names:
> levmar.lib
> liblevmar.lib
> .....
> ----------------------------------------------------------------------------
> 1) How can i have the file levmar.lib?
> 2) For clapack.lib, blas.lib, f2c.lib, althouth i already direct to directory of these libraries (download from http://www.netlib.org/clapack/), the same errors also happen. How to solve these errors?
>
> If you have used this package in Matlab, please share for me the experience what is main reason i encounter these errors .
> Thank you very much
>
> Toan

Viewing all articles
Browse latest Browse all 130

Trending Articles