我安装了Netbeans 7.0.1和Qt SDK,并按照此处的说明进行了设置。代码构建得很好,但当我按下run时,我会收到以下错误:
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
问题是你需要一些dll来运行可执行文件,所以你必须把它们放在本地目录上才能运行它,当你完成编码时,你必须找到一种方法让它们对最终用户可用,这里有一个为qt创建者制作的小教程,它解释得很好,请记住,单击netbeans中的run按钮与双击dist/release
或dist/debug
文件夹中的可执行文件几乎相同https://www.youtube.com/watch?v=X1BsPQue5-k
您可以将所需的DLL放在dist
文件夹(dist/debug/...
或dist/release/...
,exe所在的位置(中,例如:
- QtCore 4.dll
- QtCred4.dll
- QtGuid4Qt
- Guid4.dll
(您可以从<Path to Qt>/bin
中获取。