[Seek Help] Deepin20.7下低版本Qt的使用报错
Tofloor
poster avatar
Askama
deepin
2022-09-27 22:07
Author

本人在使用Deepin20.7以及Qt5.7进行开发时,会报错关于Qt5的lib的错误,说在/usr/lib/x86_64-linux-gnu下找不到相关的libQt5*.so文件,且需要qt5.15版本,请问在Deepin下只能使用相应的qt版本进行开发吗

Reply Favorite View the author
All Replies
deepin-chinaren
deepin
2022-09-27 23:01
#1

20.7都可以使用6.0以上了,我现在做的6.2.4版本。

Reply View the author
Askama
deepin
2022-09-27 23:34
#2
deepin-chinaren

20.7都可以使用6.0以上了,我现在做的6.2.4版本。

高版本肯定是可以的,主要是我的版本达不到5.15的要求,我想知道有没有什么办法能消除这个错误😭

Reply View the author
Vimvi2233
deepin
2022-09-28 01:39
#3

一般来说都是用新不用旧。

Reply View the author
Askama
deepin
2022-09-28 02:02
#4
Vimvi2233

一般来说都是用新不用旧。

没办法,开发需要sweat

Reply View the author
ti-ji
deepin
2022-09-28 04:18
#5
Askama

没办法,开发需要sweat

尝试 appimage,flatpak,snap 或者自己做个类似的。

appimage 有 qt 打包插件,即包装qt 需要的东西。你可以参考一下。

你需要 qt5,他们都qt6了。所以依赖目标用户系统的上的库,可能并不是好的选择。

Reply View the author
q77190858
deepin
2022-09-28 05:30
#6

你到qt官网装一个qt5的开发包,就可以用qt5开发了

Reply View the author
bluesky_
deepin
2022-09-28 17:32
#7

自己去qt官方下对应版本的qt,不要用源内就行了,我现在电脑上有qt5.15 5.12 6.3.1三个版本,不会发生任何冲突

Reply View the author
depend
deepin
2022-09-28 18:08
#8

程序运行前,需要运行 export LD_LIBRARY_PATH:=需要以来的对应库路径

例如:export LD_LIBRARY_PATH:=/usr/local/lib

编译的时候运行,你下载了5.7的环境就能运行,只是如果你是要单独跑,那你需要指定你库的依赖目录,不然默认就到/usr/lib/x86_64-linux-gnu下了,通常会用当前目录,把你需要的qt库拿过来

Reply View the author
Askama
deepin
2022-09-28 19:11
#9

谢谢各位的建议,我昨天发现其实不是qt的问题,是我使用的pcl与laslib库的问题,但是在ubuntu上没有类似的错误,可能因为deepin的界面是qt开发的,所以有些链接和依赖方面的问题没有解决。

Reply View the author
zccrs
deepin
2022-09-28 21:40
#10

应该是库的连接顺序的问题

Reply View the author
ThinKinG
deepin testing team
2022-10-09 17:41
#11

咱们仓库里已经升级了qt版本,请尝试下上面的各位大佬反馈的信息,手动解决下

Reply View the author