Jump to content

Could not initialize SDL: Unable to initialize udev


kamocat

Recommended Posts

Hi Folks,

I'm trying to develop a UI on my Linux laptop, before migrating over to stm32.

I can compile and run the demos with framebuffer, but as I then have no keyboard or mouse input, I don't see how I would interact with the programs. (My laptop does not have a touchscreen).

So, I'm trying to use SDL2.

I have installed the 32-bit libraries. It seems to compile fine, aside from warnings like "skipping incompatible /usr/lib/libSDL2.so when searching for -lSDL2".

However, when I try to run it, I get

Quote

Unable to initialize SDL: Could not initialize UDEV

Is this a permissions issue? Or a udev issue?

I'm running arch linux 64-bit, if that helps.

Link to comment
Share on other sites

I can't answer the SDL questions but I have answers for the other aspects.

1. You can use the Linux event driver to get mouse/touch input when using framebuffer. Similarly I believe there is also a Linux tty keyboard driver.

2. You can use the X driver to provide display, mouse & keyboard. Although it is slower than framebuffer or SDL, for something being used for prototyping before moving to real hardware, it is ideal and much easier to get working than SDL.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...