mex error while compiling Open TLD

While compiling the compile.m file in Open TLD . I get the following errors:
PC Building with 'Microsoft Visual C++ 2010'. Error using mex lk.cpp C:\Users\Borundiya\Documents\MATLAB\OpenTLD-master\OpenTLD-master\mex\lk.cpp(24) : fatal error C1020: unexpected #endif
Error in compile (line 35) eval(['mex lk.cpp -O' include lib]);
I have made the following changes in compile.m file:
disp('PC');
include = ' -IC:\OpenCV-2.4\opencv\build\include\opencv\ -IC:\OpenCV-2.4\opencv\build\include\';
libpath = 'C:\OpenCV-2.4\opencv\build\x64\vc12\lib\';
My system is Windows 7 Home Premium 64 bit and Matlab versions are 2010 b and 2014 a 64 bits.
Please advise.

댓글 수: 1

James Tursa
James Tursa 2016년 7월 15일
The error indicates that the pre-processor is seeing a problem. Try using the verbose option -v to see all of the warnings and errors, and then look at the code to see why the pre-processor control construct #if-#elif-#endif is not working.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

질문:

2016년 7월 15일

댓글:

2016년 7월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by