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

no example compiles with GLEW 1.8 on Archlinux #1637

Closed
benben opened this issue Oct 4, 2012 · 11 comments
Closed

no example compiles with GLEW 1.8 on Archlinux #1637

benben opened this issue Oct 4, 2012 · 11 comments

Comments

@benben
Copy link
Member

benben commented Oct 4, 2012

did my testrun and all examples are broken with glew1.8 on archlinux :(

see here for example: http://videosynthesis.net/oftesting/testruns/run_2012-10-03_205648/vagrant-archlinux-gnome-32bit/tests/noiseField2dExample/

manually downgrading to glew1.7 fixed it.

are there any suggestion how we can fix this? Will be happy to test, help, hack around on this issue! ❤️

/edit/

upgrading to glew1.9 exits with the same error.

@bilderbuchi
Copy link
Member

does glew1.8/1.9 work on other distros? i.e. is this an arch-issue or a glew-issue? my current ubuntu is on glew 1.6.

@bilderbuchi
Copy link
Member

Two things in the GLEW changelog jump at me, which could be causing this maybe:

GLX_NV_video_out replaces GLX_NV_video_output
Linux needs to define GLEW_STATIC for static library builds

could you try defining the latter and see if it fixes this?

@benben
Copy link
Member Author

benben commented Oct 4, 2012

added #define GLEW_STATIC just before the glxew.h include in ofConstants.h. error is the same

@benben
Copy link
Member Author

benben commented Oct 4, 2012

interestingly GLEW_STATIC is defined for win platforms...

I created a small glew example, used the includes from ofConstants.h and it compiled fine. Could it be a problem with the Makefile?

@bilderbuchi
Copy link
Member

@arturoc thoughts on this?

@arturoc
Copy link
Member

arturoc commented Oct 4, 2012

we don't use static libraries for glew so i think it has no relation with that macro. i added an include to glxew. recently to add a new method to activate the vertical refresh, and it seems related to that, probably you need to define some macro but no idea of which one. also i've downloaded glew 1.9 but the line numbers don't match with the ones in your errors, can you post your glxew.h somewhere also are you using the same glew for the libraries package and dev package? we've had problems before because of having different versions for those. perhaps you are still using 1.8 for the dev pkg?

@bilderbuchi
Copy link
Member

his error log is probably for glew 1.8, which I think is the default version for arch currently.

@benben
Copy link
Member Author

benben commented Oct 4, 2012

https://gist.github.com/3833784

this is the default untouched header file from glew1.8

@benben
Copy link
Member Author

benben commented Oct 4, 2012

btw: there are no seperate *-dev packages on archlinux. all the stuff comes with the normal packages.

@arturoc
Copy link
Member

arturoc commented Oct 4, 2012

don't think this is going to fix it but can you try to change the includes in ofConstants.h line 140 to:

    #include <glxew.h>
    #include <GL/glew.h>
    #include <GL/gl.h>
    #define GL_GLEXT_PROTOTYPES
    #include <GL/glx.h>
    #include <unistd.h>

note the different order

@benben
Copy link
Member Author

benben commented Oct 4, 2012

same error

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

No branches or pull requests

3 participants