如何使用 Visual Studio 2010 运行 qwt 示例?
我正在尝试使用 VS2010 运行 Qwt 示例。我已经安装了 Visual Studio 的 Qt 插件。然后我打开 Qwt 的 .pro 文件,构建成功。但我不知道下一步该做什么。每当我单击“运行”时,它都会出现一个对话框,其中显示
无法启动程序E:\qwt-6.0.1\src..\lib\qwtd.dll
有谁知道可能会导致此问题的原因吗?
I'm trying to run Qwt examples using VS2010. I've installed the Qt plugin for Visual Studio. I then open the .pro file of Qwt and the build succeeds. But I have no clue what to do next. Whenever I click run, it gives me a dialog which says
unable to start programe E:\qwt-6.0.1\src..\lib\qwtd.dll
Does anyone have an idea what might cause this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我刚刚设法使用命令行工具编译了示例。包括的关键步骤:
,然后 我在 qwt 的 Examples/bin 中有一组运行示例。使用 Qt 菜单中的“打开 Qt 项目文件”选项也可以轻松在 Developer Studio 中打开其中一个。
I just managed to get the examples compiled using the command line tools. Key steps included:
After this I had a set of running examples in examples/bin of qwt. It's also easy to open one of them in Developer Studio with the "Open Qt Project File" option in the Qt Menu.
从您提供给我们的信息来看,您似乎在 StartUp 项目中生成了 DLL 设置。因此,每当您单击运行/调试时,它都会尝试运行该项目的输出,在本例中是 DLL。当然这是行不通的。
如果您想要运行该示例的项目,请在解决方案资源管理器中右键单击该项目,然后选择“设置为启动项目"。现在,当您单击运行/调试时,它将运行您所选项目的输出(可执行文件)。
From the information you're giving us, it seems you have the project generating your DLL set at the StartUp project. So whenever you click on run/debug, it will try to run the output of that project, in this case a DLL. Of course this won't work.
If there is a project for the example you want to run, right click on that project within the Solution Explorer and select "Set as StartUp Project". Now when you click on run/debug, it will run the output (the executable) of the project you selected.