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. mingw32.lib missing from distribution
Forum Updated to NodeBB v4.3 + New Features

mingw32.lib missing from distribution

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
4 Posts 3 Posters 974 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.
  • M Offline
    M Offline
    matthewjheaney
    wrote on last edited by
    #1

    I just downloaded Qt 6.6.2. It was the "Desktop" installation package.

    I'm on a 64-bit machine using Win 11.

    I'm trying to build the calcuator example from the demos dir.

    The link fails because it cannot find mingw32.lib, which is not present in the distribution.

    I was using the default mingw_64 compiler (it's the default kit), but for whatever reason that it was attempting to follow build instructions in a *.vcxproj file. (Why? Isn't that a MSVC++ thing?)

    I was unable to bulid the calculator example using the default mingw_64 kit.

    I have MSVC installed (VS 2022 v17.9), so I used MSVC as another kit for the calculator example project.

    However, building with MSVC fails because it needs ming32.lib to remap the symbols. The link fails because it cannot find definitions for another of the functions declared in QtCore.

    So what is the intended mechanism for building the Qt examples on Windows? Has anyone been able to do this successfully, using either the mingw_64 compiler or MSVC 2022?

    Does anyone have a mingw32.lib in their Qt distribution? If you don't have that lib, how were you able to build a Qt project without it?

    jsulmJ Ronel_qtmasterR 2 Replies Last reply
    0
    • M matthewjheaney

      I just downloaded Qt 6.6.2. It was the "Desktop" installation package.

      I'm on a 64-bit machine using Win 11.

      I'm trying to build the calcuator example from the demos dir.

      The link fails because it cannot find mingw32.lib, which is not present in the distribution.

      I was using the default mingw_64 compiler (it's the default kit), but for whatever reason that it was attempting to follow build instructions in a *.vcxproj file. (Why? Isn't that a MSVC++ thing?)

      I was unable to bulid the calculator example using the default mingw_64 kit.

      I have MSVC installed (VS 2022 v17.9), so I used MSVC as another kit for the calculator example project.

      However, building with MSVC fails because it needs ming32.lib to remap the symbols. The link fails because it cannot find definitions for another of the functions declared in QtCore.

      So what is the intended mechanism for building the Qt examples on Windows? Has anyone been able to do this successfully, using either the mingw_64 compiler or MSVC 2022?

      Does anyone have a mingw32.lib in their Qt distribution? If you don't have that lib, how were you able to build a Qt project without it?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @matthewjheaney said in mingw32.lib missing from distribution:

      However, building with MSVC fails because it needs ming32.lib to remap the symbols.

      Building with MSVC should not require ming32.lib. I guess you did not do a complete rebuild after your first attempt to build with MinGW. So, delete build folder and build again with MSVC.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • M matthewjheaney

        I just downloaded Qt 6.6.2. It was the "Desktop" installation package.

        I'm on a 64-bit machine using Win 11.

        I'm trying to build the calcuator example from the demos dir.

        The link fails because it cannot find mingw32.lib, which is not present in the distribution.

        I was using the default mingw_64 compiler (it's the default kit), but for whatever reason that it was attempting to follow build instructions in a *.vcxproj file. (Why? Isn't that a MSVC++ thing?)

        I was unable to bulid the calculator example using the default mingw_64 kit.

        I have MSVC installed (VS 2022 v17.9), so I used MSVC as another kit for the calculator example project.

        However, building with MSVC fails because it needs ming32.lib to remap the symbols. The link fails because it cannot find definitions for another of the functions declared in QtCore.

        So what is the intended mechanism for building the Qt examples on Windows? Has anyone been able to do this successfully, using either the mingw_64 compiler or MSVC 2022?

        Does anyone have a mingw32.lib in their Qt distribution? If you don't have that lib, how were you able to build a Qt project without it?

        Ronel_qtmasterR Online
        Ronel_qtmasterR Online
        Ronel_qtmaster
        wrote on last edited by
        #3

        @matthewjheaney i suspect that in your environment there any other unix-ish things in your %PATH%, like. cygwin, or msys, perl, ruby, ... or other versions of mingw which are conflicting with Mingw of the kit

        1 Reply Last reply
        0
        • M Offline
          M Offline
          matthewjheaney
          wrote on last edited by
          #4

          I had been trying link to .a files on a Windows machine. That's why I thought I needed the mingw32.lib file.

          But that's not how a Windows build works. I learned from the video here:

          https://youtu.be/XiMplRfuFJc

          that what I should have done is used a custom install to bring in the Windows library files, then link those in the normal way.

          Thanks everyone for the responses.

          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