Results 1 to 7 of 7

Thread: When I execute the project from Qt Creator the program unexpectedly finished

  1. #1
    Join Date
    May 2012
    Posts
    99
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Question When I execute the project from Qt Creator the program unexpectedly finished

    Hi all,

    I have developed a project that use a dynamic library. I need put the dll in the executable folder to execute the project. I have detected an issue, when I execute the project from Qt Creator, the program unexpectedly finished. I have copied the libraries in the debug and release folder but the problem persists.
    If I execute the exe program manually from release or debug folders, the program runs properly.

    What's wrong?

    Regards.

  2. #2
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: When I execute the project from Qt Creator the program unexpectedly finished

    Probably missing dependency.

    get depends/dependency walker and have a look
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  3. #3
    Join Date
    May 2012
    Posts
    99
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: When I execute the project from Qt Creator the program unexpectedly finished

    I know the dependencies, are two dll. The problem is that if I execute the application from Qt Creator the program does not run and I get the error message: "the program unexpectedly finished". I have copied the two dll into the executable path.

  4. #4
    Join Date
    May 2012
    Posts
    99
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Question Re: When I execute the project from Qt Creator the program unexpectedly finished

    Why in one case (execution manually) the execution works properly and in another case (from Qt Creator) the execution fails?

    What is the root folder that Qt Creator uses to execute a program?

  5. #5
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: When I execute the project from Qt Creator the program unexpectedly finished

    since it crashes when run from creater, I strongly suggest you run it in debug and use the tools you have available to you...
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  6. #6
    Join Date
    May 2012
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: When I execute the project from Qt Creator the program unexpectedly finished

    have 100% the same troubles

  7. #7
    Join Date
    May 2012
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: When I execute the project from Qt Creator the program unexpectedly finished

    For me problem solved.
    1. check if you have in PATH only Qt MinGw. If you find others remove it.
    2. Build lib using Qt MinGw, for me it was opencv - http://www.laganiere.name/opencvCook...hap1s1_2.shtml

Similar Threads

  1. Finished my project, how do I distribute it?
    By danoc93 in forum Installation and Deployment
    Replies: 6
    Last Post: 16th May 2012, 21:20
  2. Replies: 4
    Last Post: 5th December 2011, 01:20
  3. Replies: 2
    Last Post: 10th November 2011, 07:58
  4. Program quits unexpectedly
    By MCFormax in forum Newbie
    Replies: 2
    Last Post: 9th November 2011, 02:31
  5. Program has unexpectedly finished
    By Maluko_Da_Tola in forum Newbie
    Replies: 5
    Last Post: 1st December 2010, 09:54

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.