简体   繁体   English

Qt,CodeBlocks具有依赖项的minGW问题

[英]Qt,CodeBlocks minGW problem with dependencies

Hi there i got a problem with my project.I want to remove all dependencies so all the project will require are Qt dll's. 嗨,我的项目遇到了问题。我想删除所有依赖项,因此所有项目都需要Qt dll。 I'v added -static-libgcc -static-libstdc++ to linker but still its not linking libgcc. 我已将-static-libgcc -static-libstdc ++添加到链接器,但仍未链接libgcc。 When i try to run program without libgcc_s_dw2-1.dll in its directory i got an error that this dll is missing. 当我尝试运行在其目录中没有libgcc_s_dw2-1.dll的程序时,出现错误,提示此dll丢失。 Anyone that could help with removing that dependencies? 任何人都可以帮助删除该依赖项?

If you use Qt and want to build statically your application, first of all, you should statically build Qt SDK before. 如果您使用Qt并想静态构建您的应用程序,那么首先,您应该先静态构建Qt SDK。

For more information see: http://doc.qt.io/qt-4.8/deployment-x11.html 有关更多信息,请参见: http : //doc.qt.io/qt-4.8/deployment-x11.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM