使用 MinGW 部署 Qt 需要 VC++可重新分发?
我正在一个干净的 XP 虚拟机上使用用 MinGW 编译的 Qt 4.7.3 测试一个应用程序。该应用程序无法正常工作,经过一番悲痛之后,我追踪到错误是因为需要下载 Visual C++ 2005 可再发行组件。我下载了这个并且它有效。这里似乎有些不对劲,既然我使用的是 MinGW,难道我不需要任何 VC++ 库吗?难道是我编译的问题?我应该提到我没有使用 qmake 来构建。
I'm testing an application using Qt 4.7.3 compiled with MinGW on a clean XP virtual box. The application wasn't working and after much grief, I traced the error to needing to download the Visual C++ 2005 redistributable. I downloaded this and it worked. Something doesn't seem right here, shouldn't I not need any VC++ libraries since I'm using MinGW? Could it be a problem with my compilation? I should mention that I'm not using qmake to build.
对
MSVCRT.DLL
的依赖是由于 MinGW 本身造成的。引用 mingw.org..另请参阅:我应该使用我的应用程序重新分发 msvcrt.dll 吗?
The dependency on
MSVCRT.DLL
is due to MinGW itself. To quote mingw.org..Also see: Should I redistribute msvcrt.dll with my application?