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. The procedure entry point ?open@QDialog@@UEAAXXZ could not be located in the dynamic link library
Forum Updated to NodeBB v4.3 + New Features

The procedure entry point ?open@QDialog@@UEAAXXZ could not be located in the dynamic link library

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 3 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
    Stroopwafel
    wrote on last edited by
    #1

    I've recently been experimenting with deploying a release built of my first GUI app experiment and I've run into some issues like most people before me.

    I have already:

    Used windeployqt.exe in Qt\5.15.1\mingw81_64\bin.
    I have added Qt\Tools\mingw810_64\bin to the Path.
    I have manually added the three lib.dll's from Qt\5.15.1\mingw81_64\bin to the release folder.

    Yet I now run into the error that is shown in the title of my post. I've seen a lot of similar errors on the web and I've tried to troubleshoot with the solutions listed there, but I've not seen this error specifically. It's probably not hard to solve, but I've run out of ideas at the moment. It would be greatly appreciated if anyone could give some hints or explanations as to what exactly is going wrong.

    JKSHJ 1 Reply Last reply
    0
    • S Stroopwafel

      I've recently been experimenting with deploying a release built of my first GUI app experiment and I've run into some issues like most people before me.

      I have already:

      Used windeployqt.exe in Qt\5.15.1\mingw81_64\bin.
      I have added Qt\Tools\mingw810_64\bin to the Path.
      I have manually added the three lib.dll's from Qt\5.15.1\mingw81_64\bin to the release folder.

      Yet I now run into the error that is shown in the title of my post. I've seen a lot of similar errors on the web and I've tried to troubleshoot with the solutions listed there, but I've not seen this error specifically. It's probably not hard to solve, but I've run out of ideas at the moment. It would be greatly appreciated if anyone could give some hints or explanations as to what exactly is going wrong.

      JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      Hi @Stroopwafel, and welcome!

      ?open@QDialog@@UEAAXXZ

      This symbol is generated by Microsoft Visual C++, not by MinGW.

      Make sure you haven't gotten your toolchains mixed up. For example, if you are using the MinGW compiler, you must also make sure that all DLLs in your program (including Qt) were built using MinGW.

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

      S 1 Reply Last reply
      2
      • JKSHJ JKSH

        Hi @Stroopwafel, and welcome!

        ?open@QDialog@@UEAAXXZ

        This symbol is generated by Microsoft Visual C++, not by MinGW.

        Make sure you haven't gotten your toolchains mixed up. For example, if you are using the MinGW compiler, you must also make sure that all DLLs in your program (including Qt) were built using MinGW.

        S Offline
        S Offline
        Stroopwafel
        wrote on last edited by
        #3

        @JKSH said in The procedure entry point ?open@QDialog@@UEAAXXZ could not be located in the dynamic link library:

        Hi @Stroopwafel, and welcome!

        ?open@QDialog@@UEAAXXZ

        This symbol is generated by Microsoft Visual C++, not by MinGW.

        Make sure you haven't gotten your toolchains mixed up. For example, if you are using the MinGW compiler, you must also make sure that all DLLs in your program (including Qt) were built using MinGW.

        I see. That's strange though as I use MinGW inside Qt Creator as well as the MinGW windeployqt.exe

        Could you give me some pointers on where to start checking for sneaky Visual C++ occurrences? I unfortunately don't quite know where to start.

        1 Reply Last reply
        0
        • JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by
          #4

          First things first: Are you able to build and run your application without errors from within Qt Creator?

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

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Stroopwafel
            wrote on last edited by Stroopwafel
            #5

            OK, I'm very sorry for the late reaction. At the moment I can't even get Qt Creator to start....

            OK so I've finally got everything working again. It's very slow at the moment but it's at least compiling just fine in both debug from within Qt Creator.
            It does not compile in release mode from within Qt Creator...

            1 Reply Last reply
            0
            • Christian EhrlicherC Online
              Christian EhrlicherC Online
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Stroopwafel said in The procedure entry point ?open@QDialog@@UEAAXXZ could not be located in the dynamic link library:

              Something's very wrong.

              You mixed up Qt libraries in your PATH env var.

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              S 1 Reply Last reply
              1
              • Christian EhrlicherC Christian Ehrlicher

                @Stroopwafel said in The procedure entry point ?open@QDialog@@UEAAXXZ could not be located in the dynamic link library:

                Something's very wrong.

                You mixed up Qt libraries in your PATH env var.

                S Offline
                S Offline
                Stroopwafel
                wrote on last edited by
                #7

                @Christian-Ehrlicher said in The procedure entry point ?open@QDialog@@UEAAXXZ could not be located in the dynamic link library:

                @Stroopwafel said in The procedure entry point ?open@QDialog@@UEAAXXZ could not be located in the dynamic link library:

                Something's very wrong.

                You mixed up Qt libraries in your PATH env var.

                OK After I removed the libraries from the PATH and now I can compile from within Qt again in both Debug and Release mode. I will try to do a Release Deploy soon and report back!

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  Stroopwafel
                  wrote on last edited by
                  #8

                  @Christian-Ehrlicher You were correct. I could have sworn I set the project up to compile with MinGW but I must have misclicked or some checkmark must have been autofilled on a different compiler. I checked the compiler output today and it clearly states msvc2019_64. Deploying with windeployqt.exe from the \Qt\5.15.1\msvc2019_64\bin folder worked perfectly. This was a good learning exercise.

                  Thank you @JKSH and @Christian-Ehrlicher for the help!

                  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