SDL2 Initialization Error

Hi, I’m running Xubuntu 17.04 I believe, I’ve installed SDL2 via apt-get install libsdl2*

When I try to run a program I wrote when I call function SDL_Init(SDL_INIT_EVERYTHING) it fails, SDL_GetError reports:

Failed loading udev_device_get_action: /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0: undefined symbol: _udev_device_get_action

I’m not quite sure how to fix it, it seems like it’s a linking error with the library itself maybe. Any help is appreciated.

udev_device_get_action is in libudev-dev , but why didn’t it install that as a dependency… i have really never tried to use * in that way, did it install libsdl2-dev ?

Yes, it install libsdl2-dev as well. I do it that way because I am lazy udev is installed as well as libudev-dev

You may try to compile and run some examples from the SDL2 source, like this one https://hg.libsdl.org/SDL/file/874fb85ef7b7/test/testbounds.c , still the same error?