Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

[Qt 4.8.5] Jpeg/Gif Issue/problem



  • I am writing because I am trying to find the solution to a problem. I need to enable the display of gif and jpg images using 4.8.5 Qt version.
    I found many references to different links and information around the net but none of them led me to the solution. So I ask you to list the steps to follow to solve the problem or to show me the reference to a web page.

    At the time I created the "plugins/imageformats" folder and tried to link the library statically following documentation. At the end of procedure I found this issue: undefined reference to qt_plugin_instance_qjpeg()

    Thx in advance


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Did you build Qt statically ? What OS are you running ?



  • Hi,
    yes I build Qt with '-static' parameter rather that using '-shared'. Now I'm using Ubuntu 10.04 LTS but in the future I will cross compile for ARM.


  • Lifetime Qt Champion

    Did you also add to your code/pro file the bits necessary to handle static plugins ?



  • Yes, I used git clone setup-patch . But some how it did't work.? Can you suggest me some other tool for getting the layout of the qtwebkit..?


  • Lifetime Qt Champion

    git clone setup-patch ?

    There's no other tool to clone Qt's code. You already have webkit in Qt 4 sources.


Log in to reply