[Bf-committers] freebsd, blender, glew, glu ~ error

Campbell Barton ideasman42 at gmail.com
Thu Mar 10 23:11:13 CET 2011


On Thu, Mar 10, 2011 at 2:24 PM, pete larabell <xgl.asyliax at gmail.com> wrote:
> Is this to update the blender copy or my system copy?
>
> On Wed, Mar 9, 2011 at 7:15 PM, Campbell Barton <ideasman42 at gmail.com>wrote:
>
>> On Wed, Mar 9, 2011 at 7:43 PM, pete larabell <xgl.asyliax at gmail.com>
>> wrote:
>> > Hi everyone,
>> >
>> > As it turns out, I spoke too soon yesterday saying the problem was
>> resolved,
>> > as now I've put more time into it and it is not resolved.
>> >
>> > The error I'm getting is as follows:
>> >
>> > When doing a straight compile after svn up:
>> >
>> > I get
>> >
>> > /usr/local/include/GL/glu.h:287: error: function declaration isn't a
>> > prototype
>> >
>> > If I then comment (in ~/blender-svn/blender) CMakeLists.txt the line for
>> > checking strict-protoypes, I get much further into the compile, and then
>> > get:
>> >
>> > ~/blender-svn/blender/extern/glew/src/glew.c:1358: error: expected '=',
>> ',',
>> > ';', 'asm' or '__attribute__' before '__glewGetPointervEXT'
>> >
>> > There was a semi-fix that adding (void) to two declarations in the
>> system's
>> > /usr/local/include/GL/glu.h and /usr/local/include/GL/glew.h but that
>> > introduces new errors and for obvious reasons isn't a good way to fix the
>> > error.
>> >
>> > Anyone out there with enough knowledge about blender's glew that could
>> give
>> > me a hand with this one???
>> >
>> > Thanks!
>> > Peter
>>
>> That define's been removed from more recent glew versions:
>>
>> looks like we're at 1.5.1 now, patch to update to 1.5.8
>> http://www.graphicall.org/ftp/ideasman42/glew_1_5_8.diff

This is just the files from 1.5.8 copied over ours, apply like any
other blender patch from the svn root.

But for a temp fix I think you could comment out the line which causes
that error.

-- 
- Campbell


More information about the Bf-committers mailing list