Results 1 to 9 of 9

Thread: including qjpeg4.dll to view images

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2010
    Posts
    24
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default including qjpeg4.dll to view images

    hello,
    i just built an application, used the release option, and added the necessary dll files to run it on other systems.

    all works fine, except when it comes to displaying .jpeg files on the application.

    i found that, i need to make a dir imageformats and the include the qjpeg4.dll in this folder.

    even then, no jpeg images are being displayed.

    where am i going wrong?

    thankx
    Aashish

  2. #2
    Join Date
    Jul 2010
    Posts
    24
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: including qjpeg4.dll to view images

    The jpeg images are being displayed when i run it on my system where Qt is installed, but when i run it on other systems , it is not being displayed

  3. #3
    Join Date
    Jun 2010
    Location
    Salatiga, Indonesia
    Posts
    160
    Thanks
    11
    Thanked 32 Times in 29 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    1

    Default Re: including qjpeg4.dll to view images

    Maybe, there are missing dependencies. You can check qjpeg4.dll dependencies using Dependency Walker if you want.

  4. #4
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: including qjpeg4.dll to view images

    i found that, i need to make a dir imageformats and the include the qjpeg4.dll in this folder.
    Where did you make that imageformats folder ?

    You can find it in Qt dirs, and you simply need to copy in the same directory as your app.
    C:/yourProject/project.exe
    C:/yourProject/imageformats/

  5. #5
    Join Date
    Jul 2010
    Posts
    24
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: including qjpeg4.dll to view images

    I have used dependency walker, and it shows nothing missing.

    Yes thats what i did, copied the dll file from Qt directories and pasted it in my project release folder under imageformats.

    still does not work.

  6. #6
    Join Date
    Jun 2010
    Location
    Salatiga, Indonesia
    Posts
    160
    Thanks
    11
    Thanked 32 Times in 29 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    1

    Default Re: including qjpeg4.dll to view images

    if you put all image plugin dlls (the release version) in imageformats directory, does it work?

  7. #7
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: including qjpeg4.dll to view images

    Can u tell the directory path of how you placed ?

    also do you have the necessary qjpeg4.dll ?? May be you dont have release version of the jpeg and only debug one..qjpegd4.dll

  8. #8
    Join Date
    Jul 2010
    Posts
    24
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: including qjpeg4.dll to view images

    hey,
    Yes i just checked ahain, i do have qjpeg4.dll

    in my release folder, i have the .exe file, object file and other dlls like qtcore4.dll, in this folder i created another folder called imageformats and placed qjpeg4.dll in it.

  9. #9
    Join Date
    Jul 2010
    Posts
    24
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: including qjpeg4.dll to view images

    My mistake!
    I was include the qjpeg4.dll from the bin directory rather than qt/plugins directory!

Similar Threads

  1. Unable to view images in an application created for Windows ce
    By mistertwister in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 4th March 2010, 19:23
  2. Replies: 4
    Last Post: 27th July 2009, 15:45
  3. how to browse images in thumbnail view?
    By zl2k in forum Qt Programming
    Replies: 12
    Last Post: 23rd April 2009, 02:20
  4. How to view images using QT
    By Pitso in forum Newbie
    Replies: 1
    Last Post: 16th April 2007, 14:00
  5. including
    By mickey in forum General Programming
    Replies: 2
    Last Post: 26th July 2006, 21:08

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.