hehe8628

hehe8628

0个粉丝

1

问答

0

专栏

0

资料

hehe8628  发布于  2018-09-21 11:26:22
采纳率 0%
1个问答
2008

hi3798mv200qt编译

 
问题:        QIconvCodec::convertToUnicode: using Latin-1 for conversion, iconv_open failed
        QIconvCodec::convertFromUnicode: using Latin-1 for conversion, iconv_open failed
        This application failed to start because it could not find or load the Qt platform plugin "eglfs".

        Reinstalling the application may fix this problem.
        Aborted

解决:1,这里假如有提示:

        QIconvCodec::convertFromUnicode: usingLatin-1 for conversion, iconv_open failed
     QIconvCodec::convertToUnicode: using Latin-1for conversion, iconv_open failed​

        这是因为在./configure的时候没有添加-no-iconv 也就是在autuconfig.sh添加上-no-iconv  \ 就可以,假如没加上,qt会使用QIconvCodec类进行编码的转换,而qt本身不再使用该类,所        以不要使用该库。当然也可以下载去这个网址下载libiconv来安装该库


解决2、6. 下面以 /home/wuqh_thu/Qt5.7.0/Tools/QtCreator/lib/Qt/plugins/platforms  为例说明将其加入环境变量的办法:

        $ sudo vim profile

        将光标移动到末尾,按键 'i' 进入vim的插入模式,并另起一行输入:

        export QT_PLUGIN_PATH=/home/wuqh_thu/Qt5.7.0/Tools/QtCreator/lib/Qt/plugins/platforms

        按键 “esc” 退出插入模式;

        分别按键 “:wq” 保存并退出。

        最后,别忘了source:

        $ source /etc/profile
        2.然后把QT下面的platform文件夹也复制到exe同级别目录下,如我的platform文件夹位于D:\Qt\Qt5.4.0\5.4\msvc2013_64\plugins\platforms,只需要直接复制这个platform文件夹!

出现新问题:./browser: error while loading shared libraries: libQt5WebKitWidgets.so.5: cannot open shared object file: No such file or directory
解决:         export LD_LIBRARY_PATH=/opt/Qt5.1.1/Tools/QtCreator/bin/plugins/platforms:$LD_LIBRARY_PATH

新问题:QFontDatabase: Cannot find font directory /qt-everywhere-opensource-src-5.5.1-egl/lib/fonts - is Qt installed correctly?
解决方法:在/etc/profile 中添加   export QT_QPA_FONTDIR=/usr/lib/qt/lib/fonts

新问题:自启动
解决:  a,打开文件:/etc/init.d/rcS。
    b,在该文件末尾添加要执行的APP,或是相关的 *.sh 文件。路径

问题:查看运行
解决:# ps |grep green_hi379
问题:This application failed to start because it could not find or load the Qt platform plugin "eglfs".
                                                                                
Reinstalling the application may fix this problem.                              
Aborted      
解决:/usr/lib/qt/plugins/platforms   

dolby_trueHD7.1.m2ts


cd /CTS
ls
可以看到如下信息:
EncryptedKey_332bytes.bin
6ch_diff_mus1_7_ddp_DVB_h264_25fps.ts
dolby_trueHD7.1.m2ts
CTS2.0_1-31.ts
sample_hdmi_tsplay

//在/etc/profile
export LD_LIBRARY_PATH=/usr/lib/qt/lib:$LD_LIBRARY_PATH
export QT_PLUGIN_PATH=/usr/lib/qt/plugins/platforms   
export QT_QPA_FONTDIR=/usr/lib/qt/lib/fonts   
我来回答
回答0个
时间排序
认可量排序
易百纳技术社区暂无数据
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
相关问答
无更多相似问答 去提问
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区