I've installed qt add-in for VS2010 and when I try to "show" a path to Qt installed I'm getting an error that this ver of qt has been built with mingw. I get it, I've found similar question
but when I tried to type in console 'configure' I'm getting error that configure isn't recognized.
How shall I overcome this problem?
3 Answers
If you are using Qt with VC it's best to have built Qt with visual studio.
See How to build Qt for Visual Studio 2010
edit: Just unpack the sources, and from the visual studio command prompt do
configure.exe -platform win32-msvc2010 -no-qt3support -fast
Or you can just use the vs2008 libs, they will work with vs2010, you just can't mix Microsoft and gcc/mingw built libs.

- 1
- 1

- 94,801
- 28
- 188
- 263
-
I saw that, but as I've said, when I type 'configure' I'm getting an error – smallB Jul 07 '11 at 18:23
-
Then you either haven't installed the sources correctly or it's another error - have you checked the steps in the link? – Martin Beckett Jul 07 '11 at 18:26
-
@smallB: You need Perl installed & in your path in order for configure to work http://www.activestate.com/activeperl – Grant Limberg Jul 07 '11 at 19:29
-
@Grant Limberg - not anymore, Qt ships with a configure.exe – Martin Beckett Jul 07 '11 at 19:40
-
@Martin Beckett: Last time I built Qt on Windows it had the configure.exe and still needed Perl – Grant Limberg Jul 07 '11 at 20:10
-
1@Grant, just checked you now only need perl to build opensll from scratch http://developer.qt.nokia.com/wiki/Building_Qt_Desktop_for_Windows_with_MSVC – Martin Beckett Jul 07 '11 at 20:17
Follow this explanation:
How to build Qt for Visual Studio 2010
And then everything will work (once you set up your Qt paths of course).
Thats because the way Qt is built by MinGW and VS is different and has different files.
You have to download Qt source code. Click Start and search for Visual Studio 2008 command prompt or 2010 command prompt.
Go to Visual Studio Command prompt and navigate to Qt source code folder. Type
configure -platform win32-msvc2008 --> if you have VS 2008
or use configure -platform win32-msvc2010 for VS 2010
and after that is done, just type
nmake
Wait until its built (4 hrs) and that should fix it.

- 1,692
- 3
- 21
- 35