MasteringOpenCV / code

Code for the book "Mastering OpenCV with Practical Computer Vision Projects" by Packt Publishing 2012.
Other
2.71k stars 1.64k forks source link

Open GL compilation error #81

Open YonatanSimson opened 7 years ago

YonatanSimson commented 7 years ago

In order to get the example from chapter 3 to compile one should replace

include <gl/gl.h>

include <gl/glu.h>

with:

include <GL/gl.h>

include <GL/glu.h>

Maggie0616GitHub commented 7 years ago

hello,I compiled chapter 3's codes in the environment of Linux. I used your method,but it didn't work.so,which system did you use? Windows?or Linux? And the author of this book said that we need install Opencv with opengl support. But,I failed.Help me!!! @YonatanSimson Thanks!

ahmetozlu commented 7 years ago

You should compile OpenCV source codes with OpenGL support and then use it. That's it! You can use CMake for compiling OpenCV with OpenGL support on Windows platform.

ahmetozlu commented 7 years ago

https://www.youtube.com/watch?v=caWl8nG6mLk

I can help @Maggie0616GitHub if you need.

Maggie0616GitHub commented 7 years ago

Thank you very much!! I succeed! @ahmetozlu

orgicus commented 3 years ago

I ran into many GL header related errors using Visusal Studio 2019.

The solution in my case was to simply: #include <windows.h> before GL.

HTH