Borrar filtros
Borrar filtros

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

2 visualizaciones (últimos 30 días)
FENG XU
FENG XU el 20 de En. de 2017
Comentada: Walter Roberson el 20 de En. de 2017
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
FENG XU
FENG XU el 20 de En. de 2017
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 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.

Iniciar sesión para comentar.

Respuestas (1)

Walter Roberson
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
FENG XU
FENG XU el 20 de En. de 2017
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 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
I do not find particular information about SDK8 or SDK10 having it or not.

Iniciar sesión para comentar.

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!

Translated by