你好,谢谢你的光临!
到目前为止,在我的dev.笔记本电脑(Linux AMD64)上的体验很好,但我想开发的应用程序主要针对基于ARM64的Linux单板计算机。
首先,我尝试从目标设置为ARM64的笔记本电脑上进行交叉编译,但我收到一个错误,指出当前不支持此功能(从AMD64对ARM64进行交叉编译)。我尝试手动安装Flutter SDK,并在ARM64板(OrangePI4LTS ArmbianOS)上配置VSCode,在我尝试运行应用程序之前,一切似乎都正常。我使用命令面板中的create new flutter项目构建了一个演示应用程序,并试图运行它(调试或发布模式),但遇到了以下错误:
eos@orangepi4-lts:~/VSsandbox/my_app$ flutter run
Launching lib/main.dart on Linux in debug mode...
Building Linux application...
(my_app:4163): Gdk-ERROR **: 12:35:04.021: The program 'my_app' received an X Window System error.
This probably reflects a bug in the program.
The error was 'GLXBadFBConfig'.
(Details: serial 252 error_code 167 request_code 152 (GLX) minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the GDK_SYNCHRONIZE environment
variable to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
根据我有限的知识,我可以说,这可能与一些硬件能力问题有关。
你能帮我确定是否有办法做到这一点吗?在我看来,OrangePI4是一个功能相当强大的板,因此我似乎更有可能做错了什么/我没有意识到什么,而不是由于硬件限制(至少是示例应用程序)而没有解决方法。此外,如果相关的话,它还支持OpenGL 3.2。
非常感谢您抽出时间。