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. Uic error during MT Qt5.2 compilation (VS2012)
Qt 6.11 is out! See what's new in the release blog

Uic error during MT Qt5.2 compilation (VS2012)

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 2 Posters 2.1k 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.
  • S Offline
    S Offline
    SirAnn
    wrote on last edited by
    #1

    Hi
    I configured the Qt5.2 from git with MT instead of MD.

    Therefore I changed the flags in:
    qt5\qtbase\mkspecs\win32-msvc2012\qmake.conf
    before I calles configure.

    Then I started the compile seesion with "nmake" and the compilation stops with error 0x2 at

    qt5\qtbase\bin\uic.exe dialogs\qfiledialog.ui -o .uic\ui_qfiledialog.h

    The ui compiler stops working witout any specific error message.

    Any idea how I get a MT version of Qt5.2?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SirAnn
      wrote on last edited by
      #2

      meanwhile I found:
      http://qt-project.org/doc/qt-5/windows-deployment.html

      that says I just have to call
      configure -static
      to build static libraries!?

      Does that work for VS2012? The build i still running and I still see the MD flags...

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi and welcome to devnet,

        -static will build a static Qt linking against the dynamic Microsoft Runtime

        If you want a static Qt using the static Runtime you will need to modify the corresponding mkespec and use -static when configuring

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        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