[英]How can I run qwt examples using Visual Studio 2010?
I'm trying to run Qwt examples using VS2010. 我正在尝试使用VS2010运行Qwt示例。 I've installed the Qt plugin for Visual Studio. 我已经为Visual Studio安装了Qt插件。 I then open the .pro file of Qwt and the build succeeds. 然后,我打开Qwt的.pro文件,构建成功。 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 无法启动程序E:\\ qwt-6.0.1 \\ src .. \\ lib \\ qwtd.dll
Does anyone have an idea what might cause this? 有谁知道这可能是什么原因?
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. 之后,我在qwt的examples / bin中有一组正在运行的示例。 It's also easy to open one of them in Developer Studio with the "Open Qt Project File" option in the Qt Menu. 使用Qt菜单中的“打开Qt项目文件”选项,也可以在Developer Studio中轻松打开其中的一个。
From the information you're giving us, it seems you have the project generating your DLL set at the StartUp project. 从您提供给我们的信息来看,似乎您有一个在StartUp项目中生成DLL集的项目。 So whenever you click on run/debug, it will try to run the output of that project, in this case a DLL. 因此,每当您单击运行/调试时,它将尝试运行该项目的输出,在本例中为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. 现在,当您单击运行/调试时,它将运行所选项目的输出(可执行文件)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.