Compilation error on DirectFB events

Hi folks,

I’m trying to compile the stable SDL 1.2.4 on a RedHat 7.2,
and I get the following error :

SDL_DirectFB_events.c: In function DirectFB_InitOSKeymap': SDL_DirectFB_events.c:103:DIKC_A’ undeclared (first use in this function)
SDL_DirectFB_events.c:103: (Each undeclared identifier is reported only once
SDL_DirectFB_events.c:103: for each function it appears in.)
SDL_DirectFB_events.c:104: DIKC_B' undeclared (first use in this function) SDL_DirectFB_events.c:105:DIKC_C’ undeclared (first use in this function)
[…many similar lines removed]
SDL_DirectFB_events.c:189: DIKC_MENU' undeclared (first use in this function) SDL_DirectFB_events.c:190:DIKC_HELP’ undeclared (first use in this function)
SDL_DirectFB_events.c:191: DIKC_BACK' undeclared (first use in this function) SDL_DirectFB_events.c: In functionDirectFB_TranslateKey’:
SDL_DirectFB_events.c:198: structure has no member named keycode' SDL_DirectFB_events.c:202: structure has no member namedkey_ascii’
SDL_DirectFB_events.c:202: structure has no member named key_ascii' SDL_DirectFB_events.c:203: structure has no member namedkey_ascii’
SDL_DirectFB_events.c:205: structure has no member named `keycode’
make[3]: *** [SDL_DirectFB_events.lo] Error 1

All I did was download, unpack, ./configure, then make, that’s it.

I tried find/grep on the entire SDL source, there’s no definition of these DIKC_
constants anywhere. I went over the SDL FAQ as well, no help there.

Any suggestions on might be wrong or missing here ?

The strange thing is, I actually started out with DirectFB 0.9.12, which I
compiled, but without AVI ; then I wanted to add avifile 0.6.0, it said it
required SDL 1.1.3 or higher ; so I got SDL, and now it complains about DirectFB
! This is going circular :frowning:

Any help will be very welcome,

Thanks,
Joao

Hi folks,

I’m trying to compile the stable SDL 1.2.4 on a RedHat 7.2,
and I get the following error :

SDL_DirectFB_events.c: In function DirectFB_InitOSKeymap': SDL_DirectFB_events.c:103:DIKC_A’ undeclared (first use in this function)

It sounds like you have an older version of DirectFB. Did you try
upgrading that?

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

Hi Sam,

I’m trying to compile the stable SDL 1.2.4 on a RedHat 7.2,
and I get the following error :

SDL_DirectFB_events.c: In function DirectFB_InitOSKeymap': SDL_DirectFB_events.c:103:DIKC_A’ undeclared (first use in this function)

It sounds like you have an older version of DirectFB. Did you try
upgrading that?

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

Following your suggestion, I investigated the different versions, and I actually
think it’s the other way around : SDL 1.2.4 is relying on an older version of
DirectFB.

DirectFB 0.9.10 used to define key codes as DIKC_xx, which is precisely what the
SDL_DirectFB_events.c file in SDL 1.2.4 is using. The newer 0.9.12 defines key
indentifiers as DIKI_xx and key symbols as DIKS_xx, and the DIKC_ constants have
all but disappeared (the news page at www.directfb.org says that 0.9.11
introduced new keyboard handling, that’s what tipped me off).

I guess SDL 1.2.4 would have compiled against DirectFB 0.9.10, but I didn’t test
it (I’ll try that source snapshot from SDL 1.2 unstable).

Cheers,
Joao

I guess SDL 1.2.4 would have compiled against DirectFB 0.9.10, but I didn’t test
it (I’ll try that source snapshot from SDL 1.2 unstable).

Ah, okay. You’ll need to get DirectFB CVS for use with SDL CVS.

See ya!
-Sam Lantinga, Software Engineer, Blizzard Entertainment