no example compiles with GLEW 1.8 on Archlinux #1637

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

Projects

None yet

3 participants

@benben
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
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
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
Member
benben commented Oct 4, 2012

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

@benben
Member
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
Member

@arturoc thoughts on this?

@arturoc
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
Member

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

@benben
Member
benben commented Oct 4, 2012

https://gist.github.com/3833784

this is the default untouched header file from glew1.8

@benben
Member
benben commented Oct 4, 2012

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

@arturoc
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
Member
benben commented Oct 4, 2012

same error

@arturoc arturoc closed this in 4c2401a Oct 20, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment