简体   繁体   English

如何使用Visual Studio 2010运行qwt示例?

[英]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: 关键步骤包括:

  1. Add the bin dir of qt and the lib dirs of qt and qwt to the path 将qt的bin目录以及qt和qwt的lib目录添加到路径
  2. Dont forget to run vcvars32.bat from Visual Studios bin directory 不要忘记从Visual Studios bin目录运行vcvars32.bat
  3. VC\\bin should be in the path too VC \\ bin也应该在路径中
  4. then follow the INSTALL instructions from qwt 然后按照qwt的安装说明进行操作

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.

相关问题 无法在 Visual Studio 2019 中运行 libpq 示例 - Can not run libpq examples in Visual Studio 2019 如何使用Qwt / Qt绘制离散数据集? - How can I plot a discrete dataset using Qwt/Qt? 我无法在 Visual Studio 2010 中编译 - I can't compile in Visual Studio 2010 如何将Visual Studio 2010与Visual C ++ 2008编译器一起使用? - How can I use Visual Studio 2010 with the Visual C++ 2008 compiler? 如何将项目从Visual C ++ 6.0转换为Visual Studio Express 2010? - How can I convert a Project from Visual C++ 6.0 to Visual Studio Express 2010? 如何实现Tesseract以在Visual Studio 2010中与项目一起运行 - How to implement Tesseract to run with project in Visual Studio 2010 我可以在Visual Studio 2010中使用C构建自定义的Apache模块扩展吗? - Can I build a custom Apache Module Extension using C in Visual Studio 2010? 如何安装Visual Studio 2008的最小功能,足以使用Visual Studio 2010的多目标构建C ++应用程序? - How do I install the minimal facilities of Visual Studio 2008 sufficient for building C++ applications using Visual Studio 2010's multitargeting? 在Visual Studio 2010中使用fuzzylite - Using fuzzylite in Visual Studio 2010 如何在Visual Studio 2010 Ultimate中创建C ++项目 - How can I create a C++ project in Visual Studio 2010 Ultimate
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM