kamocat Posted August 15, 2018 Report Share Posted August 15, 2018 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 More sharing options...
inmarket Posted August 17, 2018 Report Share Posted August 17, 2018 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 More sharing options...
kamocat Posted August 17, 2018 Author Report Share Posted August 17, 2018 Thanks! Xorg seems to work fine. I imagine that it's an issue with SDL on my computer - I don't think I have any other applications that use it. Link to comment Share on other sites More sharing options...
inmarket Posted August 18, 2018 Report Share Posted August 18, 2018 Great that you got it working Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now