Facing problem in generating a mex file
27 views (last 30 days)
Show older comments
I have install opencv also and give following syntax as directed in github but is showing below error
mex generateEllipseCandidates.cpp -IC:\Program Files\MATLAB\opencv-2.4.9\build\include -IC:\Program Files\MATLAB\opencv-2.4.9\build\include\opencv -IC:\Program Files\MATLAB\opencv-2.4.9\build\include\opencv2 -lC:\Program Files\MATLAB\opencv-2.4.9\build\x64\vc11\lib -IC:\Program Files\MATLAB\R2019b\extern\include -lC:\Program Files\MATLAB\R2019b\extern\lib\win64\microsoft -lopencv_core249 -lopencv_highgui249 -lopencv_imgproc249 -llibmwlapack.lib
Error using mex
C:\ProgramFiles\MATLAB\High-quality-ellipse-detection-master\High-quality-ellipse-detection-master\Files\MATLAB\opencv-2.4.9\build\include
not found; check that you are in the correct current folder, and check the spelling of 'C:\Program
Files\MATLAB\High-quality-ellipse-detection-master\High-quality-ellipse-detection-master\Files\MATLAB\opencv-2.4.9\build\include'.
0 Comments
Answers (1)
Praveen Iyyappan Valsala
on 8 Nov 2019
Could be because of the spaces in the file paths. Try encapsulating them in double quotes.
mex generateEllipseCandidates.cpp -I"C:\Program Files\MATLAB\opencv-2.4.9\build\include" ...
source: https://in.mathworks.com/matlabcentral/answers/443823-mex-include-path-merged-with-working-directory-path
0 Comments
See Also
Categories
Find more on Write C Functions Callable from MATLAB (MEX Files) in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!