[Scummvm-devel] Testing needed for GSoC OpenGL Branch

Hubert Maier raziel_nosgoth at web.de
Thu Aug 5 20:44:21 CEST 2010


Hallo vgvgvgf,

> I get an error on the very same file

>     C++      backends/graphics/opengl/opengl-graphics.o
> In file included from ./backends/graphics/graphics.h:31,
>                  from ./backends/graphics/opengl/opengl-graphics.h:30,
>                  from backends/graphics/opengl/opengl-graphics.cpp:28:
> ./common/keyboard.h:69: error: expected identifier before numeric constant
> ./common/keyboard.h:69: error: expected `}' before numeric constant
> ./common/keyboard.h:69: error: expected unqualified-id before numeric
> constant ./common/keyboard.h:183: error: extra ';'
> ./common/keyboard.h:236: error: 'KeyCode' does not name a type
> ./common/keyboard.h:259: error: expected `)' before 'kc'
> ./common/keyboard.h:265: error: expected `)' before 'kc'
> ./common/keyboard.h: In member function 'void KeyState::reset()':
> ./common/keyboard.h:272: error: 'keycode' was not declared in this scope
> ./common/keyboard.h:272: error: 'KEYCODE_INVALID' was not declared in this
> scope ./common/keyboard.h: In member function 'bool
> KeyState::operator==(const KeyState&) const':
> ./common/keyboard.h:289: error: 'keycode' was not declared in this scope
> ./common/keyboard.h:289: error: 'const struct KeyState' has no member named
> 'keycode'
> ./common/keyboard.h: At global scope:
> ./common/keyboard.h:293: error: expected declaration before '}' token
> gmake: *** [backends/graphics/opengl/opengl-graphics.o] Error 1

Replying to self as i have fixed this error on the Residual port aswell

There are defines of 
KEYCODE_LESS = 60, 
and 
KEYCODE_GREATER = 62, 
which are both already defined in SDK:include/include_h/intuition/ intuition.h on
AmigaOS4 

A workaround for me is to comment out those two lines in common/keyboard.h, lines
69 and 71, but of course this will break other ports.

Ciao,

Hubert
-- 
    Amiga On(e)ce, now and (OS)4 ever ...
<sb>
AOneXE - MPC7447/7457/950
A4000D - MC68060/50
<sb>
In crises that force people to choose among alternative courses of action, most
people will choose the worst one possible.
-- Rudin's Law
<sb>
AMIGA!    The path visionaries will follow ... always!





More information about the Scummvm-devel mailing list