Ubuntu18系统qt生成程序无法双击运行问题
-
1.Ubuntu18 安装qt编译生成的程序文件类型为application/x-sharedlib,无法双击直接运行。文件类型应该为 x-executable 。
-
2.解决方法
在.pro文件中添加下面内容后,删除以前编译文件,重新编译,生成执行文件。
QMAKE_LFLAGS += -no-pie
参考:
https://stackoverflow.com/questions/41398444/gcc-creates-mime-type-application-x-sharedlib-instead-of-application-x-applicati
To solve it on Qt/C++ GUI Applications, add the following line on the .pro file:
QMAKE_LFLAGS += -no-pie
来源:
https://www.cnblogs.com/ike_li/p/9993314.html
最后
以上就是沉默茉莉最近收集整理的关于Ubuntu18系统qt生成程序无法双击运行问题的全部内容,更多相关Ubuntu18系统qt生成程序无法双击运行问题内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复