Opengl es 无法添加服务-已在使用中错误

Opengl es 无法添加服务-已在使用中错误,opengl-es,embedded-linux,sfml,Opengl Es,Embedded Linux,Sfml,通过本教程,我在Raspbian上编译了SFML库和我的应用程序。在此之后,我将共享对象和应用程序移动到Raspberry Pi 4的buildroot系统。我选择了DISPMANXversion,我的目标是在没有X服务器的情况下运行应用程序 当我尝试运行应用程序时,出现错误无法添加服务-已在使用?。我知道有很多类似的话题,我尝试了以下解决方案: 注释dtoverlay=vc4-kms-v3d在config.txt->我的配置中不存在这一行 将gpu\u mem更改为128->任何改进 我的co

通过本教程,我在Raspbian上编译了SFML库和我的应用程序。在此之后,我将共享对象和应用程序移动到Raspberry Pi 4的buildroot系统。我选择了
DISPMANX
version,我的目标是在没有X服务器的情况下运行应用程序

当我尝试运行应用程序时,出现错误
无法添加服务-已在使用?
。我知道有很多类似的话题,我尝试了以下解决方案:

  • 注释
    dtoverlay=vc4-kms-v3d
    config.txt
    ->我的配置中不存在这一行
  • gpu\u 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上,我使用
    dispmanx
    gles2
    egl
    wayland
    gst1插件库
    设置
    opengl
    。我没有设置
    mesa-3d

    知道如何让我的应用程序工作吗?我应该在我的
    config.txt
    中添加一些内容吗