Interfacing LevMar with mex
이전 댓글 표시
Hello there,
I am currently trying to interface the LevMar algorithm but I am getting errors during mex-compilation. The ultimate goal would be to use the LevMar-Algorithm to generate code via simulink embedded coder.
To build the LevMar library with MSVC2010 i followed this guide. During MSVC compilation and also for the mex-command I used the x64 precompiled LAPACK/BLAS/F2C libraries from here.
I then put the whole output (.lib and .obj from MSVC) and all downloaded libs into one folder (C:\code\libs) and run the following command on the already provided levmar.c:
mex -DHAVE_LAPACK -I.. -O -LC:\code\libs levmar.c -llevmar -lclapack -lBLAS -llibf2c -lBLAS_nowrap
which results in the following list of errors:
Error in MexCommand (line 21)
mex -DHAVE_LAPACK -I.. -O -LC:\code\libs levmar.c -llevmar -lclapack -lBLAS -llibf2c -lBLAS_nowrap
>> MexCommand
Building with 'Microsoft Visual C++ 2010 (C)'.
Error using mex
Creating library levmar.lib and object levmar.exp
levmar.obj : error LNK2019: unresolved external symbol dlevmar_bleic_dif referenced in function
mexFunction
levmar.obj : error LNK2019: unresolved external symbol dlevmar_bleic_der referenced in function
mexFunction
levmar.obj : error LNK2019: unresolved external symbol dlevmar_blec_dif referenced in function
mexFunction
levmar.obj : error LNK2019: unresolved external symbol dlevmar_blec_der referenced in function
mexFunction
levmar.obj : error LNK2019: unresolved external symbol dlevmar_lec_dif referenced in function
mexFunction
levmar.obj : error LNK2019: unresolved external symbol dlevmar_lec_der referenced in function
mexFunction
levmar.obj : error LNK2019: unresolved external symbol dlevmar_bc_dif referenced in function
mexFunction
levmar.obj : error LNK2019: unresolved external symbol dlevmar_bc_der referenced in function
mexFunction
levmar.obj : error LNK2019: unresolved external symbol dlevmar_dif referenced in function mexFunction
levmar.obj : error LNK2019: unresolved external symbol dlevmar_der referenced in function mexFunction
levmar.mexw64 : fatal error LNK1120: 10 unresolved externals
Does anyone have an idea what could be the mistake, or what might be missing?
Many thanks and best regards, Alain
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Just for fun에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!