Error using mex Unable to complete successfully

I am using Matlab 2013a, MS visual studio 2010, and opencv 2.4.8 I had my mex setup, updated my batch file but still getting this error when I tried to run any cpp code that uses opencv libraries through matlab:
fatal error C1083: Cannot open include file: 'opencv/cv.h': Invalid argument
C:\PROGRA~1\MATLAB\R2013A\BIN\MEX.PL: Error: Compile of 'first.cpp' failed.
Error using mex (line 206)
Unable to complete successfully.
Although I can see the cv.h within the dir:
>> dir
. Include cv.h highgui.h opencv
.. bin first.cpp lib
Can anyone gives any suggestions to solve this problem please?

1 件のコメント

Walter Roberson
Walter Roberson 2014 年 2 月 21 日
But is there an opencv/cv.h ?
What happens if you copy cv.h into opencv/ ?

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeComputer Vision Toolbox についてさらに検索

質問済み:

2014 年 2 月 20 日

コメント済み:

2014 年 2 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by