rust-qt / examples

Rust + Qt examples
149 stars 14 forks source link

'GL/gl.h' file not found #11

Closed carlostrub closed 3 years ago

carlostrub commented 4 years ago

I constantly get the following build errors:

'GL/gl.h' file not found

However, that library is installed under

/usr/local/include/qt5/QtOpenGL/qgl.h

Any ideas?

Riateche commented 4 years ago

You need to install OpenGL development headers. How to do that depends on your OS, e.g. on Debian-based systems you need to install mesa-common-dev.

carlostrub commented 4 years ago

The headers are present, but maybe under an unusual location, i.e.

/usr/local/include/GL/gl.h

which is the standard FreeBSD location. Any ideas why the compiler does not search there?

Riateche commented 4 years ago

What is your default C++ compiler? This issue says about a similar problem with clang. You can try to specify CPATH=/usr/local/include environment variable to add the directory to the search list (this variable should be recognized by both clang and gcc).

Riateche commented 3 years ago

Closed because of inactivity.