src\3rdparty\libjpeg exists.......so.......?
src\3rdparty\libjpeg exists.......so.......?
So nothingcheck if Qt compiles a static version of the library when you pass -static and -qt-libjpeg to configure and start compilation. If you have problems, use Google. After all, this is Qt devoted forum not a "general compilation issues" one.
Qt builds just fine with configure -release -static -qt-libjpeg
Only thing is, I cannot get a program to work that manipulates, opens, saves, etc. a jpg....
It compiles fine, it just gives an error when trying to open a jpg.
The exact same code works when using Qt as shared, though....
It's no big deal, I am just testing the waters against MFC (my "limited" background)
I know Qt builds fine. But after that build is completed, check if a static version of libjpeg was built (it should be in the directory already mentioned) -- it'll probably be called libjpeg.a or jpeg.a or something like that... I don't know Windows naming schemes for static libraries (but it surely won't have a "dll" extension).
Thanks....
There is not any file there with that name....
However in \plugins\imageformats there is a "libqjpeg.a"....
Perhaps this is what I need? If so, how to use?
Again, I thank you for your perserverance....![]()
Yes, this might be what you need (it's a static version of the image plugin). You need to link your application with it. Consult QMake reference for details.
In the .pro file I added:
win32:LIBS += path\to\thelibrary
but that still did not work......
Any idea if I am on the right track here.![]()
Either pass the path of the .a file or copy the .a file to your working folder and
add the following lines to your .pro file.
LIBS += -L . -lqjpeg
Along with the Qt Assistant notes for compling static plugins into your app, this should help u accomplish your task.
Bookmarks