Windows 平台上的品牌和替代方案、优缺点

发布于 2024-07-13 12:01:17 字数 236 浏览 12 评论 0原文

我正在寻找一个制作平台。 我读过一些关于 gnu make 的内容,并且它在 Windows 平台上遇到了一些问题(从斜杠/反斜杠到 shell 确定...),所以我想听听我的替代方案是什么?

如果重要的话,我正在小型项目(最多 50k 行)上结合(非常)小的 c 进行 Fortran 开发,但我认为这并不重要,因为其中大多数都是与语言无关的类型。

gnu make 的缺点是什么,我有哪些替代方案,有哪些优点?

I'm looking for a make platform. I've read a little about gnu make, and that its got some issues on windows platforms (from slash/backslash, to shell determination ... ) so I would like to hear what are my alternatives to it ?

If it matters, i'm doing fortran development combined with (very)little c on small sized projects (50k lines max), but I don't think that matters since most of those are of the language agnostic type.

What are gnu make drawbacks, and what alternatives do I have, with what advantages?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

若言繁花未落 2024-07-20 12:01:17

有一些很好的工具可用于在 Windows 上进行持续集成和构建。 我想到的两个是 NAnt ,它将自己描述为 .Net 构建工具,但可用于构建任何东西——它是开源的并且非常可扩展,尽管缺乏用户界面。 我最近开始使用 Hudson ,它非常棒,输出比 NAnt 好得多,使其更易于使用。 我对这些工具和 Fortran 的经验为零,祝你好运。

我对 make 及其衍生产品的想法是避免基于它的年龄,在当时是一个很好的工具,但它现在必须有 20 岁了,而且技术(即使在构建领域)从那时起已经取得了相当大的进步。

There are a couple of good tools for continuous integration and building on windows. The two I have in mind are NAnt which describes itself as .Net build tool, but could be used to build anything - its open source and very extensible, although the UI is lacking. I've recently started to use Hudson which is brilliant, the output is way better than NAnt, making it much easier to use. I have zero experience with these tools and Fortran, so good luck there.

My thought on make and its derivatives is to avoid based on it's age, a good tool in its time but it must 20 years old now, and tech (even in the build area) has moved on a fair bit since then.

ˉ厌 2024-07-20 12:01:17

你可以看看cmake。 这是一种“元制作”系统:您为它编写一个制作文件,其中说明您的项目是如何构造的,它需要什么库和源,等等。 它可以为您构建 GNU make、nmake(我相信)的 make 文件、Kdevelop 和 Visual Studio 的项目文件。

KDE 从 KDE4 开始就采用了它,并且从那时起它就得到了极大的增强: CMake

另一个这样的系统是 Bakefile,它是为生成 wxWidgets GUI 工具包的 make 文件和项目文件而构建的。 它也可以用于非 wx 应用程序,并且相对年轻和现代(使用 XML 作为其 makefile 描述)。

You can have a look at cmake. It's a kind of "meta-make" system: You write a make-file for it, which says how your project is structured, what libs and sources it needs, and so on. And it can build make-files for you for GNU make, nmake (i believe), project files for Kdevelop and Visual Studio.

KDE has adopted it for KDE4 onwards and it was since greatly enhanced: CMake

Another such system is Bakefile which was built to generate make-files and project-files for the wxWidgets GUI toolkit. It can be used for non-wx applications too, and is relatively young and modern (uses XML as its makefile description).

寄风 2024-07-20 12:01:17

还有 nmake,它是 Microsoft 版本的 nmake。 不过,我建议坚持使用 gnu make。 我的建议是始终使用像 Unix 一样的斜杠; 它们也适用于 Windows。 Gnu make 被广泛使用,您可以轻松找到教程并获得有关其使用的建议。 这也是一项更好的投资,因为您将来还可以将其用于其他领域。 最后,它的功能更加丰富。

There is also nmake, which is Microsoft's version of nmake. I would recommend to stick with gnu make though. My advise is to always use Unix like slashes; they also work for Windows. Gnu make is widely used, you can easily find tutorials and get advices about it's use. It is also a better investment, since you can also use it in other areas in the future. Finally, it is much richer in functionality.

悲欢浪云 2024-07-20 12:01:17

我在Windows下使用GNU make,没有任何问题。 不过,我也使用 bash 作为 shell。 make 和 bash 都可以作为 www.cygwin.com 上的 Cygwin 软件包的一部分获得,我强烈建议您安装 bash 和 bash。 如果您要从命令行使用 make,则需要所有常见的命令行工具(grep、sed 等)。

I use GNU make under Windows and have no problems with it. However, I also use bash as my shell. Both make and bash are available as part of the Cygwin package from www.cygwin.com and I strongly recommend you install bash & all the common command line tools (grep, sed etc.) if you are going to use make from the command line.

海的爱人是光 2024-07-20 12:01:17

即使在 Windows 上,Make 也经受住了时间的考验,我每天都使用它,但还有 msbuild

Make has stood the test of time even on windows, and I use it everyday, but there's also msbuild

殊姿 2024-07-20 12:01:17

细节,细节...

考虑到你的小项目,我会从 MS nmake 开始。 如果这还不够,请继续使用 GNUmake。 上面的其他建议也很好。 Ant 和 CMake 都很好,但您不需要它们,而且如果您遇到问题,有很多 make 用户可以帮助您。

就此而言,既然你使用的是 Windows,MS IDE 不是内置了内置工具吗?只需单击即可。

把事情简单化。 计划把第一个扔掉,无论如何你都会的。

维基百科也有这样的说法:

http://en.wikipedia.org/wiki/List_of_build_automation_software

Details, details...

Given your small project, I wuld just start with MS nmake. Then if that doesn't suffice, move on to GNUmake. Other advice above is also good. Ant and CMake are fine, but you don't need them and there are so many make users who can help you if you have problems.

For that matter, since you are on windows, doesn't the MS IDE have buil tools built in. Just click and go.

keep it simple. Plan to throw the first on away, you will anyway.

Wikipedia also has this to say:

http://en.wikipedia.org/wiki/List_of_build_automation_software

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文