Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
在deepin下开发编译的程序,在ubuntu20.04下,运行直接就段错误
Experiences and Insight
1480
views ·
4
replies ·
To
floor
Go
zhaolu2000
deepin
2020-10-01 00:40
Author
我在deepin V20(1002)下用qt5.9.8开发,编译的程序,使用了ldd, 将用到的库文件,也拷贝到了运行目录下。
在其他的deepin V20电脑上,将运行目录拷贝,就能够直接运行,表现不错。但是将运行目录到ubuntu20.04的环境下,运行的时候直接就引发段错误,segment fault。
有谁知道应该怎么办?如何能够将我的程序直接在ubuntu20.04上运行。我怎么才能知道,还缺少什么库?
Reply
Like 0
Favorite
View the author
All Replies
Feng Yu
deepin
2020-10-01 00:58
#1
段错误你得自己用gdb或者strace一类的工具跟踪下看看是哪个类库报错了。为了避免类库版本不一致带来的奇奇怪怪的问题,你应该把源码拿到Ubuntu去编译
Reply
Like 0
View the author
zhaolu2000
deepin
2020-10-01 01:20
#2
谢谢回复。
我曾经安装过一个程序,sqlitestudio,它也是用qt开发的,无论是在ubuntu上,还是在deepin V20上,它都能够直接安装运行。不需要拿源码到相应的平台上去编译,它又是如何做到的呢?
qt在linux下是不是有什么运行库?能够在发布的时候,直接拿来用。
Reply
Like 0
View the author
deepinshang111
deepin
2020-10-01 01:25
#3
用linuxdeployqt.
Reply
Like 0
View the author
Hello
deepin
2020-10-01 01:38
#4
qt5.9和10以上语法是差的非常多的。正常
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
simple
Popular Events
More
在其他的deepin V20电脑上,将运行目录拷贝,就能够直接运行,表现不错。但是将运行目录到ubuntu20.04的环境下,运行的时候直接就引发段错误,segment fault。
有谁知道应该怎么办?如何能够将我的程序直接在ubuntu20.04上运行。我怎么才能知道,还缺少什么库?