Yes. You have to compile jpg support into the library itself (not as a plugin).
Yes. You have to compile jpg support into the library itself (not as a plugin).
Sorry for the newbie questions, but, how do i go about doing this?Originally Posted by wysota
Depends on which Qt version you use. For Qt4 it should be enough to compile Qt in static mode (check FAQ for details) and to use libjpeg which comes with Qt (or to have a static libjpeg installed in the system). For Qt3 (AFAIR) there was some switch to compile jpeg support directly into Qt. Run configure with "-help" parameter and look for it.
I'm using Qt 4.1.1. With the open source version for windows(installed with the .exe) my program works fine. I can manipulate, etc. jpeg images. But if I try the open source "source" and build it, I cannot work with jpeg images. (configure -static)
Perhaps I am missing a switch during "configure"...![]()
Also, how do I use "libjpeg"?
-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)
Bookmarks