Toybrick

标题: 3399主板QT5.9.1 opengl+eglfs移植问题 [打印本页]

作者: woaipcb    时间: 2022-4-18 10:43
标题: 3399主板QT5.9.1 opengl+eglfs移植问题
你好 我这边用的是3399板子 Ubuntu18.04桌面系统 在另外一台机器交叉编译QT5.9.1 拷贝到3399主板后 运行qt程序黑屏 没显示 控制台出下面提示 有知道什么问题的吗?求指教
mesg: ttyname failed
: Inappropriate ioctl for device
QFactoryLoader:FactoryLoader() checking directory path "/userdata/qt/plugins" ...
QFactoryLoader:FactoryLoader() checking directory path "/opt/test12/bin" ...
QFactoryLoader:FactoryLoader() looking at "/opt/test12/bin/test12"
"Failed to extract plugin meta data from '/opt/test12/bin/test12'"
         not a plugin
QFactoryLoader:FactoryLoader() checking directory path "/userdata/qt/plugins/platforms" ...
QFactoryLoader:FactoryLoader() looking at "/userdata/qt/plugins/platforms/libqeglfs.so"
Found metadata in lib /userdata/qt/plugins/platforms/libqeglfs.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "eglfs"
        ]
    },
    "className": "QEglFSIntegrationPlugin",
    "debug": false,
    "version": 329993
}


Got keys from plugin meta data ("eglfs")
QFactoryLoader:FactoryLoader() looking at "/userdata/qt/plugins/platforms/libqlinuxfb.so"
Found metadata in lib /userdata/qt/plugins/platforms/libqlinuxfb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "linuxfb"
        ]
    },
    "className": "QLinuxFbIntegrationPlugin",
    "debug": false,
    "version": 329993
}


Got keys from plugin meta data ("linuxfb")
QFactoryLoader:FactoryLoader() looking at "/userdata/qt/plugins/platforms/libqminimal.so"
Found metadata in lib /userdata/qt/plugins/platforms/libqminimal.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimal"
        ]
    },
    "className": "QMinimalIntegrationPlugin",
    "debug": false,
    "version": 329993
}


Got keys from plugin meta data ("minimal")
QFactoryLoader:FactoryLoader() looking at "/userdata/qt/plugins/platforms/libqminimalegl.so"
Found metadata in lib /userdata/qt/plugins/platforms/libqminimalegl.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimalegl"
        ]
    },
    "className": "QMinimalEglIntegrationPlugin",
    "debug": false,
    "version": 329993
}


Got keys from plugin meta data ("minimalegl")
QFactoryLoader:FactoryLoader() looking at "/userdata/qt/plugins/platforms/libqoffscreen.so"
Found metadata in lib /userdata/qt/plugins/platforms/libqoffscreen.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "offscreen"
        ]
    },
    "className": "QOffscreenIntegrationPlugin",
    "debug": false,
    "version": 329993
}


Got keys from plugin meta data ("offscreen")
QFactoryLoader:FactoryLoader() looking at "/userdata/qt/plugins/platforms/libqvnc.so"
Found metadata in lib /userdata/qt/plugins/platforms/libqvnc.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "vnc"
        ]
    },
    "className": "QVncIntegrationPlugin",
    "debug": false,
    "version": 329993
}


Got keys from plugin meta data ("vnc")
QFactoryLoader::QFactoryLoader() checking directory path "/opt/test12/bin/platforms" ...
loaded library "/userdata/qt/plugins/platforms/libqeglfs.so"
QFactoryLoader::QFactoryLoader() checking directory path "/userdata/qt/plugins/egldeviceintegrations" ...
QFactoryLoader::QFactoryLoader() looking at "/userdata/qt/plugins/egldeviceintegrations/libqeglfs-emu-integration.so"
Found metadata in lib /userdata/qt/plugins/egldeviceintegrations/libqeglfs-emu-integration.so, metadata=
{
    "IID": "org.qt-project.qt.qpa.egl.QEglFSDeviceIntegrationFactoryInterface.5.5",
    "MetaData": {
        "Keys": [
            "eglfs_emu"
        ]
    },
    "className": "QEglFSEmulatorIntegrationPlugin",
    "debug": false,
    "version": 329993
}


Got keys from plugin meta data ("eglfs_emu")
QFactoryLoader::QFactoryLoader() looking at "/userdata/qt/plugins/egldeviceintegrations/libqeglfs-mali-integration.so"
Found metadata in lib /userdata/qt/plugins/egldeviceintegrations/libqeglfs-mali-integration.so, metadata=
{
    "IID": "org.qt-project.qt.qpa.egl.QEglFSDeviceIntegrationFactoryInterface.5.5",
    "MetaData": {
        "Keys": [
            "eglfs_mali"
        ]
    },
    "className": "QEglFSMaliIntegrationPlugin",
    "debug": false,
    "version": 329993
}


Got keys from plugin meta data ("eglfs_mali")
QFactoryLoader::QFactoryLoader() looking at "/userdata/qt/plugins/egldeviceintegrations/libqeglfs-x11-integration.so"
Found metadata in lib /userdata/qt/plugins/egldeviceintegrations/libqeglfs-x11-integration.so, metadata=
{
    "IID": "org.qt-project.qt.qpa.egl.QEglFSDeviceIntegrationFactoryInterface.5.5",
    "MetaData": {
        "Keys": [
            "eglfs_x11"
        ]
    },
    "className": "QEglFSX11IntegrationPlugin",
    "debug": false,
    "version": 329993
}


Got keys from plugin meta data ("eglfs_x11")
QFactoryLoader::QFactoryLoader() checking directory path "/opt/test12/bin/egldeviceintegrations" ...
Could not initialize egl display
Process killed by signal







作者: jefferyzhang    时间: 2022-4-18 11:26
Toybrick 官方不支持 QT
作者: feelthat    时间: 2022-10-15 13:04
本帖最后由 feelthat 于 2022-10-15 13:12 编辑

输入以下命令查看 GPU 频率
cat /sys/devices/platform/fde60000.gpu/devfreq/fde60000.gpu/cur_freq
查看 GPU 负载,输入以下命令:
cat /sys/devices/platform/fde60000.gpu/utilisation
https://zhuanlan.zhihu.com/p/560116305


try this

1. QT的编译配置中加入-qt-xcb的参数,先确定程序能正常运行起来。

2. 通过对config.log分析最后查找到安装下面两个库可以解决此问题。

apt-get install libxext-dev libxfixes-dev

https://blog.csdn.net/xuesong10210/article/details/122102483




欢迎光临 Toybrick (https://t.rock-chips.com/) Powered by Discuz! X3.3