C++ 运行xvfb run返回缺少的扩展名RANDR

C++ 运行xvfb run返回缺少的扩展名RANDR,c++,xvfb,C++,Xvfb,运行程序时,返回缺少的扩展名RANDR # xvfb-run ./a.out Xlib: extension "RANDR" missing on display ":99". 这只是一个警告。如果您检查xvfb正在写入的文件,您将看到它实际上正在工作。我自己也遇到过这个问题。Xvfb不支持旋转或调整大小。除非您的应用程序实际需要使用Xrandr扩展,否则警告是无害的: $ xvfb-run -a xdpyinfo | sed '/^$/q'; echo $? name of displ

运行程序时,返回缺少的扩展名RANDR

# xvfb-run ./a.out
Xlib:  extension "RANDR" missing on display ":99".

这只是一个警告。如果您检查xvfb正在写入的文件,您将看到它实际上正在工作。我自己也遇到过这个问题。

Xvfb不支持旋转或调整大小。除非您的应用程序实际需要使用Xrandr扩展,否则警告是无害的:



$ xvfb-run -a xdpyinfo | sed '/^$/q'; echo $?
name of display:    :99
version number:    11.0
vendor string:    The X.Org Foundation
vendor release number:    11501000
X.Org version: 1.15.1
maximum request size:  16777212 bytes
motion buffer size:  256
bitmap unit, bit order, padding:    32, LSBFirst, 32
image byte order:    LSBFirst
number of supported pixmap formats:    6
supported pixmap formats:
    depth 1, bits_per_pixel 1, scanline_pad 32
    depth 4, bits_per_pixel 8, scanline_pad 32
    depth 8, bits_per_pixel 8, scanline_pad 32
    depth 16, bits_per_pixel 16, scanline_pad 32
    depth 24, bits_per_pixel 32, scanline_pad 32
    depth 32, bits_per_pixel 32, scanline_pad 32
keycode range:    minimum 8, maximum 255
focus:  PointerRoot
number of extensions:    23
    BIG-REQUESTS
    DAMAGE
    DOUBLE-BUFFER
    DPMS
    DRI3
    GLX
    Generic Event Extension
    MIT-SCREEN-SAVER
    MIT-SHM
    Present
    RECORD
    RENDER
    SECURITY
    SGI-GLX
    SHAPE
    SYNC
    X-Resource
    XC-MISC
    XFIXES
    XInputExtension
    XKEYBOARD
    XTEST
    XVideo
default screen number:    0
number of screens:    1

0
$ xvfb-run -a xrandr; echo $?
RandR extension missing
1