Results 1 to 3 of 3

Thread: Simple Qt App Distribution - NOT!

  1. #1
    Join Date
    Feb 2010
    Posts
    8
    Thanks
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Simple Qt App Distribution - NOT!

    I would like a simple way to distribute a QT Windows application to a few friends for evaluation. I was hoping to put the .EXE file in a directory with the necessary .DLLs and plugins and then launch the application from the folder.

    I can construct such a folder on my development computer and it all works. I copy the folder to another computer and it crashes before I even get the splash screen! I get the option to start the debugger (Visual Studio), so I do and get told:

    QTGUI4.DLL 0xC0000005 Access Violation

    I check the stack and see that its at: 0x651B591A within QTGUI4.DLL.

    I go to a different computer and get the same result.

    I have been fighting with this all day trying different tricks to make sure the plug-ins and DLLs are all there; even explicitly calling QCoreApplication::addLibraryPath( ). No Luck.

    What am I missing?

    Respectfully,
    John M. Cooney

  2. #2
    Join Date
    Feb 2010
    Posts
    8
    Thanks
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: Simple Qt App Distribution - NOT!

    Hello All,

    I have confirmed that the problem is that neither .JPG and .GIF files are not getting loaded on the other computer. This is the start of a cascading sequence of events that ends up in a Segmentation Fault. I will clean up the code to be more graceful about the failure to load an image, but still don't understand why the image does not load in the first place. I confirmed that the file is there with an explicit QFile.exists() call.

    Any suggestions on how to figure out why
    pixmap = new QPixmap( filePath ) ;
    just fails?

  3. #3
    Join Date
    Feb 2010
    Posts
    8
    Thanks
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: Simple Qt App Distribution - NOT!

    All fixed - a combination of issues including not getting the plug-ins in the correct directory.

Similar Threads

  1. Need help determining proper Qt distribution
    By bizmopeen in forum Newbie
    Replies: 2
    Last Post: 22nd December 2009, 20:47
  2. Compilation and distribution
    By cpearson1990 in forum Installation and Deployment
    Replies: 6
    Last Post: 16th July 2009, 15:09
  3. Which Linux distribution is best for building compatible apps?
    By Oxidative in forum Installation and Deployment
    Replies: 8
    Last Post: 9th July 2009, 16:13
  4. prepare program for distribution
    By impeteperry in forum Qt Programming
    Replies: 1
    Last Post: 26th May 2009, 14:04
  5. SQL Drivers Distribution
    By kandalf in forum Installation and Deployment
    Replies: 1
    Last Post: 12th January 2009, 09: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
  •  
Qt is a trademark of The Qt Company.