Results 1 to 6 of 6

Thread: Can't execute a Stand Alone Qt Application after compiling

  1. #1
    Join Date
    Jun 2008
    Posts
    83
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Can't execute a Stand Alone Qt Application after compiling

    Hi:

    My problem is this I made a Qt Program and got the exe in Windows in the release folder:

    So I copy mingw10.dll QtCore4.dll and QtGui4.dll to that folder in order to execute my app in a standalone fashion. Keep in mind that when I compiled using QtCreator with the release settings the application started no problem. But now all I get is this cryptic message when I try to start my app:

    Could not find point of entry of the procedure_Z11qt_assert_xPKcS0_S0_I in QtCore4.dll. The message is not exactly like this because I translated it from spanish but that is what it says.

    However If I copy the Debug dlls to the debug compiled version of my app and then I execute it that one starts fine. However debug libs are huge.

    Does anyone have any ideas of what this problem could be?

    Thanks for any help.

  2. #2
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Can't execute a Stand Alone Qt Application after compiling

    what version of Qt do you have? Qt SDK? Be sure you copy from QtSDKdir/qt/bin not only bin. Use Dependency Walker to find all dependencies
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

  3. #3
    Join Date
    Jun 2008
    Posts
    83
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Can't execute a Stand Alone Qt Application after compiling

    I'm using Qt 4.5 and I took the files from the Qt version installed when I installed QtCreator

    They were found in the path: C:\Qt\2009.03\bin.

    I'm not sure what you mean by QtSDK. And I don't know what dependency walker is. But I'll try to find out.

  4. #4
    Join Date
    Jun 2008
    Posts
    83
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Can't execute a Stand Alone Qt Application after compiling

    So I used dependency walker and the first thing it told me was that my program needed these two files:

    dwmapi.dll y mvscr90.dll which I downloaded and put in the release folder too.

    Now I get this error:
    Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module.
    Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.

    Any ideas?

  5. #5
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Can't execute a Stand Alone Qt Application after compiling

    They were found in the path: C:\Qt\2009.03\bin.
    what I mean is that you should not get dlls from that directory.
    Take from:
    C:\Qt\2009.03\qt\bin
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

  6. The following user says thank you to faldzip for this useful post:

    mattc (8th October 2009)

  7. #6
    Join Date
    Jun 2008
    Posts
    83
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Can't execute a Stand Alone Qt Application after compiling

    Yes!

    Thank you. That solved my problem.

Similar Threads

  1. Compiling static application
    By Benjamin in forum Qt for Embedded and Mobile
    Replies: 9
    Last Post: 23rd December 2008, 12:45
  2. Replies: 1
    Last Post: 16th September 2008, 18:29
  3. Help compiling Qt4 Application
    By drake1983 in forum Newbie
    Replies: 4
    Last Post: 15th November 2007, 15:32
  4. Replies: 7
    Last Post: 28th June 2007, 18:18
  5. Replies: 1
    Last Post: 15th February 2006, 23:17

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.