case SDL_KEYMAPCHANGED

Support for running, installing or compiling OpenMW

Before you submit a bug report for the first time, please read: Bug reporting guidelines
Post Reply
nif
Posts: 8
Joined: 14 Apr 2015, 03:11

case SDL_KEYMAPCHANGED

Post by nif » 23 Feb 2018, 07:46

Trying to compile from latest head (9b8c56761b5c9b398aebb91fec6adf25208c24d9) I get this error after running make:

Code: Select all

[ 21%] Building CXX object components/CMakeFiles/components.dir/sdlutil/sdlcursormanager.cpp.o
/home/derrick/games/OpenMW/openmw/components/sdlutil/sdlinputwrapper.cpp: In member function ‘void SDLUtil::InputWrapper::capture(bool)’:
/home/derrick/games/OpenMW/openmw/components/sdlutil/sdlinputwrapper.cpp:113:22: error: ‘SDL_KEYMAPCHANGED’ was not declared in this scope
                 case SDL_KEYMAPCHANGED:
                      ^
[ 21%] Building CXX object components/CMakeFiles/components.dir/version/version.cpp.o
[ 21%] Building CXX object components/CMakeFiles/components.dir/fallback/fallback.cpp.o
make[2]: *** [components/CMakeFiles/components.dir/sdlutil/sdlinputwrapper.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [components/CMakeFiles/components.dir/all] Error 2
make: *** [all] Error 2
Ubuntu 14.04

User avatar
akortunov
Posts: 475
Joined: 13 Mar 2017, 13:49
Location: Samara, Russian Federation
Github profile: https://github.com/akortunov

Re: case SDL_KEYMAPCHANGED

Post by akortunov » 23 Feb 2018, 08:46

SDL_KEYMAPCHANGED was added in SDL 2.0.4, so you can try to use it or later versions. Google says Trusty uses the 2.0.2.

The only place which uses this event is here.
But anyway this behaviour is strange since this code should be omitted by preprocessor if you have the old SDL.
Maybe a some kind of false-detection involved.

nif
Posts: 8
Joined: 14 Apr 2015, 03:11

Re: case SDL_KEYMAPCHANGED

Post by nif » 24 Feb 2018, 08:15

Thanks, I was able to compile after installing SDL 2.0.7

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests