[英]Qt Creator on Ubuntu: Running a cmake executable
In Qt Creator on Ubuntu, I want to create a cmake C++ project (ie without using qmake). 在Ubuntu上的Qt Creator中,我想创建一个cmake C ++项目(即不使用qmake)。 So, I create a new "Non-Qt Project->Plain C++ Project (Ubuntu CMake Build)".
因此,我创建了一个新的“非Qt项目->普通C ++项目(Ubuntu CMake构建)”。 Then, I edit the main file and CMakeLists.txt as necessary.
然后,根据需要编辑主文件和CMakeLists.txt。 I click on the "build" icon, which builds the program fine and creates an executable.
我单击“构建”图标,可以很好地构建程序并创建可执行文件。 However, when I then click on the "run" icon, the "Application Output" window gives me the error: "No executable specified."
但是,当我单击“运行”图标时,“应用程序输出”窗口显示错误:“未指定可执行文件”。
So how do I tell Qt Creator where to find the executable? 那么,如何告诉Qt Creator在哪里找到可执行文件?
This is a bug reported for a few months. 这是一个报告了几个月的错误。 Please read comments (specially the 2 or 3 lasts) on the ticket https://bugs.launchpad.net/ubuntu/+source/qtcreator-plugin-cmake/+bug/1299441 to find some workarounds to this issue.
请阅读票证https://bugs.launchpad.net/ubuntu/+source/qtcreator-plugin-cmake/+bug/1299441上的注释(特别是2个或3个,最后一个),以找到解决此问题的方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.