Trouble enabling OpenGL when compiling with Windows SDK7.1 in MATLAB

2 次查看(过去 30 天)
Hi All,
I'm dealing with an image processing toolbox and came across the problem of unable to get OpenGl to work properly.
What I've tried is to compile the files I have using '/openmp'. But I got the error message of 'fatal error C1083: Cannot open include file: 'omp.h': No such file or directory'.
The compiler I use is the windows SDK7.1 and the version of MatLab I have is R2015a.
Any input? I'd appreciate any help. Thank you!
-Feng
  3 个评论
FENG XU
FENG XU 2017-1-20
Yes! According to my understanding, what OpenGL tries to do is actually to make the processing task to run in multi-threaded environment.
Walter Roberson
Walter Roberson 2017-1-20
Glancing into the opengl forums, it looks to me as if using OpenMP with OpenGL is optional and somewhat tricky to use. You can compute the vertex arrays in different threads, but you mostly need to do all the rendering from one thread.

请先登录,再进行评论。

回答(1 个)

Walter Roberson
Walter Roberson 2017-1-20
I find definite statements that omp.h was not included in VS 2010 Express. I find weaker evidence (perhaps I did not look long enough for something more definite) that omp.h was not included in SDK 7.1.
  2 个评论
FENG XU
FENG XU 2017-1-20
Thank you Walter. That's also my guess, but I couldn't find any evidence supporting this idea. Assuming it's true, do you have any suggestion to get over this? Would installing a newer version of VS or SDK help?
Walter Roberson
Walter Roberson 2017-1-20
Any new-ish VS other than 2010 Express would seem to have it. (Note: the Express and Community versions are not supported in recent MATLAB.) VS 2008 appears to need a patch
I do not find particular information about SDK8 or SDK10 having it or not.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Troubleshooting in MATLAB Compiler SDK 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by