I told you to pay attention to configure output...
See "configure -help" for more details.JPEG support ........ <foo>
I told you to pay attention to configure output...
See "configure -help" for more details.JPEG support ........ <foo>
J-P Nurmi
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.
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.
Hi Wysota,
I now rebuilt my Qt4.3.3 froum source by doing:
I then put the following in my main.cppQt Code:
prompt> configure -static -release -no-exceptions prompt>make sub-srcTo copy to clipboard, switch view to plain text mode
and the following in myproject.proQt Code:
#include <QtPlugin> Q_IMPORT_PLUGIN(qjpeg) Q_IMPORT_PLUGIN(qgif) Q_IMPORT_PLUGIN(qmng)To copy to clipboard, switch view to plain text mode
Still the compilation is not happening. I get "cannot find -lqjpg".Qt Code:
TEMPLATE = app TARGET = DEPENDPATH += . INCLUDEPATH += . CONFIG += staticlib QTPLUGIN += qjpg \ qgif \ qmngTo copy to clipboard, switch view to plain text mode
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?
Bookmarks