sergiomb2 / pinball

The Emilia Pinball Project , last code available and 2 new tables
Other
12 stars 5 forks source link

Compilaton error: unknown type name 'SDLKey' #29

Closed thierry-FreeBSD closed 5 years ago

thierry-FreeBSD commented 5 years ago

Hello, I'm trying to build pinball on FreeBSD, against SDL2, but compilation aborts with the following message:

c++ -DHAVE_CONFIG_H -I. -I..  -I../base -DRZR_LIBSTATIC -isystem /usr/local/include -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE  -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include  -MT Sphere.o -MD -MP -MF .deps/Sphere.Tpo -c -o Sphere.o Sphere.cpp
In file included from KeyRotBehavior.cpp:12:
../base/Keyboard.h:128:10: error: unknown type name 'SDLKey'
  static EMKey waitForKey();
         ^
../base/Keyboard.h:19:15: note: expanded from macro 'EMKey'
#define EMKey SDLKey
              ^
1 error generated.
sergiomb2 commented 5 years ago

SDL2 support is available only on devel branch and load screens have some bugs (you need to press some key to refresh the screen buffer) , so isn't in any release yet [1]. Pull requests to fix it are welcomed.

[1] https://github.com/sergiomb2/pinball/compare/0.3.4...devel

thierry-FreeBSD commented 5 years ago

OK, thanks for the answer!