April 6, 2011

Waylon Waylon
Lab Rat
1 posts

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:

error dialog box

3 replies

April 6, 2011

Zlatomir Zlatomir
Ant Farmer
367 posts

You will need to provide us more information, like:
1) 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
2) after the successful build, did you set the Qt version from Qt Options in Visual Studio Qt menu?

April 7, 2011

Waylon Waylon
Lab Rat
1 posts

I see the library files right there. I’d say they’ve come compiled right from the installation package.

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.

options,version

April 7, 2011

Zlatomir Zlatomir
Ant Farmer
367 posts

You only installed the VSAddin?
If yes… that is not enough.

You will need the Qt framework too, form here [qt.nokia.com] you can download:
1) the SDK //this will be the easiest way to start with Qt
or
2) the source code [get.qt.nokia.com]
or
3) 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:
1) un-zip the source code in a folder where you want to install Qt framework: lets say C:\Qt-4.7
2) start the Visual Studio cmd and navigate to C:\Qt-4.7
3) run configure with the desired options //see this link [doc.qt.nokia.com] for more information
//wait for configure to finish… a couple of minutes
4) 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
5) 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 [doc.qt.nokia.com]

 
  ‹‹ QWinWidget availability      How to "fix" the transparent row-number column of a QTable? ››

You must log in to post a reply. Not a member yet? Register here!