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

Cannot compile on Ubuntu - Typedef Redefinition #1

Open
mfischer-ucl opened this issue Jun 24, 2022 · 0 comments
Open

Cannot compile on Ubuntu - Typedef Redefinition #1

mfischer-ucl opened this issue Jun 24, 2022 · 0 comments

Comments

@mfischer-ucl
Copy link

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!

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

1 participant