Results 1 to 11 of 11

Thread: Could not start Application ....missing qtcored4.dll......

  1. #1
    Join Date
    Jul 2008
    Posts
    66
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default Could not start Application ....missing qtcored4.dll......

    Hi,

    on my Windows XP Pro system I installed QT 4.4.0 + VS 2005 (incl SP1).

    I configured QT with this:
    configure -platform win32-msvc2005 –no-qt3support
    and compiled it with
    nmake
    Environment Variables which were added/edited by me:
    QTDIR = C:\QT4
    LIB = QTDIR\lib;
    INCLUDE = QTDIR\include;
    Path = QTDIR\bin;

    Settings in VS 2005:

    Tools-> Options -> Project and Project Solutions -> VC++-Folders

    Executable Files:
    $(QTDIR)\bin

    Include files:
    $(QTDIR)\include
    $(QTDIR)\include\Qt

    library files:
    $(QTDIR)\lib


    My Problem:

    When I compile an example from the QT folder, it proceeds without problems.
    No Errors, no warnings.
    When I start the compiled application I get an error.
    It can't find the QTCored4.dll .
    It doesen't matter whether I compile in Debug or Release mode. I get these errors.


    What could be the problem?

    The missing files (and others) are located in my C:\QT4\lib !!!
    QtCored4.dll
    QtCore4.dll
    QtCored4.lib
    QtCore4.lib



  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Could not start Application ....missing qtcored4.dll......

    Restart Visual Studio after modifying environment variables.
    J-P Nurmi

  3. #3
    Join Date
    Jul 2008
    Posts
    66
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Could not start Application ....missing qtcored4.dll......

    sorry, no change.
    I get the same error.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Could not start Application ....missing qtcored4.dll......

    How do you start that application?

  5. #5
    Join Date
    Jul 2008
    Posts
    66
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Could not start Application ....missing qtcored4.dll......

    Ok I found my mistake.
    The mistake was in the environment variables.
    I forgot to use % around some keys.

  6. #6
    Join Date
    May 2008
    Posts
    15
    Thanks
    1

    Default Re: Could not start Application ....missing qtcored4.dll......

    Heya I fixed this problem in the same way, but what should I do if i start the program on another pc without having QT installed?

  7. #7
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Could not start Application ....missing qtcored4.dll......

    You will need to ship the required qt dlls along with your binary.

  8. #8
    Join Date
    May 2008
    Posts
    15
    Thanks
    1

    Default Re: Could not start Application ....missing qtcored4.dll......

    is there an another possible way to do this? Without shipping Dlls to your .exe?

    Im using the licscensed version of QT.

    These are the following steps i have done so far:

    Installed VC2005+SP1
    Installed qt-win-commercial-4.4.0-vs2005.exe
    Installed qt-vsintegration-1.4.0.exe

    Now I was able to create QT projects within vc2005 project wizard.

    I created a gui application. compiled in release mode.

    Now how do I deploy this application to another pc but without providing qtcore4.dll and qtgui4.dll?
    Last edited by T1c4L; 16th July 2008 at 13:58.

  9. #9
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Could not start Application ....missing qtcored4.dll......

    Quote Originally Posted by T1c4L View Post
    Now how do I deploy this application to another pc but without providing qtcore4.dll and qtgui4.dll?
    You will have to compile Qt as a static library.

    http://wiki.qtcentre.org/index.php?t...c_applications

  10. #10
    Join Date
    Jul 2011
    Posts
    1
    Qt products
    Qt4

    Default Re: Could not start Application ....missing qtcored4.dll......

    Quote Originally Posted by donglebob View Post
    Ok I found my mistake.
    The mistake was in the environment variables.
    I forgot to use % around some keys.
    Hi
    I have the same problem, and I didn't understand your answer, Can you make it clear please???
    Thank you

  11. #11
    Join Date
    Nov 2011
    Posts
    1
    Qt products
    Qt3

    Default Re: Could not start Application ....missing qtcored4.dll......

    Try a system restore, if that does not work backup your saved games folder, reinstall the game and launch it. If all goes well you can copy your saved game data back into the saved game data folder on the new install and pick up right where you left off.

Similar Threads

  1. PyQT application start
    By mejustme in forum Newbie
    Replies: 2
    Last Post: 6th June 2008, 18:15
  2. Start Qt application as Windows Service
    By ^NyAw^ in forum Qt Programming
    Replies: 12
    Last Post: 10th May 2008, 17:23
  3. Replies: 10
    Last Post: 10th March 2008, 12:28
  4. start application: Why this error and how to solve it?
    By Colx007 in forum Qt Programming
    Replies: 1
    Last Post: 21st January 2008, 15:22
  5. Replies: 2
    Last Post: 20th November 2007, 20:00

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.