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. QtCore4.dll Error When Starting Release App From Windows - Debug OK, Starting Release or Debug App from Command Prompt OK
Forum Updated to NodeBB v4.3 + New Features

QtCore4.dll Error When Starting Release App From Windows - Debug OK, Starting Release or Debug App from Command Prompt OK

Scheduled Pinned Locked Moved General and Desktop
5 Posts 4 Posters 23.7k 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
    SolarQuark
    wrote on 7 Feb 2011, 23:25 last edited by
    #1

    Hi All.

    Windows XP SP3
    {Mingw - do not know how to establish version of Mingw
    Qt 2010.05
    QtCreator 2.0.1 } These three installed together from a single download

    Qwt 6.0.0-rc5

    Very new at this. This is the first of two different queries that I will post separately. Here goes ...
    Am an old, unreformed and unrepentent C programmer that has not programmed in many years.
    Am aware of C++ concepts such as classes, inheritance, polymorphism, overloading but not yet comfortable with these concepts.

    When I create and build an app (just learning stuff, nothing important) from within Qt Creator it will run OK when started from Qt Creator or from a command prompt (Haven't got the hang of Qt Creator yet and haven't figured out how to do a release build in Qt Creator yet). If built as either 'debug' or 'release' from a command prompt it will run OK from the command prompt. If built as 'debug' from the command prompt it will run OK if started from Windows (Explorer). However if built as 'release' from the command prompt and run from Windows it will produce the following error
    'The procedure entry point _Z5qFreePv could not be located in the dynamic link library QtCore4.dll.'

    There are two, different QtCore4.dll files in the Qt install. Both have version 4.7.0.0 but they differ in size.
    QtCore4.dll version 4.7.0.0 2.18MB located in c:\qt\2010.05\bin
    QtCore4.dll version 4.7.0.0 2.41MB located in c:\qt2010.05\qt\bin

    I can copy either into the app's directory but the error remains when I try to start the app from Windows.
    With the smaller of the two dlls in the app directory, starting the app from the command prompt results in the same error.
    With the larger there is no error when starting from the command prompt.

    To summarize...
    Debug builds - all OK, no matter if started from Windows, command prompt or from within Qt Creator
    Release build - will start OK from command prompt but not from Windows

    I am sure that I must have installed something not quite right or am doing something silly now.

    Any ideas?

    Take care.

    Mike

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      Zlatomir
      wrote on 7 Feb 2011, 23:37 last edited by
      #2

      The dll's from this folder should be used (copy in the same folder as application): c:\qt2010.05\ qt \bin the other ones are used by Creator.

      When you say command prompt you mean Windows cmd or the one that set the Qt environment?
      Also if you double click from explorer or use Windows cmd (without Qt environment) you need two more dlls for MingW run-time ( mingwm10.dll and libgcc_s_dw2-1.dll) from C:\Qt\2010.05\mingw\bin

      And make sure you copy the dll for each Qt module you linked with your application (QtCore4.dll, QtGui4.dll, etc)

      https://forum.qt.io/category/41/romanian

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SolarQuark
        wrote on 8 Feb 2011, 00:48 last edited by
        #3

        Thank you Zlatomir.

        Problem solved.

        1. You are quite correct to question my use of the term 'command prompt'. I was using the 'Qt Command Prompt', not Window's command prompt. Silly me!
        2. The dlls I need for this app are
          QtCore4.dll (the one from the ..\2010.05\qt\bin folder as you suggested)
          QtGui.dll
          QtSvg4.dll - this probably included by Qwt (am using some Qwt Dials).

        Many thanks for you help, Zlatomir.

        Take care.

        Mike

        1 Reply Last reply
        0
        • L Offline
          L Offline
          linus
          wrote on 6 Nov 2011, 09:51 last edited by
          #4

          if you have download the Qtcreator and QtDesktop setup file.then you would add these files:

          libgcc_s_dw2.dll
          mingwm10.dll
          qtcored4.dll
          qtguid4.dll

          from this location:
          QtSDK\Desktop\Qt\4.7.4\mingw\bin

          1 Reply Last reply
          0
          • R Offline
            R Offline
            rrrmmm
            wrote on 4 Dec 2011, 12:18 last edited by
            #5

            Check the following article... Hope it helps to resolve your "dll missing":http://www.articlewritingclicks.com/errors/dll4.php error.. http://www.windowserrorhelps.com/qtcore4-dll-error-how-to-fix-missing-qtcore4-dll-problem-in-windows-7/

            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