Results 1 to 3 of 3

Thread: problems with deploying a Qt application

  1. #1
    Join Date
    Mar 2006
    Posts
    10
    Thanks
    1
    Thanked 2 Times in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default problems with deploying a Qt application

    Hello

    I deployed my Qt 4.0 appliction using the shared libraries method. I created a release directory and put there the appropriate executable, libQtGui.so.4, libQtGui.so.4, libQtNetwork.so.4. I also made a running script as it is suggested here:

    http://doc.trolltech.com/4.1/deploym...cation-package

    I have 4 subdirectories (pictures, savings, settings, text) in my application, I copied them into the release dir as well. Now the intersting thig that happens, is that, I can start my program, it runs well in every aspects, except that it does not shows any picture. Pictures are in the pictures directory but for some reason the program does not find them, or at least loadPixmap(filename) returns a null pixmap where filename is something like this "pictures/somepicture.jpg".
    The program definitely finds every other file in the other subdirectories.
    All this happens only if I try to run my program on some other Linux where there is no Qt 4.0, when I run it on my own Linux, where I developed the program, it finds the pictures right.
    Does anyone have some idea why it happens?

    Thanks for your help

    Nyilasy Peter

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: problems with deploying a Qt application

    Maybe you need a plugin for jpeg image support? It's called libqjpeg.so and should be put into imageformats subdirectory.

  3. The following user says thank you to wysota for this useful post:

    nongentesimus (7th June 2006)

  4. #3
    Join Date
    Mar 2006
    Posts
    10
    Thanks
    1
    Thanked 2 Times in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: problems with deploying a Qt application

    Thanks a lot, that was the problem

    Quote Originally Posted by wysota
    Maybe you need a plugin for jpeg image support? It's called libqjpeg.so and should be put into imageformats subdirectory.

Similar Threads

  1. Replies: 3
    Last Post: 8th December 2006, 18:51
  2. Canvas problems
    By Tommytrojan in forum Qt Programming
    Replies: 22
    Last Post: 9th May 2006, 16:46
  3. Replies: 5
    Last Post: 24th April 2006, 15:42
  4. Replies: 3
    Last Post: 31st March 2006, 18:38
  5. Replies: 0
    Last Post: 21st February 2006, 16:30

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.