MingW报告Netbeans + Qt中缺少.dll文件

时间:2011-08-31 04:35:28

标签: c++ qt netbeans mingw

我安装了Netbeans 7.0.1和Qt SDK,并按照here上的说明进行设置。代码很好地构建,但是当我按下运行时,我得到以下错误:

The application failed with exit code -1073741515 (0xc0000135). 
This could indicate that no required .dll was found in the PATH. 
Please try to start the following command from the command shell (cmd.exe). 
This may give some additional information. 

"C:\..." //file location 

RUN FAILED (exit value -1,073,741,515, total time: 35ms)

非常感谢任何帮助 -Tamas

2 个答案:

答案 0 :(得分:1)

问题是你需要一些dll来运行可执行文件,所以你必须将它们放在本地目录上才能运行它,当你完成编码时,你必须找到一种方法让它们可用于最终用户,这里有一个针对qt创建者的小教程,它解释得非常好,只要记住点击netbeans中的运行按钮几乎与双击dist/releasedist/debug中的可执行文件相同文件夹https://www.youtube.com/watch?v=X1BsPQue5-k

答案 1 :(得分:0)

您可以将所需的DLL放在dist文件夹(dist/debug/...dist/release/...,您的exe所在的文件夹)中,例如:

  • QtCore4.dll
  • QtCored4.dll
  • QtGui4Qt
  • Guid4.dll

(您可以从<Path to Qt>/bin获取它们。

相关问题