Page 2 of 2 FirstFirst 12
Results 21 to 24 of 24

Thread: imageformats plugins

  1. #21
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: imageformats plugins

    I told you to pay attention to configure output...
    JPEG support ........ <foo>
    See "configure -help" for more details.
    J-P Nurmi

  2. #22
    Join Date
    Nov 2007
    Posts
    47
    Thanks
    34
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: imageformats plugins

    Wysota,

    I followed the links that JPN sent me.

    First I recompiled my Qt4.3.2 for mingw as decribed here:
    http://wiki.qtcentre.org/index.php?t..._Qt_on_Windows

    Then I made all the changes in main.cpp and myproject.pro according to:
    http://doc.trolltech.com/4.3/plugins-howto.html

    In my plugins folder there are only *.a and *.dll files. There are 5 new *.a files that got created as a result of my reconfiguration of Qt according to the first link (see above). What are the extentions of static plugins and what folder should I find them in?

    No Qt*.a or Qt*.dll files in bin folder were modified or created during reconfiguration but when I compile my program now the exe is huge and looks like it is incorporating some of the plugins just probably not the imageformats plugins. When I try to copile my program in the static mode without using imageformats plugins (by not making the above-described change in main.cpp and myproject.pro) the program compiles fine and works too. It just won't do things that require imageformats plugins (like open jpg images). I think I can get most plugins incorporated but the problem is with imageformats plugins.

    You guys have been great helping me and getting me to the point where things almost work. Hopefully the last strecth is going to make things fully work.
    Thanks.

  3. #23
    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: imageformats plugins

    Delete everything related to Qt, download Qt sources, configure in static mode and compile. Then there will be no worry that any old data remains anywhere.

  4. #24
    Join Date
    Nov 2007
    Posts
    47
    Thanks
    34
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: imageformats plugins

    Hi Wysota,

    I now rebuilt my Qt4.3.3 froum source by doing:
    Qt Code:
    1. prompt> configure -static -release -no-exceptions
    2. prompt>make sub-src
    To copy to clipboard, switch view to plain text mode 
    I then put the following in my main.cpp
    Qt Code:
    1. #include <QtPlugin>
    2. Q_IMPORT_PLUGIN(qjpeg)
    3. Q_IMPORT_PLUGIN(qgif)
    4. Q_IMPORT_PLUGIN(qmng)
    To copy to clipboard, switch view to plain text mode 
    and the following in myproject.pro
    Qt Code:
    1. TEMPLATE = app
    2. TARGET =
    3. DEPENDPATH += .
    4. INCLUDEPATH += .
    5. CONFIG += staticlib
    6. QTPLUGIN += qjpg \
    7. qgif \
    8. qmng
    To copy to clipboard, switch view to plain text mode 
    Still the compilation is not happening. I get "cannot find -lqjpg".
    When I remove what I put in main.cpp (see above) and I remove "QTPLUGIN += qjpg \ qgif \ qmng" then the program compiles fine and works, too but cannot open image files other than BMP.
    So I think that I either don't have the proper plugins or I declare them wrong.
    My question is: what does a static plugin file look like? What name, what extention, where does it reside? Is it possible that I did not build static plugins when I compiled Qt from source as described above?

Similar Threads

  1. Qt Plugins Error
    By nathanpackard in forum Qt Programming
    Replies: 1
    Last Post: 18th August 2007, 00:19
  2. Nightmares with plugins
    By KShots in forum Qt Programming
    Replies: 6
    Last Post: 8th February 2007, 17:46
  3. Qt plugins - how to do a libtool-style autoload
    By KShots in forum Qt Programming
    Replies: 2
    Last Post: 7th February 2007, 13:40
  4. Arthur Plugins demos and designer
    By antonio.r.tome in forum Installation and Deployment
    Replies: 4
    Last Post: 21st March 2006, 15:01
  5. Plugins as small application
    By blackliteon in forum Qt Programming
    Replies: 4
    Last Post: 12th January 2006, 10:39

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.