Skip to content

gbm : failed to open any driver #203

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

Closed
HoseinHaqiqian opened this issue Oct 10, 2021 · 3 comments
Closed

gbm : failed to open any driver #203

HoseinHaqiqian opened this issue Oct 10, 2021 · 3 comments

Comments

@HoseinHaqiqian
Copy link

HoseinHaqiqian commented Oct 10, 2021

Device : Orange-pi lite
CPU : Cortex-A7

I did all steps & after running flutter-pi flutter_assets i've got this error:

Could not set DRM client universal planes capable. drmSetClientCap: Operation not supported
[flutter-pi] Could not create drmdev from device at "/dev/dri/card1". Continuing.
[flutter-pi] WARNING: display didn't provide valid physical dimensions.
The device-pixel ratio will default to 1.0, which may not be the fitting device-pixel ratio for your display.
===================================
display mode:
resolution: 800 x 480
refresh rate: 60Hz
physical size: 0mm x 0mm
flutter device pixel ratio: 1.000000
===================================
gbm: failed to open any driver (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
gbm: Last dlopen error: /usr/lib/dri/sun4i-drm_dri.so: cannot open shared object file: No such file or directory
failed to load driver: sun4i-drm
[flutter-pi] Could not create GBM Surface. gbm_surface_create_with_modifiers: Function not implemented

@ardera
Copy link
Owner

ardera commented Oct 10, 2021

Can you try installing libgl1-mesa-dri using apt?

@HoseinHaqiqian
Copy link
Author

Already installed.
I also have a RPI4, and i am getting Invalid SDK hash

@ardera
Copy link
Owner

ardera commented Oct 11, 2021

You can try building mesa yourself or using a different distro, someone one the discord mentioned that armbian worked well for him with a Tinkerboard (DietPi didn't for example, though don't know what you're using right now though)

I also have a RPI4, and i am getting Invalid SDK hash

That's probably related to ardera/flutter-engine-binaries-for-arm#4 or #202, I'll compile them when I find the time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants