Error starting new project in Visual Studio2010
-
Error starting new project in Visual Studio2010
I'm unable to start a Qt project.I go File -> New Project, then after clicking "Finish" in the wizard, I get this cryptic error:
!http://img215.imageshack.us/img215/396/q4errorunabletofindqtbu.jpg(error dialog box)!
-
You will need to provide us more information, like:
- did you successfully built Qt sources with Visual Studio 2010?
//you need to build Qt framework yourself, because as far as i know there is no binary download for VS2010 - after the successful build, did you set the Qt version from Qt Options in Visual Studio Qt menu?
- did you successfully built Qt sources with Visual Studio 2010?
-
I see the library files right there. I'd say they've come compiled right from the installation package.
!http://img695.imageshack.us/img695/6614/qtinstallfolder.jpg(qt VS addin install folder)!
What do I add here, and does documentation exist for this setup? Nothing came with the downloaded installation program. There's nothing viewable in that help folder. I'm just taking stabs in the dark here.
!http://img30.imageshack.us/img30/5217/qtoptionsversion.jpg(options,version)!
-
You only installed the VSAddin?
If yes... that is not enough.You will need the Qt framework too, form "here":http://qt.nokia.com/downloads you can download:
- the SDK(uses MinGW compiler) //this will be the easiest way to start with Qt
or - the "source code":http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.7.2.zip
or - the Qt framework built with Visual Studio 2008 ( that won't work with Visual Studio 2010 - your applications will give run-time errors)
Ok now if you really need Qt in Visual Studio 2010, you need to build Qt framework with VS2010, do achieve that you will need the Qt source code (see the link above) and then:
- un-zip the source code in a folder where you want to install Qt framework: lets say C:\Qt-4.7
- start the Visual Studio cmd and navigate to C:\Qt-4.7
- run configure with the desired options //see this "link":http://doc.qt.nokia.com/latest/configure-options.html for more information
//wait for configure to finish... a couple of minutes - run nmake
//or nmake sub-src to build the framework and then nmake sub-tools to build the tools
//takes 2-3 (maybe more) hours depending on your system configuration - add a Qt version in the Addin menu (select the folder where you built Qt <C:\Qt-4.7> - it will have a qmake.exe ;) )
A more detailed version of what i said can be found "here":http://doc.qt.nokia.com/latest/install-win.html
- the SDK(uses MinGW compiler) //this will be the easiest way to start with Qt