opengl-es - 未能添加服务 - 已在使用错误
问题描述
我使用本教程https://github.com/oomek/sfml-pi在 Raspbian 上编译了 SFML 库和我的应用程序。在此之后,我将共享对象和应用程序移至 Raspberry Pi 4 的 buildroot 系统。我选择DISPMANX
了版本,我的目标是在没有 X 服务器的情况下运行应用程序。
当我尝试运行应用程序时,出现错误failed to add service - already in use?
。我知道有很多类似的主题,我尝试了这个解决方案:
- 注释-> 我的配置
dtoverlay=vc4-kms-v3d
中config.txt
不存在此行。 - 更改
gpu_mem
为128
-> 任何改进
我的config.txt
:
# Please note that this is only a sample, we recommend you to change it to fit
# your needs.
# You should override this file using a post-build script.
# See http://buildroot.org/manual.html#rootfs-custom
# and http://elinux.org/RPiconfig for a description of config.txt syntax
# We always use the same names, the real used variant is selected by
# BR2_PACKAGE_RPI_FIRMWARE_{DEFAULT,X,CD} choice
start_file=start.elf
fixup_file=fixup.dat
kernel=zImage
# To use an external initramfs file
#initramfs rootfs.cpio.gz
# Disable overscan assuming the display supports displaying the full resolution
# If the text shown on the screen disappears off the edge, comment this out
disable_overscan=1
# How much memory in MB to assign to the GPU on Pi models having
# 256, 512 or 1024 MB total memory
gpu_mem_256=128
gpu_mem_512=128
gpu_mem_1024=128
gpu_mem_1024=192
gpu_mem=128
# fixes rpi (3B, 3B+, 3A+, 4B and Zero W) ttyAMA0 serial console
dtoverlay=miniuart-bt
在 buildroot上,我opengl
使用、和. 我没有设置。gst1-plugins-base
dispmanx
gles2
egl
wayland
mesa-3d
知道如何使我的应用程序正常工作吗?我应该添加一些东西config.txt
吗?
解决方案
推荐阅读
- python - 禁用均值函数的舍入
- java - 在这种特定情况下,如何阻止 Eclipse 缩进额外的空格?
- python - 如何使用登录的用户名在 Python Django 帖子上添加评论?
- powershell - 在 powershell 中转义 $
- ag-grid - 以编程方式删除所有分组和过滤的简单方法
- linux - while循环比较文件
- python - 当我尝试使用 arff.dump() 将 pandas DataFrame 文件保存到 arff 时,为什么会显示错误?
- python - Plotly 密度热图格式化色阶和悬停文本
- python - Python Requests-HTML - 找不到特定数据
- c# - TabControl 不显示基于视图模型类型的内容