Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open GL compilation error #81

Open
YonatanSimson opened this issue Mar 3, 2017 · 5 comments
Open

Open GL compilation error #81

YonatanSimson opened this issue Mar 3, 2017 · 5 comments

Comments

@YonatanSimson
Copy link

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
Copy link

Maggie0616GitHub commented May 18, 2017

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
Copy link

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
Copy link

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

I can help @Maggie0616GitHub if you need.

@Maggie0616GitHub
Copy link

Thank you very much!! I succeed! @ahmetozlu

@orgicus
Copy link

orgicus commented Feb 13, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants