This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

求救!Beaglebone Black 运行官方的SDK2.0 界面上的 demo都可以运行。自带的QT库里的OPENGL demo无法运行



官方界面的程序,3D和QT 的例子都可以运行,但运行 SDK里的一个2D openg加速绘图 ,发现OPENGL 没启动?

显示为黑色,下面是打印信息。

过程 :

  root@am335x-evm:/usr/share/qt5/examples/opengl/2dpainting# ./2dpainting   

PVR: Hint: Setting WindowSystem to libpvrDRMWSEGL_FRONT.so

mode for connector 20 is 800x480
DRM SET CRTC: index: 0 fd: 6, crtc: 12, fb: 19, conn: 14, mode: 800x480
Unable to query physical screen size, defaulting to 100 dpi.
To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
No such plugin for spec "Auto"
PVR: Hint: Setting DisableHWTQTextureUpload to 1

QEGLPlatformContext: Failed to make temporary surface current, format not updated
PVR: Hint: Setting DisableHWTQTextureUpload to 1

QEGLPlatformContext: Failed to make temporary surface current, format not updated
PVR: Hint: Setting DisableHWTQTextureUpload to 1

QEGLPlatformContext: Failed to make temporary surface current, format not updated
^CQEGLPlatformContext: eglMakeCurrent failed: 3009
QOpenGLWidget: Failed to make context current
PVR: Hint: Setting DisableHWTQTextureUpload to 1

QEGLPlatformContext: Failed to make temporary surface current, format not updated
QEGLPlatformContext: eglMakeCurrent failed: 3009
QOpenGLWidget: Failed to make context current
QPainter::begin: Paint device returned engine == 0, type: 1
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::translate: Painter not active
QPainter::save: Painter not active
QPainter::setBrush: Painter not active
QPainter::setPen: Painter not active

求指点下,看了processors.wiki.ti.com/.../Processor_Linux_SDK_Graphics_and_Display

不太明白,试了输入命令  kmscube ,发现系统没有这个命令  。。。不知道怎么办了,求大神指点  !!

其他几个opengl文件下的例子,倒是都可以运行

  • 请问用的是什么版本的sdk?

  • 你好,我用的是SDK 2.00.01.07 

  • 顶顶                 

  • mode for connector 20 is 800x480
    DRM SET CRTC: index: 0 fd: 6, crtc: 12, fb: 19, conn: 14, mode: 800x480
    Unable to query physical screen size, defaulting to 100 dpi.

    确认一下,这里是你目前使用的正确配置吗?分辨率800*480?如果不对,那就是还有些配置没有设置正确。按照你给的那个连接中,一步步的按照步骤指导来做一次,不要跳过步骤。

    另外,插一句,你现在用的是那个比较大的文件系统吗?我们提供的filesystem有两个,一个是base的小一些,一个是sdk几百兆的大一些的。看到你提到运行那个kmscube这个demo没有,是不是用的文件系统是mini的那个,所以里面本身就没有?换成那个大的文件系统试试看?

  • 你好,分辨率是对的·因为我只想用GPU的2D加速,比如放大。这个例子就是一个2D图片硬件加速旋转的·但不能运行,不过基本其他的3D例子都可以运行。

    我的系统是按照官方坐在SD卡里的,是几百M的大系统。

    那个链接中:输入modetest

    root@am335x-evm:~# modetest
    trying to open device 'i915'...failed.
    trying to open device 'radeon'...failed.
    trying to open device 'nouveau'...failed.
    trying to open device 'vmwgfx'...failed.
    trying to open device 'omapdrm'...failed.
    trying to open device 'exynos'...failed.
    trying to open device 'tilcdc'...success.
    Encoders:
    id crtc type possible crtcs possible clones
    19 18 LVDS 0x00000001 0x00000000

    Connectors:
    id encoder status type size (mm) modes encoders
    20 19 connected LVDS 0x0 1 19
    modes:
    name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot)
    800x480 53 800 912 960 1048 480 501 504 543 flags: nhsync, nvsync; type: preferred, driver
    props:
    1 EDID:
    flags: immutable blob
    blobs:

    value:
    2 DPMS:
    flags: enum
    enums: On=0 Standby=1 Suspend=2 Off=3
    value: 0

    CRTCs:
    id fb pos size
    18 24 (0,0) (800x480)
    800x480 53 800 912 960 1048 480 501 504 543 flags: nhsync, nvsync; type: preferred, driver
    props:

    Planes:
    id crtc fb CRTC x,y x,y gamma size possible crtcs
    17 18 24 0,0 0,0 0 0x00000001
    formats: XR24 AR24
    props:
    5 type:
    flags: immutable enum
    enums: Overlay=0 Primary=1 Cursor=2
    value: 1

    Frame buffers:
    id size pitch

    root@am335x-evm:~#

    继续运行 kmscube 直接没有这个命令

    root@am335x-evm:~# kmscube -c 18
    -sh: kmscube: command not found