フィルターのクリア

Cpp file in Matlab

2 ビュー (過去 30 日間)
Abdelkhalek Bakkari
Abdelkhalek Bakkari 2015 年 1 月 14 日
コメント済み: Titus Edelhofer 2015 年 1 月 14 日
HI,
I am really very Frustrated of doing mex stuff, I am trying for more than 3 Days I know there is very little thing that need to be done to make mex displayImage.cpp to work
I have installed VS10, SDK7.1, MAtlab2012b,opencv 2.4.9, Everything is fine if I run the cpp File it gives me following error :
>> mex Loadimage.cpp
C:/opencv/build/include/opencv/cv.h(63) : fatal error C1083: Cannot open include file: 'opencv2/core/core_c.h': No such file or directory
C:\PROGRA~1\MATLAB\R2012B\BIN\MEX.PL: Error: Compile of 'Loadimage.cpp' failed.
Error using mex (line 206) Unable to complete successfully.
Please, help me.

採用された回答

Titus Edelhofer
Titus Edelhofer 2015 年 1 月 14 日
Hi,
you will need to tell mex where to find the include files, and probably also the library files. Your call should look something like
mex -I"C:\Program Files\opencv\include" Loadimage.cpp -l"C:\Program Files\opencv\lib" -Lopencv.lib
Take a look at the doc for mex and there at the flags "-I", "-L", "-l".
Titus
  2 件のコメント
Abdelkhalek Bakkari
Abdelkhalek Bakkari 2015 年 1 月 14 日
Can you help me using teamviewer please ?
Titus Edelhofer
Titus Edelhofer 2015 年 1 月 14 日
Unfortunately no. Please take a look at the documentation, give it try, and post what you've done and what problems you face ...
Titus

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by