On 7/06/12 18:53, Alexander Hansen wrote:
> On 6/7/12 9:28 AM, Michael Teitelbaum wrote:
[]
>>>>> freeglut_xinput.c: In function 'fgHandleExtensionEvents':
>>>>> freeglut_xinput.c:149: error: 'XGenericEventCookie' undeclared (first
[]
>>> I found what appears to be the same error that was reported on Fink's
>>> IRC channel:
>>>
>>> http://paste.lisp.org/display/129606
>>>
>>> Check your /usr/X11/include/X11/Xlib.h and make sure that
>>> XGenericEventCookie is defined in that.
>>>
>
> I've got a couple of suggestions:
>
> 1) Try "fink install octave361" again, and when it asks you about
> ghostscript, select "ghostscript-nox". That's the only connection that
> I've found between octave and freeglut.
>
> 2) It seems that freeglut is no longer compatible with the stock X11
> from 10.5 (assuming that's what you have installed). You might install
> Xquartz-2.6.3 from http://xquartz.macosforge.org/trac/wiki/X112.6.3.
The explanation must be a little more complicated: I just rebuilt
freeglut successfully both on 10.5.8 with stock X11 and on 10.6.8 with
stock X11, which doesn't have XGenericEventCookie either.
In fact, the symbol in question is protected in freeglut_xinput.c by
#if TARGET_HOST_POSIX_X11 && HAVE_X11_EXTENSIONS_XINPUT2_H
The second symbol HAVE_X11_EXTENSIONS_XINPUT2_H should be defined only
if the file
/usr/X11/include/X11/extensions/XInput2.h (note the "2")
exists.Thus there are two possibilities, and in both cases freeglut
builds successfully:
a) in older X11 versions (at least up to Xquartz-2.3.6):
XInput2.h does not exist and Xlib.h does not define XGenericEventCookie
b) in newer X11 versions (stock X11 on 10.7, for example):
XInput2.h exists and Xlib.h defines XGenericEventCookie
The observed error indicates that a mixture of a) and b) is installed,
namely the new XInput2.h and the old version of Xlib.h.
--
Martin
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fink-beginners mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.apple.fink.beginners
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-beginners