在Win7 64位上安装Qwt [英] Install Qwt on Win7 64bit

查看:29
本文介绍了在Win7 64位上安装Qwt的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在网上搜索,但没有找到适合我的问题的解决方案.

I searched around the web but didn't find a solution for my proper problem.

问题:Qwt 安装在 nmake-step

Problem: Qwt-installation failes at the nmake-step

我做了什么:

-) 从 qt 网站

-) 从 Qwt 6.1.0 文件>这里

-) Downloaded Qwt 6.1.0 files from here

-) 将文件解压到 C:/Qt/Qwt-6.1.0

-) extracted Files to C:/Qt/Qwt-6.1.0

-) 在 qwtconfig.pri 中设置正确的路径

-) set correct path in qwtconfig.pri

-) 启动 MSVC 2012 控制台(随 Qt 一起提供)并运行 qmake qwt.pro

-) started MSVC 2012 console (coming with Qt) and run qmake qwt.pro

-) 在同一个控制台中尝试了 nmake(但未找到 nmake.exe)

-) tried nmake in same consol (but nmake.exe was not found)

--> 从此处安装了 Microsoft Visual 2010 Express(自动安装到'Program Files (x86)')

--> installed Microsoft Visual 2010 Express from here (automatically installed to 'Program Files (x86)')

-) 在上面的 consol nmake 中再次尝试,但现在链接到已安装的 MSVC 2010(但现在出现致命错误 U1077)

-) tried again in aboves consol nmake but now with link to installed MSVC 2010 (but now comes fatal error U1077)

-) 接下来我尝试了 MSVC 2010 附带的 consol 并再次运行 nmake(现在我收到致命错误 LNK1112,它告诉我的 x64PC 与目标类型 x86 不兼容)

-) next I tried the consol coming with MSVC 2010 and again ran nmake (now I get fatal error LNK1112, which tells my x64PC is not compatible with target type x86)

问题:我怎样才能让它发挥作用?

Question: how can I make it work?

推荐答案

现在我收到致命错误 LNK1112,它告诉我的 x64PC 与目标类型 x86 不兼容您的问题是您安装了 64 位 Qt,然后您尝试在 32 位模式下构建 Qwt.您不能将 32 位代码链接到 64 位代码或 viseversa.

now I get fatal error LNK1112, which tells my x64PC is not compatible with target type x86 Your problem is you installed the 64 bit Qt then you are trying to build Qwt in 32 bit mode. You can not link 32 bit code to 64 bit code or viseversa.

如果要构建 64 位应用程序,请确保您有 64 位编译器.Visual Studio 2010 Express 不附带 64 位编译器.以下应该对此有所帮助:

Make sure you have a 64 bit compiler if you want to build a 64 bit application. Visual Studio 2010 Express does not come with a 64 bit compiler. The following should help with that:

如何编译一个 64-位应用程序使用 Visual C++ 2010 Express?

在您获得 64 位编译器后,我相信您应该从 Visual Studio x64 命令提示符运行 configure 和 nmake 以使编译器构建 64 位应用程序.

After you get a 64 bit compiler I believe you should run configure and nmake from a Visual Studio x64 command prompt to get the compiler to build 64 bit applications.

如果您真的不需要 64 位应用程序,一个更简单的方法是为 Visual Studio 2010 安装 32 位 Qt SDK.

If you really do not need 64 bit applications a much easier approach is to install the 32 bit Qt SDK for Visual Studio 2010.

这是链接:http://download.qt-project.org/official_releases/qt/5.1/5.1.1/qt-windows-opensource-5.1.1-msvc2010_opengl-x86-offline.exe

请记住,您可以在 64 位窗口下开发和执行 32 位应用程序.

Remember that you can develop and execute 32 bit applications under 64 bit windows.

win32 位应用程序会在64位服务器?

这篇关于在Win7 64位上安装Qwt的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