Visual C 的 Autoconf
我想使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
仅供参考 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.
据我所知,事实并非如此。您可以尝试安装 MSYS 并查看配置脚本中对 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: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.