zoukankan      html  css  js  c++  java
  • I.MX6ULL移植Q5.12.9报Could not load the Qt platform plugin "linuxfb" in "/usr/lib/arm-qt/plugins" even though it was found.错误

    根据正点原子的移植教程移植完成并成功运行,这是前提。
    但是自己用buildroot做的rootfs,把qt的库放到里边,运行测试程序缺报错

    qt.qpa.plugin: Could not load the Qt platform plugin "linuxfb" in "/usr/lib/arm-qt/plugins" even though it was found.
    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
    
    Available platform plugins are: linuxfb, minimal, offscreen, vnc.
    
    Aborted
    

    网上查找方法,在/etc/profile中添加对qt的调试信息的输出使能

    source /etc/profile后,重新执行测试程序 一下是打印信息

    QFactoryLoader::QFactoryLoader() checking directory path "//platforms" ...
    Cannot load library /usr/lib/arm-qt/plugins/platforms/libqlinuxfb.so: (libts.so.0: cannot open shared object file: No such file or directory)
    QLibraryPrivate::loadPlugin failed on "/usr/lib/arm-qt/plugins/platforms/libqlinuxfb.so" : "Cannot load library /usr/lib/arm-qt/plugins/platforms/libqsuch file or directory)"
    qt.qpa.plugin: Could not load the Qt platform plugin "linuxfb" in "/usr/lib/arm-qt/plugins" even though it was found.
    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
    
    Available platform plugins are: linuxfb, minimal, offscreen, vnc.
    
    Aborted
    

    可以看到是libts.so.0的问题,对比之前正确启动了的rootfs,发现在有问题的rootfs的lib文件夹中缺少libts.*库,所以全部复制进去,再测试,就好了。

    我在用buildroot构建rootfs的回收,没有选ts相关的选项,所以lib中没有libts相关的东西。

    懒惰不会让你一下子跌到 但会在不知不觉中减少你的收获; 勤奋也不会让你一夜成功 但会在不知不觉中积累你的成果 越努力,越幸运。
  • 相关阅读:
    如何更改 iOS 和安卓浏览器上的 input[type="radio"] 元素的默认样式?
    js获取样式、currentStyle和getComputedStyle的兼容写法
    js选中文字兼容性解决
    最短的IE判断var ie=!-[1,]分析
    总结oninput、onchange与onpropertychange事件的用法和区别
    jQuery工具函数
    Vnpy官网汇总
    Anaconda下各个Python版本下载地址
    APScheduler——定时任务框架
    PyQt5——隐藏控件并保留位置
  • 原文地址:https://www.cnblogs.com/Rainingday/p/14914658.html
Copyright © 2011-2022 走看看