I searched around the web but didn't find a solution for my proper problem.
Problem: Qwt-installation failes at the nmake
-step
What I did:
-) installed Qt 5.1 (Qt 5.1.1 for Windows 64-bit (VS 2012, 525 MB)) (Info)from qt-website
-) Downloaded Qwt 6.1.0 files from here
-) extracted Files to C:/Qt/Qwt-6.1.0
-) set correct path in qwtconfig.pri
-) started MSVC 2012 console (coming with Qt) and run qmake qwt.pro
-) tried nmake
in same consol (but nmake.exe was not found)
--> installed Microsoft Visual 2010 Express from here (automatically installed to 'Program Files (x86)')
-) tried again in aboves consol nmake
but now with link to installed MSVC 2010 (but now comes fatal error U1077)
-) 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?
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.
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:
How to compile a 64-bit application using Visual C++ 2010 Express?
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.
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.
Here is the link for that: http://download.qt-project.org/official_releases/qt/5.1/5.1.1/qt-windows-opensource-5.1.1-msvc2010_opengl-x86-offline.exe
Remember that you can develop and execute 32 bit applications under 64 bit windows.
来源:https://stackoverflow.com/questions/18667339/install-qwt-on-win7-64bit