Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DRM mode on raspberry pi 4b Error: Couldn't find file "symbols/US" in include paths #387

Closed
talksik opened this issue Sep 22, 2023 · 3 comments
Labels
drm Topics of DRM backend question Further information is requested

Comments

@talksik
Copy link

talksik commented Sep 22, 2023

Environment: Raspberry pi 4b running headless mode (Raspbian OS lite 64bit)

Problem

I installed all dependencies as per this.

  1. SSH into raspberry pi 4b
  2. cd /opt
  3. flutter-elinux create helloworld
  4. cd helloworld
  5. flutter-elinux build elinux --debug --target-backend-type=gbm
  6. cd build/.../bundle
  7. Run the below command
sudo FLUTTER_DRM_DEVICE=/dev/dri/card1 ./helloworld -b /opt/helloworld/build/elinux/arm64/debug/bundle/
xkbcommon: ERROR: Couldn't find file "symbols/US" in include paths
xkbcommon: ERROR: 1 include paths searched:
xkbcommon: ERROR:       /usr/share/X11/xkb
xkbcommon: ERROR: 3 include paths could not be added:
xkbcommon: ERROR:       /root/.config/xkb
xkbcommon: ERROR:       /root/.xkb
xkbcommon: ERROR:       /etc/xkb
xkbcommon: ERROR: Abandoning symbols file "(unnamed)"
xkbcommon: ERROR: Failed to compile xkb_symbols
xkbcommon: ERROR: Failed to compile keymap
Segmentation fault

Solution

I was able to fix this by doing a mere:
sudo cp /usr/share/X11/xkb/symbols/us /usr/share/X11/xkb/symbols/US

I am no expert on linux or flutter embedded. For some reason the libxkbcommon package on raspbian has the symbols file for US layout as lowercase 'us'.

I hope that this helps others out there!

Question

Out of curiosity and to help me get to the bottom of this, what part of elinux is setting this include path of "symbols/US"? Or is it a bug in Raspbian?

@HidenoriMatsubayashi
Copy link
Contributor

HidenoriMatsubayashi commented Sep 23, 2023

I'm not sure. I'm using the latest Raspbian OS (2023-05-03-raspios-bullseye-arm64.img) + RPI4, but it works fine without that error. So, it depends on your locale, keyboard settings and so on. This might help you.

BTW, you created sony/flutter-elinux#199 before, right? You might prefer Qt rather than flutter, but this is an open source software and no one is in charge and there is no commitment. So please don't create or put comments such kind of issues in the future🙂

@HidenoriMatsubayashi HidenoriMatsubayashi added question Further information is requested drm Topics of DRM backend labels Sep 23, 2023
@talksik
Copy link
Author

talksik commented Sep 23, 2023

@HidenoriMatsubayashi sorry if that post came across as negative.

When you say, don't create or put comments, do you mean this post or the linked post?

Anyway, I wanted to just help others out there with this post. The linked post about Qt was also just to help others. If you would like to re-word that post, please do so.

@HidenoriMatsubayashi
Copy link
Contributor

I mean the lined post. Thanks. Closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
drm Topics of DRM backend question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants