-
Notifications
You must be signed in to change notification settings - Fork 47
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
Failed to create view controller (DRM backend) #121
Comments
You should paste your log. |
I have
|
Please use debug builds.
|
HA! I see ^_^
|
According to the log message, |
I have tried
But there is error
|
Can you please comment-out |
Or can you update your kernel version to more newest version? |
I just want to see the result of elinux flutter. So I don't compile it. I see it has no the api. Can I update the libdrm to fix it? |
I think the first one is easier than building of the libdrm. Can you try it? After modifying the source file, you can build $ cmake -DBUILD_ELINUX_SO=ON -DBACKEND_TYPE=DRM-GBM -DCMAKE_BUILD_TYPE=Release -DENABLE_ELINUX_EMBEDDER_LOG=ON -DFLUTTER_RELEASE=OFF .. |
Do I need to set the sysroot? |
I need to cross compile, it seem to have no |
Simply, you can build .so file for arm64 on arm64 docker. No sysroot as it's self build on arm64. |
That means I must put the source to the docker, and compile it? |
Yes, that's right. Because it's easy to build than cross-buildings. |
HA! It's too slow.
But it's failed |
Please copy |
|
|
|
Yes. |
The device has tow cards |
Have you set |
Is it here? I find that if I turn on weston and the elinux change to |
Did you stop Wayland & Weston before running flutter for DRM? see https://github.com/sony/flutter-embedded-linux/wiki/How-to-run-Flutter-apps#2-run-with-drm-backend |
Because you are using debug mode. |
if |
I see that |
Yes. Please don't launch any window manager using DRM. |
But it'still
|
Hmm, I'm afraid that I have no idea to resolve it. It would be great if you investigate/debug this issue. |
It seem that |
Hi I'm getting a very similar issue when trying to run inside a docker container on a Jetson Nano host. Here is my command/output:
But the
Is there anything else i can provide to help debug? |
Can you try the same thing outside the docker container? |
Looks like it was a permission issue, I added
Both display and input are working when running outside of the container. |
Okay. BTW, which JetPack version are you using? |
After some more debugging this is another permission issue it seems. Added
I then added
Jetpack is |
Thanks for the information. |
@sullivanj91 |
This comment was marked as resolved.
This comment was marked as resolved.
I also ran into this problem, which was eventually solved by finding the right graphical library, my device is |
I follow your steps to cross compile with docker.
When I run it on the board, I find that
Failed to create view controller
FLUTTER_LOG_LEVELS=TRACE FLUTTER_DRM_DEVICE="/dev/dri/card1" /root/bundle/elinux --bundle=/root/bundle
My CPU is rk3568 and my build command
flutter-elinux build elinux --target-arch=arm64 --target-sysroot=~/ubuntu18-arm64-sysroot/ --target-backend-type=gbm
The text was updated successfully, but these errors were encountered: