Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. What is the intended way of getting Qt 5.0.0 to work inside VS2012?
Forum Updated to NodeBB v4.3 + New Features

What is the intended way of getting Qt 5.0.0 to work inside VS2012?

Scheduled Pinned Locked Moved Installation and Deployment
8 Posts 5 Posters 3.5k Views 1 Watching
  • 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.
  • A Offline
    A Offline
    Adelost
    wrote on last edited by
    #1

    I noticed Visual Studio Add-in 1.2.0 now supports VS2012, but there is no libraries compiled for it yet. Do I have to compile them myself, or is there another way?

    I am quite new to Qt and compiling the libraries myself seems a bit too advanced for me, but if that's the only way, I would be grateful if someone pointed me in the right direction and where to start doing my research.

    I actually tried compiling the libraries myself, but I must have done something wrong, because VS2012 ran for an hour or so and then just stopped.

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lgeyer
      wrote on last edited by
      #2

      [quote author="Adelost" date="1356945785"]I noticed Visual Studio Add-in 1.2.0 now supports VS2012, but there is no libraries compiled for it yet. Do I have to compile them myself, or is there another way?[/quote]There are no official MSVC2012 builds yet. You will either have to compile Qt on your own or you'll find someone who has already done so and is willingly to share that build.

      [quote author="Adelost" date="1356945785"]I am quite new to Qt and compiling the libraries myself seems a bit too advanced for me, but if that's the only way, I would be grateful if someone pointed me in the right direction and where to start doing my research.[/quote]It actually isn't advanced. "Download the source":http://releases.qt-project.org/qt5/5.0.0/single/qt-everywhere-opensource-src-5.0.0.zip, open a command promt, <code>configure</code> and <code>nmake</code>.

      If you need futher information feel free to dig through these forums, the Wiki and the documentation.

      [quote author="Adelost" date="1356945785"]I actually tried compiling the libraries myself, but I must have done something wrong, because VS2012 ran for an hour or so and then just stopped.[/quote]Not necessarily.

      1 Reply Last reply
      0
      • B Offline
        B Offline
        boxy
        wrote on last edited by
        #3

        Hi guys, I too am new to Qt (and programming in general) and Im currently in the process of trying to get Qt5 to work in VS2012.

        I've successfully ran configure and and nmake and nmake is now in the process of compiling Qt5. I shall report back with results.

        Ben.H

        1 Reply Last reply
        0
        • K Offline
          K Offline
          KamranMackey
          wrote on last edited by
          #4

          That's good you successfully ran configure. But did the results impress you or did they disappoint you? I hope they impressed you.

          1 Reply Last reply
          0
          • C Offline
            C Offline
            Code_ReaQtor
            wrote on last edited by
            #5

            Hi guys!

            I am one of the few who successfully built Qt 5.0.0 with VS2012 (in Windows 7).

            It seems like I am still having some "problem":http://qt-project.org/forums/viewthread/23658/ when my app is run out of Qt Creator.

            But I guess it is working since app runs inside Qt Creator, maybe just missing some dlls only in my package.

            I tried to build it in "static" mode but this time I failed. I guess we can build it only in share/DLL by the time.

            Please visit my open-source projects at https://github.com/Code-ReaQtor.

            1 Reply Last reply
            0
            • K Offline
              K Offline
              KamranMackey
              wrote on last edited by
              #6

              Good for you dude! :)

              1 Reply Last reply
              0
              • B Offline
                B Offline
                boxy
                wrote on last edited by
                #7

                !https://lh6.googleusercontent.com/-GhQ1nC1tVfQ/UPDj5wWoOsI/AAAAAAAAAIM/pXFPrf6XdVk/s808/nmake_error.png(nmake_error)!
                Mine failed with the above errors...

                bq. That’s good you successfully ran configure. But did the results impress you or did they disappoint you? I hope they impressed you.

                My configure report looked fine to me. Although i could have missed something. Im not sure what would have impressed me? :S

                Ben.H

                1 Reply Last reply
                0
                • B Offline
                  B Offline
                  boxy
                  wrote on last edited by
                  #8

                  Hi people,

                  A follow on from my last post. The error was just to some character and encoding issues and it also happened in another .cpp file. All I had to do was find the line of code with the problem and changed the string literals to something else.

                  The make eventually finished. For those who are interested here's the configure i used:
                  @// done inside VS2012 x86 Native Tools Command Prompt
                  configure -developer-build -opensource -confirm-license -mp
                  nmake@

                  I also tried to add -opengl desktop but the relevant source code had some compilation error that I did not try to fix.

                  I was able to use Qt Creator to create a basic mainwindow and tested some example codes using the new build with the MSVC2012 compiler. Everything seems to be fine until after i installed the Visual studio add-in and tried to launch qt desginer from within VS2012. It gave me some D3D compiler related DLL missing error. and when i provided those DLL, it still would not start giving a different error with no information on the cause of the error.

                  Ben.H

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved