|
【技术讨论】
请问官方的QT Demo程序mainwindow都不能运行是怎么回事啊?
发表于 2020-10-8 04:16:39
浏览:5658
|
回复:3
打印
只看该作者
[复制链接]
楼主
已经按照文档中配置了QT,运行的时候会报错误,找不到libmali.so.1,我创建了一个连接/usr/lib/arm-linux-gnueabihf/libmali.so.1 => /usr/lib/arm-linux-gnueabihf/libmali.so,不报错了可是
```
$ ./mainwindow -platform wayland
This application failed to start because it could not find or load the Qt platform plugin "wayland"
in "/usr/lib/qt/plugins/".
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Reinstalling the application may fix this problem.
Aborted (core dumped)
```
如果运行./mainwindow -platform eglfs
又会报找不到.xdg路径的错,手动建立文件夹之后再运行则报错如下:
```
./mainwindow: relocation error: ./mainwindow: symbol _ZN18QRandomGenerator646globalEv version Qt_5 not defined in file libQt5Core.so.5 with link time reference
```
系统版本:Ubuntu 18.04.1
|
|