Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. UIC crashes when build QT5.5.1 with Visual Studio 2013
Forum Updated to NodeBB v4.3 + New Features

UIC crashes when build QT5.5.1 with Visual Studio 2013

Scheduled Pinned Locked Moved General and Desktop
14 Posts 3 Posters 3.9k Views 2 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.
  • RobinIR Offline
    RobinIR Offline
    RobinI
    wrote on last edited by
    #5

    I think the answer is that I want to only link to the static runtime... or to give an expanded response of my aim.. What I want at the end of the day is a set of Qt dlls which do not have any dependencies on the MSVC runtime dlls.

    K 1 Reply Last reply
    0
    • RobinIR RobinI

      I think the answer is that I want to only link to the static runtime... or to give an expanded response of my aim.. What I want at the end of the day is a set of Qt dlls which do not have any dependencies on the MSVC runtime dlls.

      K Offline
      K Offline
      KeithS
      wrote on last edited by
      #6

      @RobinI

      Why don't you want dependencies to MSVC runtime dlls?

      1 Reply Last reply
      0
      • RobinIR Offline
        RobinIR Offline
        RobinI
        wrote on last edited by
        #7

        I don't want dependencies to the MSVC runtime DLLs because all of the other internal libraries that we use are compiled with Mt(d). This was decided before I joined the company as we didn't the support queries that could arise from installing the MSVC runtime when it has been already installed.

        K 1 Reply Last reply
        0
        • RobinIR RobinI

          I don't want dependencies to the MSVC runtime DLLs because all of the other internal libraries that we use are compiled with Mt(d). This was decided before I joined the company as we didn't the support queries that could arise from installing the MSVC runtime when it has been already installed.

          K Offline
          K Offline
          KeithS
          wrote on last edited by
          #8

          @RobinI

          Fair enough. Have you tried using Dependency Walker on your uic.exe?

          1 Reply Last reply
          0
          • RobinIR Offline
            RobinIR Offline
            RobinI
            wrote on last edited by
            #9

            No I haven't but other than verifying that UIC was built with static MSVC libraries what else would it tell me? I did however load some of the dlls (qt5core.dll & qt5gui.dll) to verify that the runtime was statically linked.

            K 1 Reply Last reply
            0
            • RobinIR RobinI

              No I haven't but other than verifying that UIC was built with static MSVC libraries what else would it tell me? I did however load some of the dlls (qt5core.dll & qt5gui.dll) to verify that the runtime was statically linked.

              K Offline
              K Offline
              KeithS
              wrote on last edited by
              #10

              @RobinI

              Well, just that, you can check if there any dependencies you are not expecting. Although I'd not expect the program to start if any were missing.

              In the configure line you posted:

              ..\qt5.5.1-src\configure -debug-and-release -opensource -platform win32-msvc2013 -opengl desktop -nomake examples -nomake tests

              I don't see the -static option?

              1 Reply Last reply
              0
              • RobinIR Offline
                RobinIR Offline
                RobinI
                wrote on last edited by RobinI
                #11

                i will try adding the -static option but won't that build just the .lib's?

                Update: Building Qt (well just qtbase) with the -static option succeeds as does building Qt(base) with the MD(d) cl flags. I am really puzzled by this.

                I don't want to use the -static option due to LGPL licensing issues.

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

                  No, it will build everything but statically which is not what you'd like to do AFAIU.

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

                  RobinIR 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    No, it will build everything but statically which is not what you'd like to do AFAIU.

                    RobinIR Offline
                    RobinIR Offline
                    RobinI
                    wrote on last edited by
                    #13

                    @SGaist
                    yes that is what I thought and I also didn't want the LGPL licensing issues that this would incur too.

                    1 Reply Last reply
                    0
                    • RobinIR Offline
                      RobinIR Offline
                      RobinI
                      wrote on last edited by
                      #14

                      further updates...

                      I have tried to build Qt 5.4 with vs2013 and again UIC.exe crashes but when i built 5.6 with vs2015 with statically linked msvc runtime libraries it does not but does with 2013!

                      Since we will be moving to use vs2015 this will be fine but I am still puzzled why Qt does not like vs2013 with the MT(d) flags.

                      1 Reply Last reply
                      1

                      • Login

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