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. [Solved]Error trying execute without QTCreator: Entry Point Not Found
Forum Updated to NodeBB v4.3 + New Features

[Solved]Error trying execute without QTCreator: Entry Point Not Found

Scheduled Pinned Locked Moved Installation and Deployment
deploymentwindowsdll
9 Posts 5 Posters 9.6k Views 3 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.
  • V Offline
    V Offline
    vinicius
    wrote on last edited by vinicius
    #1

    I tried to copy all dlls to run my project out of QtCreator and received this message:
    The procedure entry point_cxa_throw_bad_array_new_length could not be located in the dynamic link library D:\Documents\build-TP-CALC2-Desktop_Qt_5_4_1_MinGW_32bit-Release\release\Qt5Core.dll

    What might be happening?

    Sorry my english :p

    1 Reply Last reply
    0
    • hskoglundH Offline
      hskoglundH Offline
      hskoglund
      wrote on last edited by
      #2

      Hi, this error can occur if you copy the Qt5Core.dll (and the other DLLs) from the wrong place.
      I'm guessing you copied from C:\Qt\Tools\QtCreator\bin (which gives you that error). Instead, try copying from the C:\Qt\5.4\mingw491_32\bin directory.

      1 Reply Last reply
      1
      • V Offline
        V Offline
        vinicius
        wrote on last edited by vinicius
        #3

        I copied from C:\Qt\5.4\mingw491_32\bin.
        First I used the windeployqt. I thought it was a bug or something else and decided to copy manually. However, the same error has occurred.

        Edit:
        If I copy .exe to C:\Qt\5.4\mingw491_32\bin, its execute fine.
        If I copy dlls to .exe folder, its crashes.
        There are something wrong with my system configuration?

        Sorry my english :p

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

          Hi @vinicius,

          Do you have any Qt-related items in your PATH? If so, remove them. This is a common cause of crashes.

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

          1 Reply Last reply
          1
          • V Offline
            V Offline
            vinicius
            wrote on last edited by
            #5

            No, there are no QT in path.

            Sorry my english :p

            1 Reply Last reply
            0
            • V vinicius

              I copied from C:\Qt\5.4\mingw491_32\bin.
              First I used the windeployqt. I thought it was a bug or something else and decided to copy manually. However, the same error has occurred.

              Edit:
              If I copy .exe to C:\Qt\5.4\mingw491_32\bin, its execute fine.
              If I copy dlls to .exe folder, its crashes.
              There are something wrong with my system configuration?

              JKSHJ Online
              JKSHJ Online
              JKSH
              Moderators
              wrote on last edited by
              #6

              @vinicius said:

              If I copy .exe to C:\Qt\5.4\mingw491_32\bin, its execute fine.
              If I copy dlls to .exe folder, its crashes.

              That means your .exe grabbed the correct DLLs when you copied it into C:\Qt\5.4\mingw491_32\bin, but grabbed the wrong DLLs when you copied the DLLs into the .exe folder.

              Follow the steps at http://wiki.qt.io/Deploy_an_Application_on_Windows closely.

              If that still doesn't work,

              1. Run your .exe from C:\Qt\5.4\mingw491_32\bin
              2. While it's running, use the ListDLLs tool to see what DLLs it has loaded
                • The command would be something like ListDLLs.exe TP-CALC2 > log.txt
              3. Quit your .exe
              4. Run your .exe from the exe folder
              5. When the error message appears, run ListDLLs again.
              6. Compare your DLL list and see what's different.

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

              V 1 Reply Last reply
              2
              • Chris KawaC Offline
                Chris KawaC Offline
                Chris Kawa
                Lifetime Qt Champion
                wrote on last edited by
                #7

                bad_array_new_length is a symbol from the standard library, so I'm guessing you did not copy the compiler runtime libs (libstdc++-6.dll and libgcc_s_dw2-1.dll)?

                1 Reply Last reply
                1
                • JKSHJ JKSH

                  @vinicius said:

                  If I copy .exe to C:\Qt\5.4\mingw491_32\bin, its execute fine.
                  If I copy dlls to .exe folder, its crashes.

                  That means your .exe grabbed the correct DLLs when you copied it into C:\Qt\5.4\mingw491_32\bin, but grabbed the wrong DLLs when you copied the DLLs into the .exe folder.

                  Follow the steps at http://wiki.qt.io/Deploy_an_Application_on_Windows closely.

                  If that still doesn't work,

                  1. Run your .exe from C:\Qt\5.4\mingw491_32\bin
                  2. While it's running, use the ListDLLs tool to see what DLLs it has loaded
                    • The command would be something like ListDLLs.exe TP-CALC2 > log.txt
                  3. Quit your .exe
                  4. Run your .exe from the exe folder
                  5. When the error message appears, run ListDLLs again.
                  6. Compare your DLL list and see what's different.
                  V Offline
                  V Offline
                  vinicius
                  wrote on last edited by
                  #8

                  Thank you all.
                  I did like http://wiki.qt.io/Deploy_an_Application_on_Windows says: Copy all files and delete the unnecessary.
                  I don't know what I was doing wrong, but now it worked.

                  Sorry my english :p

                  M 1 Reply Last reply
                  0
                  • V vinicius

                    Thank you all.
                    I did like http://wiki.qt.io/Deploy_an_Application_on_Windows says: Copy all files and delete the unnecessary.
                    I don't know what I was doing wrong, but now it worked.

                    M Offline
                    M Offline
                    Mark Ma
                    wrote on last edited by
                    #9

                    @vinicius Hi, I solved this by using the cmd
                    "D:\Qt\Qt5.8.0\5.8\mingw53_32\bin\windeployqt.exe test1.exe"
                    it automatically copy all the dependent dlls to the folder. some of the dlls are not indicated by the error messages. But it just works

                    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