Visual C 的 Autoconf

发布于 2024-09-24 05:13:29 字数 167 浏览 0 评论 0原文

我想使用 MSVC++ 构建 XZ Utils,但 xz utils 使用 Gnu Autoconf 脚本。有没有办法将整个 autoconfed 项目导入 MSVC++,然后构建它?如果没有,有没有办法运行 MSVC++ 的 Gnu Autoconf 脚本,然后,只需获取所有源文件以及 config.h,然后构建它?

I want to build XZ Utils with MSVC++, but xz utils uses a Gnu Autoconf Script. Is there a way to import a whole autoconfed project into MSVC++, then build it? If not, is there a way to run the Gnu Autoconf script for MSVC++, then after that, just take all the source files, as well as config.h, then build it?

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

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

发布评论

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

评论(2

鹊巢 2024-10-01 05:13:29

仅供参考 XZutils 是用 C99 编写的,如果没有大量更改,将无法在 MSVC 下编译。只需在 MINGW 中构建并链接到静态库或 dll。

FYI XZutils is written in C99 and will not compile under MSVC without massive changes. Just build in MINGW and link to the static lib or dll.

孤者何惧 2024-10-01 05:13:29

据我所知,事实并非如此。您可以尝试安装 MSYS 并查看配置脚本中对 cl.exe 的支持情况:

./configure CC=c:/path/to/cl.exe CXX=c:/path/to/cl.exe

上次我检查时,支持相当不成熟,但值得一试。另一方面,由于 xz-utils 是直接用 C 编写的,所以使用哪个编译器有什么关系呢?使用 MinGW 构建它并使用 Visual Studio 链接它。

As far as I know, not really. You could try installing MSYS and seeing what the support for cl.exe is like in the configure script:

./configure CC=c:/path/to/cl.exe CXX=c:/path/to/cl.exe

Last time I checked, the support was rather immature, but it could be worth a shot. On the other hand, since xz-utils is written in straight C, what does it matter which compiler you use? Build it with MinGW and link against it with visual studio.

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