Cannot compile on Ubuntu - Typedef Redefinition
Opened this issue · 0 comments
mfischer-ucl commented
Hi, thanks for making the code publicly available. I tried compiling the project on QT, Ubuntu 20.04, and ran into the following when building:
Light-Propagation-Volumes/src/headers/openGLTypes.h:39: error: typedef redefinition with different types ('int64' (aka 'long long') vs 'khronos_int64_t' (aka 'long'))
Light-Propagation-Volumes/src/headers/openGLTypes.h:45: error: typedef redefinition with different types ('uint64' (aka 'unsigned long long') vs 'khronos_uint64_t' (aka 'unsigned long'))
Light-Propagation-Volumes/src/headers/openGLTypes.h:53: error: typedef redefinition with different types ('int32' (aka 'int') vs 'khronos_intptr_t' (aka 'long'))
Light-Propagation-Volumes/src/headers/openGLTypes.h:54: error: typedef redefinition with different types ('int32' (aka 'int') vs 'khronos_ssize_t' (aka 'long'))
The previous declarations apparently are in glext.h:
typedef khronos_uint64_t GLuint64;
typedef khronos_int64_t GLint64;
typedef khronos_ssize_t GLsizeiptr;
typedef khronos_intptr_t GLintptr;
which is never (explicitly) included in the project. I read about some incompatibility between OpenGLES here, but don't really know what to make of it. The only header file I include in openGLTypes.h is #include <GL/glx.h>. When changing that to glew.h, I get around 2000 build errors and unresolved filenames, etc. Changing the compiler from -pendantic to -fpermissive did nothing, unfortunately.
Any help greatly appreciated!