Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

matlab interface #71

Open
AJ611 opened this issue Nov 27, 2016 · 2 comments
Open

matlab interface #71

AJ611 opened this issue Nov 27, 2016 · 2 comments

Comments

@AJ611
Copy link

AJ611 commented Nov 27, 2016

Hi, I try to follow the images instruction here. However, stuck at Build process in MVS where I got same error on LINK : fatal error LNK1104: cannot open file 'Debug\clandmark.lib' . Then, I try to build clandmark project but return ========== Build: 0 succeeded, 0 failed, 2 up-to-date, 0 skipped ==========.

BTW, during CMAKE process, instead of setting OpenCV_dir to ../vc14/bin, I set it to ..vc14/lib, because I got error
` Could not find a package configuration file provided by "OpenCV" with any
of the following names:

OpenCVConfig.cmake
opencv-config.cmake`
@uricamic
Copy link
Owner

Hi @AJ611,

I am working on the batch scripts for building the CLandmark on windows now.

The problem with matlab interface and compilation on windows is, that the CMake scripts are written for linux only. Earlier versions of MATLAB and Visual Studio were not so cooperative as it is now, so for windows compilation, the procedure was first to compile the core of CLandmark library, and then compile the matlab interface directly from MATLAB, using the compile_mex.m script.
You can try to follow this scheme before the batch scripts are ready. Note, that you will probably have to change some paths in the MATLAB script.

For OpenCV, you should just select the build folder in CMake, and then it should find the proper sub-directory by itself. However, in your case I guess the problem is, that for some reason, it tries to compile with static libraries instead of dynamic ones.

@AJ611
Copy link
Author

AJ611 commented Nov 28, 2016

Hi,
How about this error:

