Trouble enabling OpenGL when compiling with Windows SDK7.1 in MATLAB
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Walter Roberson
el 20 de En. de 2017
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.
Respuestas (1)
Walter Roberson
el 20 de En. de 2017
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 comentarios
Walter Roberson
el 20 de En. de 2017
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.
Ver también
Categorías
Más información sobre Troubleshooting in MATLAB Compiler SDK en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!