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 个评论
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
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 个评论
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
Evidence for SDK7.1 not having it is http://stackoverflow.com/questions/23935748/use-openmp-with-windows-sdk
I do not find particular information about SDK8 or SDK10 having it or not.
另请参阅
类别
在 Help Center 和 File 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!