Compiling mex-files on Windows platform...
Verbose mode is on.
... Looking for compiler 'Microsoft Windows SDK 7.1 (C++)' ...
... Looking for registry setting 'HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.1' InstallationFolder ...Yes ('C:\Program Files\Microsoft SDKs\Windows\v7.1\').
... Looking for registry setting 'HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VC7' 10.0 ...Yes ('C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\').
... Looking for file 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64\cl.exe' ...Yes.
... Looking for folder 'C:\Program Files (x86)\Microsoft Visual Studio 10.0' ...Yes.
Found installed compiler 'Microsoft Windows SDK 7.1 (C++)'.
Set PATH = C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\Bin\amd64;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\Bin\VCPackages;C:\Program Files\Microsoft SDKs\Windows\v7.1\\Bin\x64;C:\Program Files\Microsoft SDKs\Windows\v7.1\\Bin;;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;E:\MATLAB\R2016b\runtime\win64;E:\MATLAB\R2016b\bin;C:\Program Files\MATLAB\MATLAB Production Server\R2015a\runtime\win64;C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin;C:\Program Files\MATLAB\MATLAB Production Server\R2015a\polyspace\bin;C:\Program Files\Microsoft Windows Performance Toolkit\;C:\WINDOWS\system32\config\systemprofile\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;E:\MATLAB\R2016b\polyspace\bin;C:\Python27;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Users\User\AppData\Local\Microsoft\WindowsApps;
Set INCLUDE = C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE;C:\Program Files\Microsoft SDKs\Windows\v7.1\\INCLUDE;C:\Program Files\Microsoft SDKs\Windows\v7.1\\INCLUDE\gl;C:\Program Files\MATLAB\MATLAB Production Server\R2015a\extern\include;;
Set LIB = C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\Lib\amd64;C:\Program Files\Microsoft SDKs\Windows\v7.1\\Lib\X64;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\ATLMFC\LIB\AMD64;C:\Program Files\MATLAB\MATLAB Production Server\R2015a\lib\win64;C:\Program Files\MATLAB\MATLAB Production Server\R2015a\extern\lib\win64;
Set LIBPATH = C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\Lib\amd64;C:\Program Files\Microsoft SDKs\Windows\v7.1\\LIB\X64;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\ATLMFC\LIB\AMD64;C:\Program Files\MATLAB\MATLAB Production Server\R2015a\extern\lib\win64;
Options file details
-------------------------------------------------------------------
	Compiler location: C:\Program Files (x86)\Microsoft Visual Studio 10.0
	Options file: C:\Users\User\AppData\Roaming\MathWorks\MATLAB\R2015a\mex_C++_win64.xml
	CMDLINE100 : cl /c /GR /W3 /EHs /nologo /MD -I../libclandmark/ -I../3rd_party/rapidxml-1.13/ -I../3rd_party/CImg-1.5.6/ -I../3rd_party/CImg-1.5.6/plugins  -I"C:\Program Files\MATLAB\MATLAB Production Server\R2015a\extern\include" -I"C:\Program Files\MATLAB\MATLAB Production Server\R2015a\simulink\include"  /DDOUBLE_PRECISION=1   /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0  /DMATLAB_MEX_FILE /O2 /Oy- /DNDEBUG E:\project_MATLAB\Nov27\uricamic-clandmark-73b694d\matlab_interface\flandmark_interface_mex.cpp /FoC:\Users\User\AppData\Local\Temp\mex_48947836775616_9044\flandmark_interface_mex.obj
	CMDLINE200 : link /nologo /manifest /DLL   /EXPORT:mexFunction C:\Users\User\AppData\Local\Temp\mex_48947836775616_9044\flandmark_interface_mex.obj  /LIBPATH:../build_win76bit/libclandmark/Release  /LIBPATH:flandmark  /LIBPATH:clandmark   /LIBPATH:"C:\Program Files\MATLAB\MATLAB Production Server\R2015a\extern\lib\win64\microsoft" libmx.lib libmex.lib libmat.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /out:E:\project_MATLAB\Nov27\uricamic-clandmark-73b694d\matlab_interface\mex\flandmark_interface.mexw64
	CMDLINE250 : mt -outputresource:E:\project_MATLAB\Nov27\uricamic-clandmark-73b694d\matlab_interface\mex\flandmark_interface.mexw64;2 -manifest E:\project_MATLAB\Nov27\uricamic-clandmark-73b694d\matlab_interface\mex\flandmark_interface.mexw64.manifest
	CMDLINE300 : del E:\project_MATLAB\Nov27\uricamic-clandmark-73b694d\matlab_interface\mex\flandmark_interface.exp E:\project_MATLAB\Nov27\uricamic-clandmark-73b694d\matlab_interface\mex\flandmark_interface.lib E:\project_MATLAB\Nov27\uricamic-clandmark-73b694d\matlab_interface\mex\flandmark_interface.mexw64.manifest E:\project_MATLAB\Nov27\uricamic-clandmark-73b694d\matlab_interface\mex\flandmark_interface.ilk
	COMPILER : cl
	COMPFLAGS : /GR /W3 /EHs /nologo /MD -I../libclandmark/ -I../3rd_party/rapidxml-1.13/ -I../3rd_party/CImg-1.5.6/ -I../3rd_party/CImg-1.5.6/plugins  -I"C:\Program Files\MATLAB\MATLAB Production Server\R2015a\extern\include" -I"C:\Program Files\MATLAB\MATLAB Production Server\R2015a\simulink\include"  /DDOUBLE_PRECISION=1   /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0  /DMATLAB_MEX_FILE
	COMPDEFINES : /DDOUBLE_PRECISION=1   /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0  /DMATLAB_MEX_FILE
	MATLABMEX :  /DMATLAB_MEX_FILE
	OPTIMFLAGS : /O2 /Oy- /DNDEBUG
	INCLUDE : -I../libclandmark/ -I../3rd_party/rapidxml-1.13/ -I../3rd_party/CImg-1.5.6/ -I../3rd_party/CImg-1.5.6/plugins  -I"C:\Program Files\MATLAB\MATLAB Production Server\R2015a\extern\include" -I"C:\Program Files\MATLAB\MATLAB Production Server\R2015a\simulink\include"
	DEBUGFLAGS : /Z7
	LINKER : link
	LINKFLAGS : /nologo /manifest
	LINKTYPE : /DLL
	LINKEXPORT :  /EXPORT:mexFunction
	LINKLIBS : /LIBPATH:../build_win76bit/libclandmark/Release  /LIBPATH:flandmark  /LIBPATH:clandmark   /LIBPATH:"C:\Program Files\MATLAB\MATLAB Production Server\R2015a\extern\lib\win64\microsoft" libmx.lib libmex.lib libmat.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
	LINKDEBUGFLAGS : /debug /PDB:"E:\project_MATLAB\Nov27\uricamic-clandmark-73b694d\matlab_interface\mex\flandmark_interface.mexw64.pdb"
	LINKOPTIMFLAGS : 
	OBJEXT : .obj
	LDEXT : .mexw64
	SETENV : set COMPILER=cl 
				set COMPFLAGS=/c /GR /W3 /EHs /nologo /MD -I../libclandmark/ -I../3rd_party/rapidxml-1.13/ -I../3rd_party/CImg-1.5.6/ -I../3rd_party/CImg-1.5.6/plugins  -I"C:\Program Files\MATLAB\MATLAB Production Server\R2015a\extern\include" -I"C:\Program Files\MATLAB\MATLAB Production Server\R2015a\simulink\include"  /DDOUBLE_PRECISION=1   /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0  /DMATLAB_MEX_FILE /DDOUBLE_PRECISION=1   /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0  /DMATLAB_MEX_FILE  /DMATLAB_MEX_FILE 
				set OPTIMFLAGS=/O2 /Oy- /DNDEBUG 
				set DEBUGFLAGS=/Z7 
				set LINKER=link 
				set LINKFLAGS=/nologo /manifest /export:%ENTRYPOINT% /DLL /LIBPATH:../build_win76bit/libclandmark/Release  /LIBPATH:flandmark  /LIBPATH:clandmark   /LIBPATH:"C:\Program Files\MATLAB\MATLAB Production Server\R2015a\extern\lib\win64\microsoft" libmx.lib libmex.lib libmat.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib  /EXPORT:mexFunction 
				set LINKDEBUGFLAGS=/debug /PDB:"%OUTDIR%%MEX_NAME%.mexw64.pdb" 
				set NAME_OUTPUT=/out:"%OUTDIR%%MEX_NAME%%MEX_EXT%"
	SDKROOT : C:\Program Files\Microsoft SDKs\Windows\v7.1\
	VSROOT : C:\Program Files (x86)\Microsoft Visual Studio 10.0
	MATLABROOT : C:\Program Files\MATLAB\MATLAB Production Server\R2015a
	ARCH : win64
	SRC : E:\project_MATLAB\Nov27\uricamic-clandmark-73b694d\matlab_interface\flandmark_interface_mex.cpp
	OBJ : C:\Users\User\AppData\Local\Temp\mex_48947836775616_9044\flandmark_interface_mex.obj
	OBJS : C:\Users\User\AppData\Local\Temp\mex_48947836775616_9044\flandmark_interface_mex.obj 
	SRCROOT : E:\project_MATLAB\Nov27\uricamic-clandmark-73b694d\matlab_interface\flandmark_interface_mex
	DEF : C:\Users\User\AppData\Local\Temp\mex_48947836775616_9044\flandmark_interface.def
	EXP : E:\project_MATLAB\Nov27\uricamic-clandmark-73b694d\matlab_interface\mex\flandmark_interface.exp
	LIB : E:\project_MATLAB\Nov27\uricamic-clandmark-73b694d\matlab_interface\mex\flandmark_interface.lib
	EXE : E:\project_MATLAB\Nov27\uricamic-clandmark-73b694d\matlab_interface\mex\flandmark_interface.mexw64
	ILK : E:\project_MATLAB\Nov27\uricamic-clandmark-73b694d\matlab_interface\mex\flandmark_interface.ilk
	MANIFEST : E:\project_MATLAB\Nov27\uricamic-clandmark-73b694d\matlab_interface\mex\flandmark_interface.mexw64.manifest
	TEMPNAME : E:\project_MATLAB\Nov27\uricamic-clandmark-73b694d\matlab_interface\mex\flandmark_interface
	EXEDIR : E:\project_MATLAB\Nov27\uricamic-clandmark-73b694d\matlab_interface\mex\
	EXENAME : flandmark_interface
	OPTIM : /O2 /Oy- /DNDEBUG
	LINKOPTIM : 
-------------------------------------------------------------------
`Building with 'Microsoft Windows SDK 7.1 (C++)'.
cl /c /GR /W3 /EHs /nologo /MD -I../libclandmark/ -I../3rd_party/rapidxml-1.13/ -I../3rd_party/CImg-1.5.6/ -I../3rd_party/CImg-1.5.6/plugins  -I"C:\Program Files\MATLAB\MATLAB Production Server\R2015a\extern\include" -I"C:\Program Files\MATLAB\MATLAB Production Server\R2015a\simulink\include"  /DDOUBLE_PRECISION=1   /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0  /DMATLAB_MEX_FILE /O2 /Oy- /DNDEBUG E:\project_MATLAB\Nov27\uricamic-clandmark-73b694d\matlab_interface\flandmark_interface_mex.cpp /FoC:\Users\User\AppData\Local\Temp\mex_48947836775616_9044\flandmark_interface_mex.obj
flandmark_interface_mex.cpp
e:\project_matlab\nov27\uricamic-clandmark-73b694d\libclandmark\CLandmark.h(257) : warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data
../libclandmark/Flandmark.h(47) : warning C4290: C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
E:\project_MATLAB\Nov27\uricamic-clandmark-73b694d\matlab_interface\flandmark_interface_mex.cpp(1434) : warning C4018: '<' : signed/unsigned mismatch
E:\project_MATLAB\Nov27\uricamic-clandmark-73b694d\matlab_interface\flandmark_interface_mex.cpp(1464) : warning C4018: '<' : signed/unsigned mismatch

link /nologo /manifest /DLL   /EXPORT:mexFunction C:\Users\User\AppData\Local\Temp\mex_48947836775616_9044\flandmark_interface_mex.obj  /LIBPATH:../build_win76bit/libclandmark/Release  /LIBPATH:flandmark  /LIBPATH:clandmark   /LIBPATH:"C:\Program Files\MATLAB\MATLAB Production Server\R2015a\extern\lib\win64\microsoft" libmx.lib libmex.lib libmat.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /out:E:\project_MATLAB\Nov27\uricamic-clandmark-73b694d\matlab_interface\mex\flandmark_interface.mexw64`
`Error using mex
   Creating library
   E:\project_MATLAB\Nov27\uricamic-clandmark-73b694d\matlab_interface\mex\flandmark_interface.lib
   and object
   E:\project_MATLAB\Nov27\uricamic-clandmark-73b694d\matlab_interface\mex\flandmark_interface.exp
   flandmark_interface_mex.obj : error LNK2019: unresolved external symbol "public: int
   const * __cdecl clandmark::Flandmark::getSearchSpace(int)"
   (?getSearchSpace@Flandmark@clandmark@@QEAAPEBHH@Z) referenced in function
   mexFunction
flandmark_interface_mex.obj : error LNK2019: unresolved external symbol "public: class
std::vector<class std::vector<double *,class std::allocator<double *> >,class
std::allocator<class std::vector<double *,class std::allocator<double *> > > > __cdecl
clandmark::CLandmark::getQs(void)"
(?getQs@CLandmark@clandmark@@QEAA?AV?$vector@V?$vector@PEANV?$allocator@PEAN@std@@@std@@V?$allocator@V?$vector@PEANV?$allocator@PEAN@std@@@std@@@2@@std@@XZ)
referenced in function mexFunction
flandmark_interface_mex.obj : error LNK2019: unresolved external symbol "public: class
std::vector<class std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >,class std::allocator<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > > > __cdecl
clandmark::CLandmark::getLandmarkNames(void)"
(?getLandmarkNames@CLandmark@clandmark@@QEAA?AV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@XZ)
referenced in function mexFunction
flandmark_interface_mex.obj : error LNK2019: unresolved external symbol "public: int *
__cdecl clandmark::CLandmark::getEdges(void)"
(?getEdges@CLandmark@clandmark@@QEAAPEAHXZ) referenced in function mexFunction
flandmark_interface_mex.obj : error LNK2019: unresolved external symbol "public: void
__cdecl clandmark::CLandmark::detect_base_optimized(int * const)"
(?detect_base_optimized@CLandmark@clandmark@@QEAAXQEAH@Z) referenced in function
mexFunction
flandmark_interface_mex.obj : error LNK2019: unresolved external symbol "public: void
__cdecl clandmark::CLandmark::detect_base_optimized(struct cimg_library::CImg<unsigned
char> *,int * const)"
(?detect_base_optimized@CLandmark@clandmark@@QEAAXPEAU?$CImg@E@cimg_library@@QEAH@Z)
referenced in function mexFunction
flandmark_interface_mex.obj : error LNK2019: unresolved external symbol "public: void
__cdecl clandmark::CLandmark::setNodesW(double * const)"
(?setNodesW@CLandmark@clandmark@@QEAAXQEAN@Z) referenced in function mexFunction
flandmark_interface_mex.obj : error LNK2019: unresolved external symbol "public: int *
__cdecl clandmark::CLandmark::getEdgesDimensions(void)"
(?getEdgesDimensions@CLandmark@clandmark@@QEAAPEAHXZ) referenced in function
mexFunction
flandmark_interface_mex.obj : error LNK2019: unresolved external symbol "public: int *
__cdecl clandmark::CLandmark::getNodesDimensions(void)"
(?getNodesDimensions@CLandmark@clandmark@@QEAAPEAHXZ) referenced in function
mexFunction
flandmark_interface_mex.obj : error LNK2019: unresolved external symbol "public: void
__cdecl clandmark::CLandmark::nodemax_base(struct cimg_library::CImg<unsigned char>
*,int * const)"
(?nodemax_base@CLandmark@clandmark@@QEAAXPEAU?$CImg@E@cimg_library@@QEAH@Z) referenced
in function mexFunction
flandmark_interface_mex.obj : error LNK2019: unresolved external symbol "public: double
const * __cdecl clandmark::Flandmark::getBaseWindowMargin(void)"
(?getBaseWindowMargin@Flandmark@clandmark@@QEAAPEBNXZ) referenced in function
mexFunction
flandmark_interface_mex.obj : error LNK2019: unresolved external symbol "public: int *
__cdecl clandmark::CLandmark::getWindowSizes(void)"
(?getWindowSizes@CLandmark@clandmark@@QEAAPEAHXZ) referenced in function mexFunction
flandmark_interface_mex.obj : error LNK2019: unresolved external symbol "public: int *
__cdecl clandmark::CLandmark::getNodesSearchSpaces(void)"
(?getNodesSearchSpaces@CLandmark@clandmark@@QEAAPEAHXZ) referenced in function
mexFunction
flandmark_interface_mex.obj : error LNK2019: unresolved external symbol "public: void
__cdecl clandmark::Flandmark::setLossTable(double *,int)"
(?setLossTable@Flandmark@clandmark@@QEAAXPEANH@Z) referenced in function mexFunction
flandmark_interface_mex.obj : error LNK2019: unresolved external symbol "public: int
const * __cdecl clandmark::Flandmark::getBaseWindowSize(void)"
(?getBaseWindowSize@Flandmark@clandmark@@QEAAPEBHXZ) referenced in function mexFunction
flandmark_interface_mex.obj : error LNK2019: unresolved external symbol "public: void
__cdecl clandmark::CLandmark::write(char const *,bool)"
(?write@CLandmark@clandmark@@QEAAXPEBD_N@Z) referenced in function mexFunction
flandmark_interface_mex.obj : error LNK2019: unresolved external symbol "public: double
* __cdecl clandmark::CLandmark::getFeatures(int * const)"
(?getFeatures@CLandmark@clandmark@@QEAAPEANQEAH@Z) referenced in function mexFunction
flandmark_interface_mex.obj : error LNK2019: unresolved external symbol "public: double
* __cdecl clandmark::CLandmark::getFeatures(struct cimg_library::CImg<unsigned char>
*,int * const,int * const)"
(?getFeatures@CLandmark@clandmark@@QEAAPEANPEAU?$CImg@E@cimg_library@@QEAH1@Z)
referenced in function mexFunction
flandmark_interface_mex.obj : error LNK2019: unresolved external symbol "public: double
* __cdecl clandmark::CLandmark::getFeatures_base_optimized(int * const)"
(?getFeatures_base_optimized@CLandmark@clandmark@@QEAAPEANQEAH@Z) referenced in
function mexFunction
flandmark_interface_mex.obj : error LNK2019: unresolved external symbol "public: double
* __cdecl clandmark::CLandmark::getFeatures_base(struct cimg_library::CImg<unsigned
char> *,int * const)"
(?getFeatures_base@CLandmark@clandmark@@QEAAPEANPEAU?$CImg@E@cimg_library@@QEAH@Z)
referenced in function mexFunction
flandmark_interface_mex.obj : error LNK2019: unresolved external symbol "public: void
__cdecl clandmark::CLandmark::computeWdimension(void)"
(?computeWdimension@CLandmark@clandmark@@QEAAXXZ) referenced in function mexFunction
flandmark_interface_mex.obj : error LNK2019: unresolved external symbol "public: double
* __cdecl clandmark::CLandmark::getW(void)" (?getW@CLandmark@clandmark@@QEAAPEANXZ)
referenced in function mexFunction
flandmark_interface_mex.obj : error LNK2019: unresolved external symbol "public: void
__cdecl clandmark::CLandmark::setW(double * const)"
(?setW@CLandmark@clandmark@@QEAAXQEAN@Z) referenced in function mexFunction
flandmark_interface_mex.obj : error LNK2019: unresolved external symbol "public: struct
cimg_library::CImg<unsigned char> * __cdecl clandmark::Flandmark::getNF(struct
cimg_library::CImg<unsigned char> *,int * const,double * const)"
(?getNF@Flandmark@clandmark@@QEAAPEAU?$CImg@E@cimg_library@@PEAU34@QEAHQEAN@Z)
referenced in function mexFunction
flandmark_interface_mex.obj : error LNK2019: unresolved external symbol "public: double
* __cdecl clandmark::CLandmark::getLossValues(int *)"
(?getLossValues@CLandmark@clandmark@@QEAAPEANPEAH@Z) referenced in function mexFunction
flandmark_interface_mex.obj : error LNK2019: unresolved external symbol "public: void
__cdecl clandmark::CLandmark::detect_base(struct cimg_library::CImg<unsigned char>
*,int * const)"
(?detect_base@CLandmark@clandmark@@QEAAXPEAU?$CImg@E@cimg_library@@QEAH@Z) referenced
in function mexFunction
flandmark_interface_mex.obj : error LNK2019: unresolved external symbol "public: void
__cdecl clandmark::CLandmark::detect_mirrored(struct cimg_library::CImg<unsigned char>
*,int *,double * const)"
(?detect_mirrored@CLandmark@clandmark@@QEAAXPEAU?$CImg@E@cimg_library@@PEAHQEAN@Z)
referenced in function mexFunction
flandmark_interface_mex.obj : error LNK2019: unresolved external symbol "public: void
__cdecl clandmark::CLandmark::detect_optimizedFromPool(int *,double * const)"
(?detect_optimizedFromPool@CLandmark@clandmark@@QEAAXPEAHQEAN@Z) referenced in function
mexFunction
flandmark_interface_mex.obj : error LNK2019: unresolved external symbol "public: void
__cdecl clandmark::CLandmark::detect_optimized(struct cimg_library::CImg<unsigned char>
*,int *,double * const)"
(?detect_optimized@CLandmark@clandmark@@QEAAXPEAU?$CImg@E@cimg_library@@PEAHQEAN@Z)
referenced in function mexFunction
flandmark_interface_mex.obj : error LNK2019: unresolved external symbol "public: void
__cdecl clandmark::CLandmark::detect(struct cimg_library::CImg<unsigned char> *,int
*,double * const)"
(?detect@CLandmark@clandmark@@QEAAXPEAU?$CImg@E@cimg_library@@PEAHQEAN@Z) referenced in
function mexFunction
flandmark_interface_mex.obj : error LNK2019: unresolved external symbol "public: static
class clandmark::Flandmark * __cdecl clandmark::Flandmark::getInstanceOf(char const
*,bool)" (?getInstanceOf@Flandmark@clandmark@@SAPEAV12@PEBD_N@Z) referenced in function
mexFunction
E:\project_MATLAB\Nov27\uricamic-clandmark-73b694d\matlab_interface\mex\flandmark_interface.mexw64
: fatal error LNK1120: 31 unresolved externals



Error in compile_mex (line 37)
eval(['mex -v -O -largeArrayDims flandmark_interface_mex.cpp ' include libclandmark 
-output ./mex/flandmark_interface']);

Do you have any idea about it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants