如何在MinGW/MSYS中安装libuuid?

发布于 2024-12-10 19:10:52 字数 785 浏览 0 评论 0原文

我想在 MinGW/MSYS 中编译 Linux C++ 应用程序。但是,当我使用 ./configure --host=i586-mingw32msvc 时,它抱怨 libuuid 不可用。

google了很久,MinGW仓库里好像没有这样的包。所以我从Launchpad下载了uuid-dev源码包并尝试在MinGW/MSYS中构建它。但是,当我使用 ./configure --host=i586-mingw32msvc 时,它抱怨选择了 ncurses 或 ncursesw 但未找到库。

MinGW里好像没有这个包。所以我从 Launchpad 下载了 libncurses5.dev 包并尝试在 MinGW/MSYS 中构建它。当我尝试使用 ./configure --host=i586-mingw32msvc 时,一切似乎都很好。但是,当我运行 make 时,它​​会显示很多错误消息。

由于构建uuid-dev不成功,我尝试在MinGW/MSYS中构建e2fsprogs包。当我使用 ./configure --host=i586-mingw32msvc 时,一切看起来都很好。但是,当我尝试运行 make 时,它​​显示很多错误消息。

如果有人能告诉我如何在 MinGW/MSYS 中安装 libuuid,我将不胜感激。谢谢。

I want to compile a Linux C++ application in MinGW/MSYS. However, when I use ./configure --host=i586-mingw32msvc, it complains that libuuid is not available.

After googling for a long time, it seems that there is no such package in MinGW repository. So i have downloaded uuid-dev source package from Launchpad and try to build it in MinGW/MSYS. However, when i use ./configure --host=i586-mingw32msvc, it complains that ncurses or ncursesw selected but library is not found.

It seems that there is no such package in MinGW. So i have downloaded libncurses5.dev package from Launchpad and try to build it in MinGW/MSYS. When i try to use ./configure --host=i586-mingw32msvc, everything seems fine. But, when i run make, it shows a lot of error messages.

Since building uuid-dev is unsuccessful, i try to build e2fsprogs package in MinGW/MSYS. When i use ./configure --host=i586-mingw32msvc, everything seems fine. However, when i try to run make, it shows a lot of error messages.

Appreciate if anyone can show me how to install libuuid in MinGW/MSYS. Thanks.

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

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

发布评论

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

评论(1

策马西风 2024-12-17 19:10:52

查看以下项目以了解 libuuid 的实现

但要小心:Windows/MinGW 还有一个与此无关的 libuuid.a,所以你必须确保正在与上述库之一提供的库链接,而不是与 MinGW 的库链接。

Check out the following projects for implementations of libuuid

But be careful: Windows/MinGW also has a libuuid.a that has nothing to do with this, so you must make sure you're linking with the one provided one of the libraries above and not the one from MinGW.

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