I want to find facial feature points using flandmark library. But I get this coimpilation error.

1 view (last 30 days)
I want to find facial feature points using flandmark library. But I get this coimpilation error.
As instructed i tried to compile flandmark_compilemex.m
After compiling it shows the following error.
Warning: MEX could not find the library "flandmark_static" specified with -l option. MEX looked for a file with one of the names: flandmark_static.lib libflandmark_static.lib MEX looked for the library in the following directories: C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\LIB\amd64 C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\ATLMFC\LIB\amd64 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x64 C:\Program Files\MATLAB\R2013b\extern\lib\win64 C:\Program Files (x86)\Microsoft Visual Studio\VC98\mfc\lib C:\Program Files (x86)\Microsoft Visual Studio\VC98\lib C:\Program Files\MATLAB\R2013b\extern\lib\win64\microsoft ../bin7/libflandmark/Release
Creating library C:\Users\Revathy\AppData\Local\Temp\mex_dVbrg8\templib.x and object C:\Users\Revathy\AppData\Local\Temp\mex_dVbrg8\templib.exp flandmark_detector_mex.obj : error LNK2019: unresolved external symbol "int __cdecl flandmark_detect(struct _IplImage *,int *,struct model_struct *,double *,int *)" (?flandmark_detect@@YAHPEAU_IplImage@@PEAHPEAUmodel_struct@@PEAN1@Z) referenced in function mexFunction C:\OpenCV2.3\build\bin\flandmark-master\flandmark-master\matlab_toolbox\mex\flandmark_detector.mexw64 : fatal error LNK1120: 1 unresolved externals
C:\PROGRA~1\MATLAB\R2013B\BIN\MEX.PL: Error: Link of 'C:\OpenCV2.3\build\bin\flandmark-master\flandmark-master\matlab_toolbox\mex\flandmark_detector.mexw64' failed.
Unable to complete successfully.
Error in flandmark_compilemex (line 79) eval(['mex -O -largeArrayDims ./mex/flandmark_detector_mex.cpp -I../libflandmark/' include libflandmark cvlibs ' -output ../matlab_toolbox/mex/flandmark_detector']);
I don't know how to compile the library files "flandmark_static" in matlab. Anyone please suggest me step by step installation of the library.

Accepted Answer

Robin
Robin on 3 Feb 2014
You have to compile flandmarks separately to get the flandmarks static library. Download the flandmarks package on the website, then use cmake to create an appropriate project for your platform and build environment. Note that you will need at least a C++ compiler to compile the library, how to do that exactly depends on your platform (you seem to use Windows thus using Visual Studio is probably the easiest solution).
For details check out the INSTALL file in the flandmarks repo: https://github.com/uricamic/flandmark/blob/master/INSTALL
  2 Comments
Revathy Prabhu
Revathy Prabhu on 3 Feb 2014
CMake Error: CMake was unable to find a build program corresponding to "Visual Studio 12 Win64". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. CMake Error: Could not find cmake module file: C:/opencv/build/flandmark-master/libflandmark/CMakeFiles/2.8.12.2/CMakeCCompiler.cmake CMake Error: Could not find cmake module file: C:/opencv/build/flandmark-master/libflandmark/CMakeFiles/2.8.12.2/CMakeCXXCompiler.cmake Configuring incomplete, errors occurred!
I get this error.

Sign in to comment.

More Answers (0)

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!