简体   繁体   English

Ubuntu 18.04 共享库可执行错误

[英]Ubuntu 18.04 mistakes executable for a shared library

I compile a QT application using CMake and make and every time I double click the executable I get the error "there is no application installed for shared library ".My application runs if I try to run it from the console.我使用 CMake 编译了一个 QT 应用程序并制作,每次双击可执行文件时,我都会收到错误“没有为共享库安装应用程序”。如果我尝试从控制台运行它,我的应用程序就会运行。 How I make the app execute by double-clicking?如何通过双击使应用程序执行?

You might be missing the execution permission.您可能缺少执行权限。 Run chmod +x <filename> then try to run executable again.运行chmod +x <filename>然后尝试再次运行可执行文件。

So I find the error you need to compile with -no-pie flag in order to work just as an executable所以我发现你需要用 -no-pie 标志编译的错误才能像可执行文件一样工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM