如何创建C项目?
我正在使用 Kdevelop 创建 C++ 项目。现在我需要创建一个C 项目。 在 3.xx 版本中,我可以选择创建 C 项目,但现在我使用 Kdevelop 4.2,我只能看到 C++ 项目模板(QT / NOGui)。
我应该如何为 C 项目配置 Kdevelop?
I'm using Kdevelop to create C++ projects. Now I need to create a C project.
In 3.xx versions, I had the option to create C projects, but now I'm using Kdevelop 4.2 and I only can see C++ project templates( QT / NOGui ).
How should I configure Kdevelop for C projects?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
当您在“新建项目”对话框中时,您是否选中了“显示所有项目模板”?请参阅此问题作为参考(查看屏幕截图):kdevelop 4.0:没有项目模板
Have you checked the "show all project templates" while you were in the New Project dialog box? See this question as reference (look at the screenshot): kdevelop 4.0 : No project Templates
我知道这是一篇旧帖子,但以防万一..这是一个快速答案 - 需要一点思考,但并不困难。
(可选)安装 kapptemplate - 这将在此处放置更多模板:
/usr/share/kde4/apps/kdevappwizard/
第一步只是提供更多默认值 - 这些将显示在 kdevelop 中,或者您可以单独运行 kdevappwizard。这是目录中的内容:
<前><代码>├── kdevappwizard.rc
├── 模板_预览
│ ├── akonadi-resources.png
│ ├── akonadi-serializer.png
│ ├── 默认-kdevelop.png
│ ├── 默认.png
...
└── 模板
├── akonadiresource.tar.bz2
├── akonadiserializer.tar.bz2
├── cmake_plaincpp.tar.bz2
├── cmake_qt4core_qtest.tar.bz2
...
└── simple_phpapp.tar.bz2
将几个简单的文件(例如 simple_phpapp.tar.bz2 和 cmake_plaincpp.tar.bz2)复制到沙箱目录中并解压它们。复制
放置在与上面相同的目录中或 ~/.kde/ 中应用程序/kdevappwizard/..等。 - 瞧!
注意:预览图像是可选的 - 您可以跳过它。`
呃 - 我知道,这有点模糊,但如果你可以用 C 语言编程,你可能可以处理它:)
i know this is an old post but just in case .. here is a quick answer - requires a little thinking but not difficult.
(optional) install kapptemplate - this will put even more templates here:
/usr/share/kde4/apps/kdevappwizard/
first step is just to provide more defaults - these will show up in kdevelop or you can run kdevappwizard alone. this is what will be in the directory:
copy a couple of the simple ones, say simple_phpapp.tar.bz2 and cmake_plaincpp.tar.bz2 into a sandbox dir and unpack them.
place in same directory as above or in ~/.kde/apps/kdevappwizard/..etc. - et voila!
Note: the preview image is optional - you can skip it.`
eh - i know, thats kinda vague but if you can program in C you can probably handle it :)
要使用它们,只需将存档复制到 /usr/share/apps/kdevappwizard/templates/
CMake 模板: https://sourceforge.net/projects/otzy-007.u/files/cmake_plainc.tar.bz2/download
Makefile 模板:http://opendesktop.org/content/show.php/Simple+C+Makefile+Template?内容=138514
To use them just copy the archives to /usr/share/apps/kdevappwizard/templates/
CMake template: https://sourceforge.net/projects/otzy-007.u/files/cmake_plainc.tar.bz2/download
Makefile template: http://opendesktop.org/content/show.php/Simple+C+Makefile+Template?content=138514