-no-libjpeg ........ Do not compile the plugin for JPEG support.
-qt-libjpeg ........ Use the libjpeg bundled with Qt.
-system-libjpeg .... Use libjpeg from the operating system. See http://www.ijg.org
-no-libjpeg ........ Do not compile the plugin for JPEG support.
-qt-libjpeg ........ Use the libjpeg bundled with Qt.
-system-libjpeg .... Use libjpeg from the operating system. See http://www.ijg.org
ah...that is "libjpeg"...Originally Posted by wysota
I have already tried that "configure -static -release -qt-libjpeg" and built, but the program will not work. (identical program with shared works)
Check if Qt builds a static libjpeg library. If not, this could be a bug and should be reported to TT.
Where would I check to see if it did build a "libjpeg" library?Originally Posted by wysota
Sorry for such newbee-ish questions....![]()
Probably somewhere around src/3rdparty/libjpeg directory relative to unpacked Qt source![]()
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.![]()
Bookmarks