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. Qt in Visual Studio 2012

Qt in Visual Studio 2012

Scheduled Pinned Locked Moved Installation and Deployment
26 Posts 8 Posters 29.0k Views
  • 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.
  • D Offline
    D Offline
    daniel347x
    wrote on 5 Apr 2013, 23:00 last edited by
    #17

    I'd like to suggest that these notes be formalized and displayed prominently in an article linked on the home page. I am a newcomer to Qt, but I am an experienced C++ programmer and I use VS 2012.

    It seems to me that integration instructions for Microsoft's current development environment, as of April 2013, might rightfully be considered of paramount importance in terms of a "getting started on Windows" guide.

    That way, a user who wishes to integrate Qt with Microsoft's most current IDE will not have to dig through forum postings, as I have had to do.

    Thanks,
    Dan

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jemar
      wrote on 9 Apr 2013, 04:29 last edited by
      #18

      Hey guys. I've been working on a community wiki on stackoverflow for this exact problem. It's certainly not perfect and I think needs some work from people who know more than I, but it's a start: http://stackoverflow.com/questions/15826893/getting-qt5-to-install-and-work-with-visual-studio-2012/15893226#15893226

      1 Reply Last reply
      0
      • D Offline
        D Offline
        daniel347x
        wrote on 10 Apr 2013, 17:55 last edited by
        #19

        I have carefully followed the steps to build Qt on Windows 7 64-bit (but building Qt in 32-bit mode) in the linked StackOverflow Community Wiki (see previous comment for link), but I cannot overcome the following error while running nmake:

        "c1xx : fatal error C1083: Cannot open source file: '.rcc\debug_shared\qrc_mimetypes.cpp': No such file or directory."

        (And, indeed, there is no "qrc_mimetypes.cpp" file anywhere in my Qt folder or its subfolders.)

        I have posted a new StackOverflow question here: http://stackoverflow.com/questions/15932767/missing-qrc-mimetypes-cpp-while-attempting-to-build-qt-on-windows-7-32-bit-bu

        Any help would be appreciated. It seems that building Qt on Windows is not straightforward, even when following all directions with meticulous care. Thanks!

        1 Reply Last reply
        0
        • D Offline
          D Offline
          daniel347x
          wrote on 11 Apr 2013, 10:42 last edited by
          #20

          I have resolved the problem to be a catastrophic bug with the Avast! antivirus sandbox. Only a complete uninstallation of Avast! suffices; as long as Avast! remains installed on the system, it is impossible under any circumstances to build Qt.

          See http://stackoverflow.com/q/15932767/368896.

          1 Reply Last reply
          0
          • J Offline
            J Offline
            JKSH
            Moderators
            wrote on 11 Apr 2013, 10:47 last edited by
            #21

            If it's a bug with Avast's sandboxing engine, then it needs to be fixed as it will probably frustrate many other users in the meantime. Please notify the Avast developers.

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

            1 Reply Last reply
            0
            • D Offline
              D Offline
              daniel347x
              wrote on 11 Apr 2013, 10:54 last edited by
              #22

              I have already alerted Avast. I sent them a detailed email this morning. Frankly, I suspect that their company (with 200,000,000 users) is now too top-heavy to care.

              I will report here if and when they respond.

              1 Reply Last reply
              0
              • J Offline
                J Offline
                JKSH
                Moderators
                wrote on 11 Apr 2013, 11:15 last edited by
                #23

                Great, thanks for your efforts :) Fingers crossed that they remember how they grew popular in the first place

                Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  daniel347x
                  wrote on 12 Apr 2013, 15:31 last edited by
                  #24

                  Another VS2012 build issue, involving ICU support.

                  When ICU is enabled ("-icu" on the configure command line, along with a proper build of ICU in VS2012 and proper inclusion of all ICU paths (header, .lib, and .dll)), Line 688 of "qtbase\src\corelib\codecs\qtextcodec.cpp" returns a NULL codec (ICU fails to return a codec) when asked for a codec whose name is "US-ASCII".

                  Later, this NULL codec variable is dereferenced by the "lrelease.exe" utility when it attempts to perform a translation during the Qt build, which crashes lrelease.exe and causes the Qt build to stop with an error.

                  It therefore seems to be impossible to include ICU support with a VS2012-compiler 32-bit build of Qt5.

                  Might someone possibly be able to confirm and/or look into this?

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    daniel347x
                    wrote on 12 Apr 2013, 15:45 last edited by
                    #25

                    I have posted this question to StackOverflow: http://stackoverflow.com/questions/15975608/icu-support-in-a-32-bit-build-of-qt5-with-the-vs2012-compiler-causes-qt5-build-f

                    1 Reply Last reply
                    0
                    • D Offline
                      D Offline
                      daniel347x
                      wrote on 12 Apr 2013, 16:04 last edited by
                      #26

                      Note the further, related issue that this means that Webkit cannot be built for VS2012, either, since Webkit requires an ICU build of Qt.

                      1 Reply Last reply
                      0

                      26/26

                      12 Apr 2013, 16:04

                      • Login

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