Results 1 to 13 of 13

Thread: Program runs from Creator, but not as a standalone?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2009
    Location
    United States
    Posts
    45
    Thanks
    20
    Qt products
    Qt4
    Platforms
    Windows

    Default Program runs from Creator, but not as a standalone?

    My program runs fine from Qt Creator, but I cannot run it as a standalone program.

    I was receiving an error about .dll's not being found, so I copied libgcc_s_dw2-1.dll and mingwm10.dll to my .exe's folder, and now I'm receiving this error:

    The application was unable to start correctly (0xc000007b). Click OK to close the application
    What do I need to do to be able to run the .exe outside of Qt?
    Last edited by N3wb; 30th September 2012 at 18:26.

  2. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,540
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Progaram runs from Creator, but not as a standalone?

    RTFM (read this fine manual) : deploying Qt applications

  3. #3
    Join Date
    Aug 2009
    Location
    United States
    Posts
    45
    Thanks
    20
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Progaram runs from Creator, but not as a standalone?

    Hi,

    Thanks for your help.

    I'm still really confused what I need to do. I tried copying all the dll's from \Qt\Desktop\Qt\4.8.1\mingw\bin to my .exe's folder, but it still doesn't run.
    Last edited by N3wb; 30th September 2012 at 17:50.

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

    Default Re: Progaram runs from Creator, but not as a standalone?

    did you read it?
    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.

  5. #5
    Join Date
    Oct 2012
    Posts
    1
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Windows

    Default Re: Progaram runs from Creator, but not as a standalone?

    Hi

    You reference .dll's so I assume you are using windows.
    So take a look here.
    http://support.microsoft.com/kb/198038/en-us

    Get the depends.exe application "its free" and do a dependency check
    to see which .dll's your application is using and needs and only copy those.

    Also check how you are building your application. Are you copying over
    the release build and not the debug build?

Similar Threads

  1. Write a QT application that runs on Web ?
    By reinki0013 in forum Qt Programming
    Replies: 9
    Last Post: 16th March 2016, 02:21
  2. problem with application after it runs on start up
    By budda in forum Qt Programming
    Replies: 5
    Last Post: 8th October 2011, 01:38
  3. No Response when Algorithm runs...
    By revellix in forum Qt Programming
    Replies: 2
    Last Post: 13th August 2011, 17:24
  4. QThread issues. Crash after 2058 runs.
    By zverj in forum Qt Programming
    Replies: 4
    Last Post: 15th October 2009, 10:13
  5. QTimer problem ... it runs but never triggs
    By yellowmat in forum Newbie
    Replies: 4
    Last Post: 4th July 2006, 12: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
  •  
Qt is a trademark of The Qt Company.