Results 1 to 5 of 5

Thread: final version can't open jpeg

  1. #1
    Join Date
    Aug 2009
    Location
    Kingdom of Bavaria
    Posts
    2
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default final version can't open jpeg

    Hello,

    i try to build a windows application that reads jpegs on pre built windows version of qt 4.5 (2009.03) with qt creator.

    on the development system everything works fine, but as soon as i try the application on a windows with no qt installed, reading jpeg files failes.

    i read the help about deployment on windows and tried the following:

    copy imageformats from qt to applications dir 'imageformats'
    copy imageformats from qt to applications dir 'plugins/imageformats'

    both with or without adding:

    a.addLibraryPath(a.applicationDirPath())

    to main.cpp

    still does not open jpeg images on the target system, what am i missing?
    Last edited by 93interactive; 4th August 2009 at 15:48.

  2. #2
    Join Date
    Jul 2009
    Location
    Enschede, Netherlands
    Posts
    462
    Thanked 69 Times in 67 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: final version can't open jpeg

    Did you include the libjpeg? It should be in $(QTDIR)/plugins.

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

    93interactive (6th August 2009)

  4. #3
    Join Date
    Aug 2009
    Location
    Kingdom of Bavaria
    Posts
    2
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: final version can't open jpeg

    no i didn't

    there are two imageformat directories in the installation, one under bin/ - which i used - and one under qt/plugins/ - which has libjpeg in

    thanx!

  5. #4
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: final version can't open jpeg

    you must be using the qt sdk? rite .. if so then use the qt/plugins... one/

  6. #5
    Join Date
    Nov 2008
    Posts
    142
    Thanks
    3
    Thanked 20 Times in 20 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: final version can't open jpeg

    Quote Originally Posted by 93interactive View Post
    there are two imageformat directories in the installation, one under bin/ - which i used - and one under qt/plugins/ - which has libjpeg in
    MrDeath already said it, you must use the one in qt/plugins. To clarify things for the future: what is in bin is for use by Qt Creator itself, the actual Qt your programs are built against is located in the qt subdirectory. So, when you distribute your binary and want to add the libraries required, take the ones from qt!

Similar Threads

  1. Replies: 1
    Last Post: 8th February 2009, 15:08
  2. Designer doesn't load wwWidgets plugin
    By reimer in forum Installation and Deployment
    Replies: 21
    Last Post: 7th February 2009, 03:23
  3. Distributing QT application for Mac OS
    By mb0 in forum Qt Programming
    Replies: 1
    Last Post: 31st May 2007, 18:59
  4. Replies: 15
    Last Post: 21st April 2007, 17:46

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.