Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Error starting new project in Visual Studio2010

    General and Desktop
    2
    4
    3191
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      Waylon last edited by

      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)!

      1 Reply Last reply Reply Quote 0
      • Zlatomir
        Zlatomir last edited by

        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?

        https://forum.qt.io/category/41/romanian

        1 Reply Last reply Reply Quote 0
        • W
          Waylon last edited by

          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)!

          1 Reply Last reply Reply Quote 0
          • Zlatomir
            Zlatomir last edited by

            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:

            1. the SDK(uses MinGW compiler) //this will be the easiest way to start with Qt
              or
            2. the "source code":http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.7.2.zip
              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":http://doc.qt.nokia.com/latest/configure-options.html 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":http://doc.qt.nokia.com/latest/install-win.html

            https://forum.qt.io/category/41/romanian

            1 Reply Last reply Reply Quote 0
            • First post
              Last post