Can't build qwt with visual studio
Hi, I have an issue with qwt designer plugin. I'm working on windows and the instructions says i have to run
qmake qwt.pro
nmake
from visual studio prompt. All is built but qt creator refuses to load plugin because it was built with mingw. So I install qt-vs addin 1.1.5, configure it and load qwt.pro in visual studio (2008). Now I get this error
The following error occoured. Unable to find. (Exception from HRESULT: 0x80030002 (STG_E_FILENOTFOUND)) (at EnvDTE.SolutionClass.Open(String FileName) at Trolltech.Qt4VS2008.QtProjectLib.ProjectImporter.I mportSolution(FileInfo mainInfo, String qtVersion)).
Any ideas?
Re: Can't build qwt with visual studio
I have no idea for your specific problem, but maybe this site can help: qwt with VisualStudio
Re: Can't build qwt with visual studio
Re: Can't build qwt with visual studio
Quote:
... from visual studio prompt.
Did you build Qwt completely with a Qt version that was build with Visual Studio ?
Better uninstall your Qt/MinGW completely and restart your Qwt build from scratch ( remove the Qwt directory and unzip a fresh one )
Quote:
qmake qwt.pro
nmake
You forgot to do "nmake install"
Quote:
So I install qt-vs addin 1.1.5, configure it and load qwt.pro in visual studio (2008).
The crash indicates a problem of your Qt environment - but even if everything would be o.k. there is no reason to load qwt.pro, when you already have built Qwt.
Uwe
Re: Can't build qwt with visual studio
Quote:
Originally Posted by
Patrik
mmm, I can't read german
sorry, I didn't looked at the language in the link. I knew that it helped me setting up qwt... most of my stored programming bookmarks are in English.
Re: Can't build qwt with visual studio
Quote:
Originally Posted by
Uwe
Did you build Qwt completely with a Qt version that was build with Visual Studio ?
I have downloaded this (http://get.qt.nokia.com/qtsdk/qt-sdk...ce-2010.04.exe). I did not build Qt sdk. I have to build qwt from source because I can't find a binary version and I have to use Visual Studio because qt designer will not load qwt plugin because it (designer) wants a plugin compiled with VS while my plugin is compiled with mingw, even if I follow VS instructions and use nmake
Quote:
Better uninstall your Qt/MinGW completely and restart your Qwt build from scratch ( remove the Qwt directory and unzip a fresh one )
if I uninstall Qt I'll be missing qmake.exe which is necessary for the first step and nmake will complain because it cannot find g++
Re: Can't build qwt with visual studio
Quote:
Originally Posted by
Patrik
I have downloaded this (
http://get.qt.nokia.com/qtsdk/qt-sdk...ce-2010.04.exe). I did not build Qt sdk. I have to build qwt from source because I can't find a binary version and I have to use Visual Studio because qt designer will not load qwt plugin because it (designer) wants a plugin compiled with VS while my plugin is compiled with mingw, even if I follow VS instructions and use nmake
So the reason for your problems is identified: you are mixing binaries built with Visual Studio with others built with MinGW.
Uwe
Re: Can't build qwt with visual studio
Quote:
Originally Posted by
Uwe
So the reason for your problems is identified: you are mixing binaries built with Visual Studio with others built with MinGW.
Uwe
Yes, that's why I need to know how to build qwt with visual studio. Apparently Qt SDK was built with VS even if it ships with mingw
Re: Can't build qwt with visual studio
You could try something like "qmake -spec win32-msvc2010" but ...
I'm sure you need to have a clean Qt installation - no MinGW, Visual Studio mishmash. Then remove your QWT installation and install it again following the instructions in the INSTALL file. When you execute the right qmake from the right Qt installation it will generate a Makefile that builds Qwt with Visual Studio.
I know this sounds boring but please don't insist on your bad installation. But if - better continue on a Qt related forum. You will have this problem with any project you want to build with qmake.
Uwe
Re: Can't build qwt with visual studio
Quote:
Originally Posted by
Uwe
You could try something like "qmake -spec win32-msvc2010" but ...
that did the trick
Re: Can't build qwt with visual studio
I know this thread is a bit old, but I'm having the exact same problem.
From the QT Command promptI ran:
Code:
qmake -spec win32-msvc2010
Then from the Visual Studio Command Prompt I ran: Nmake compiled a bunch of stuff but ultimately failed with the error:
Code:
linking ..\lib\qwt5.dll
LINK : fatal error LNK1181: cannot open input file 'c:\Qt\2010.05\qt\lib\QtGui4.
lib'
I am using the normal windows binary for the QT IDE / Creator found at http://qt.nokia.com/downloads/sdk-windows-cpp.
Do you mind providing more details on how you got this to work?