将非 GUI Makefile (make) 项目转换为 KDevelop
我有一个相当简单的 C 项目,我用 make 编译,我想在 KDevelop 中运行和调试它,但我无法让它工作。我已经安装了 cmake 并尝试导入现有项目并启动一个新项目(坚持创建 main.ccp 文件),但无论我做什么,运行该程序的所有菜单选项都是灰色的。
如何将该项目移至 KDevelop?
I have a rather simple C project I compile with make that I would like to run and debug in KDevelop, but I can't get this to work. I have installed cmake and tried both to import an existing project and start a new (which insists on creating a main.ccp file), but no matter what I do all the menu options to run the program are greyed out.
How can I move this project to KDevelop?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您好,通过导入自定义 makefile 创建新项目后,
转到“运行”菜单、“启动配置”,然后选择“全局”标签,然后按绿色加号 +。
这将创建一个新的启动配置,您需要填写所有正确的可执行路径和参数等。
一旦设置完毕,执行/调试选项将变为灰显。
我今天必须弄清楚这一点,一点也不明显。
Hiya, once you have created the new project by importing the custom makefile,
go to the Run Menu, Launch Configurations, then select the Global tag, then press the green plus sign +.
This will create a new launch configuration that you need to fill out with all of the correct executable paths and arguments and whatnot.
Once these are set, then the execute/debug options will ungrey out.
I had to figure this out today, was not obvious at all.