Results 1 to 4 of 4

Thread: build qt program in release version run carsh

  1. #1
    Join Date
    Dec 2011
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Question build qt program in release version run carsh

    I write a Qt program and build a release version "myProgram.exe" to run on other PC. The release version can run on my pc, but can't run on other pc. Other pc didn't install Qt enviroment, but I copy the QtCore4.dll and QtGui4.dll to the same directory with "myProgram.exe". When I run "myProgram.exe", the program will crash, the error information is "APPCRASH, ..., error module: QtCore4.dll, ..., error code: c0000005".
    I write and build "myProgram.exe" using vs2010
    Thanks a lot.

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

    Default Re: build qt program in release version run carsh

    you should use an installer - maybe those dlls are not the only required dependencies?

    Otherwise, I suggest you make a debug version and try that on your friends machine.
    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
    Sep 2011
    Location
    Manchester
    Posts
    538
    Thanks
    3
    Thanked 106 Times in 103 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: build qt program in release version run carsh

    Use Dependency Walker on the target box to see what's missing.

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: build qt program in release version run carsh

    Error 0xC0000005, AKA Access violation, is typically the result of using a null or invalid pointer in your code.

    Error 0xC000007B (decimal) -1073741701, STATUS_INVALID_IMAGE_FORMAT) is typically the result of missing or corrupt DLLs.

Similar Threads

  1. Replies: 2
    Last Post: 3rd October 2011, 23:04
  2. Replies: 5
    Last Post: 26th August 2011, 19:08
  3. Replies: 0
    Last Post: 11th August 2009, 09:38
  4. Replies: 5
    Last Post: 5th October 2008, 05:12
  5. Problem with Release version
    By jlbrd in forum Installation and Deployment
    Replies: 7
    Last Post: 30th March 2006, 19:45

Tags for this Thread

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.