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. Error popups about library entry points
Qt 6.11 is out! See what's new in the release blog

Error popups about library entry points

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 4 Posters 1.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.
  • PerdrixP Offline
    PerdrixP Offline
    Perdrix
    wrote on last edited by Perdrix
    #1

    I get these trying to run a debug build of one of my projects

    22077e25-b5f3-4998-bbc3-3efe6797c302-image.png

    b951d31a-aa18-40ed-9200-0dbf7632a315-image.png

    What's the problem here please?

    I have no problems when running a release build.

    JonBJ 1 Reply Last reply
    0
    • PerdrixP Perdrix

      I get these trying to run a debug build of one of my projects

      22077e25-b5f3-4998-bbc3-3efe6797c302-image.png

      b951d31a-aa18-40ed-9200-0dbf7632a315-image.png

      What's the problem here please?

      I have no problems when running a release build.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @Perdrix
      Did you compile the Qt6OpenGl stuff yourself or did you receive it pre-compiled from somewhere? Are you absolutely certain it has been compiled with the exact same version of Qt6 as you are compiling the rest of your code with?

      I have no problems when running a release build.

      I was about to ask this, but you have just added it. Are you sure when you change to debug build that absolutely nothing is left over from previous release build? And that everything uses debug libraries now? Do an absolutely fresh, clean build, with all intermediate objects/directories deleted to be sure you reproduce these errors.

      And for the record you really should state what compiler you use for a question like this, how do people know whether it is MinGW or MSVC?

      1 Reply Last reply
      0
      • PerdrixP Offline
        PerdrixP Offline
        Perdrix
        wrote on last edited by Perdrix
        #3

        OK this was built using whatever the Qt install placed in C:\Qt\6.8.0\msvc2022_64
        So no I've not built the QtOpenGL stuff at all. This error occurs after a full clean and rebuild.

        D.

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

          So you should make sure that the correct dlls are picked up which is not the case as you can see.

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

          1 Reply Last reply
          0
          • PerdrixP Offline
            PerdrixP Offline
            Perdrix
            wrote on last edited by Perdrix
            #5

            So what did I do wrong, the project settings are:
            image.png

            I've no idea why the OpenGL stuff is involved - I don't use it (knowingly).

            Christian EhrlicherC 1 Reply Last reply
            0
            • PerdrixP Perdrix

              So what did I do wrong, the project settings are:
              image.png

              I've no idea why the OpenGL stuff is involved - I don't use it (knowingly).

              Christian EhrlicherC Offline
              Christian EhrlicherC Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Perdrix said in Error popups about library entry points:

              what did I do wrong

              Your global PATH environment variable contains a path to the wrong dlls.

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

              1 Reply Last reply
              1
              • PerdrixP Offline
                PerdrixP Offline
                Perdrix
                wrote on last edited by Perdrix
                #7

                No it doesn't, the DLLs are in the same directory as the .exe so will always be used for preference over any others, and indeed the dll in question is specifically called out in the error popups.

                For for the record:

                Path=C:\Program Files (x86)\VMware\VMware Workstation\bin;C:\Program Files\ImageMagick-7.1.1-Q16-HDRI;C:\Program Files\Python311\Scripts;C:\Program Files\Python311;C:\Program Files\Microsoft\jdk-17.0.6.10-hotspot\bin;C:\Program Files (x86)\Cuminas\Document Express DjVu Plug-in;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files\gs\gs10.00.0\bin;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin;C:\Program Files\IVI Foundation\VISA\Win64\Bin;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin;C:\PROGRAM FILES (X86)\COMMON FILES\ORACLE\JAVA\JAVAPATH;C:\PROGRAMDATA\ORACLE\JAVA\JAVAPATH;C:\PROGRAM FILES\DELL\DW WLAN CARD;C:\WINDOWS\SYSTEM32;C:\WINDOWS;C:\WINDOWS\SYSTEM32\WBEM;C:\WINDOWS\SYSTEM32\WINDOWSPOWERSHELL\V1.0;C:\Windows\System32\OpenSSH;C:\PROGRAM FILES (X86)\NVIDIA CORPORATION\PHYSX\COMMON;C:\PROGRAM FILES (X86)\NTP\BIN;C:\PROGRAM FILES\MICROSOFT DNX\DNVM;C:\PROGRAM FILES (X86)\WINDOWS KITS\8.1\WINDOWS PERFORMANCE TOOLKIT;C:\PROGRAM FILES (X86)\WINMERGE;C:\PROGRAM FILES (X86)\WINDOWS KITS\10\WINDOWS PERFORMANCE TOOLKIT;C:\PROGRAM FILES (X86)\VISUAL LEAK DETECTOR\BIN\WIN32;C:\PROGRAM FILES (X86)\VISUAL LEAK DETECTOR\BIN\WIN64;C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon;C:\Program Files (x86)\Kensington\TrackballWorks;C:\Program Files (x86)\Microchip\MPLAB C32 Suite\bin;C:\Program Files\TortoiseGit\bin;C;C:\Program Files (x86)\Visual Leak Detector\bin\Win32;C:\Program Files (x86)\Visual Leak Detector\bin\Win64;C:\Program Files\Calibre2;C:\Program Files\CMake\bin;C:\Program Files\Git\cmd;C:\Users\amonra\AppData\Local\Microsoft\WindowsApps;C:\Users\amonra\AppData\Local\GitHubDesktop\bin;C:\Users\amonra\AppData\Local\gitkraken\bin

                jsulmJ 1 Reply Last reply
                0
                • PerdrixP Perdrix

                  No it doesn't, the DLLs are in the same directory as the .exe so will always be used for preference over any others, and indeed the dll in question is specifically called out in the error popups.

                  For for the record:

                  Path=C:\Program Files (x86)\VMware\VMware Workstation\bin;C:\Program Files\ImageMagick-7.1.1-Q16-HDRI;C:\Program Files\Python311\Scripts;C:\Program Files\Python311;C:\Program Files\Microsoft\jdk-17.0.6.10-hotspot\bin;C:\Program Files (x86)\Cuminas\Document Express DjVu Plug-in;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files\gs\gs10.00.0\bin;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin;C:\Program Files\IVI Foundation\VISA\Win64\Bin;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin;C:\PROGRAM FILES (X86)\COMMON FILES\ORACLE\JAVA\JAVAPATH;C:\PROGRAMDATA\ORACLE\JAVA\JAVAPATH;C:\PROGRAM FILES\DELL\DW WLAN CARD;C:\WINDOWS\SYSTEM32;C:\WINDOWS;C:\WINDOWS\SYSTEM32\WBEM;C:\WINDOWS\SYSTEM32\WINDOWSPOWERSHELL\V1.0;C:\Windows\System32\OpenSSH;C:\PROGRAM FILES (X86)\NVIDIA CORPORATION\PHYSX\COMMON;C:\PROGRAM FILES (X86)\NTP\BIN;C:\PROGRAM FILES\MICROSOFT DNX\DNVM;C:\PROGRAM FILES (X86)\WINDOWS KITS\8.1\WINDOWS PERFORMANCE TOOLKIT;C:\PROGRAM FILES (X86)\WINMERGE;C:\PROGRAM FILES (X86)\WINDOWS KITS\10\WINDOWS PERFORMANCE TOOLKIT;C:\PROGRAM FILES (X86)\VISUAL LEAK DETECTOR\BIN\WIN32;C:\PROGRAM FILES (X86)\VISUAL LEAK DETECTOR\BIN\WIN64;C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon;C:\Program Files (x86)\Kensington\TrackballWorks;C:\Program Files (x86)\Microchip\MPLAB C32 Suite\bin;C:\Program Files\TortoiseGit\bin;C;C:\Program Files (x86)\Visual Leak Detector\bin\Win32;C:\Program Files (x86)\Visual Leak Detector\bin\Win64;C:\Program Files\Calibre2;C:\Program Files\CMake\bin;C:\Program Files\Git\cmd;C:\Users\amonra\AppData\Local\Microsoft\WindowsApps;C:\Users\amonra\AppData\Local\GitHubDesktop\bin;C:\Users\amonra\AppData\Local\gitkraken\bin

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

                  @Perdrix Is c:.........\GitHub\DSS your project build folder? Because the debug DLLs are loaded from there according to the error dialogs you posted.

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

                  1 Reply Last reply
                  0
                  • PerdrixP Offline
                    PerdrixP Offline
                    Perdrix
                    wrote on last edited by
                    #9

                    Yes, specifically C:\Users\amonra\Documents\GitHub\DSS\x64\Debug is the debug build output folder and that's where all the files in question are - either placed there by building my code, or by windeployqt (for the Qt dlls). I just checked and (at least) the OpenGL dlls in the debug directory were back level compared to the Qt 6.8.0 installation while the release directory had the correct ones.

                    I manually deleted everything from the build output dirs and re-ran the build, after which of course it worked as I expected. How/why there were some back level dlls in the Debug directory ????

                    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