Did you look if the build process actually succeed in building qt-libjpeg as well?However, despite running configure.exe with -qt-libjpeg I am still getting the following error:
Does lib actually exists?
Did you look if the build process actually succeed in building qt-libjpeg as well?However, despite running configure.exe with -qt-libjpeg I am still getting the following error:
Does lib actually exists?
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
qjpegd4.dll was successfully compiled in the plugins/imageformats directory. Should there be anything else? If so, how do I selectively compile only the plugins themselves (to avoid waiting for 3 hours for QT to recompile)?
I apologize if my question is stupid...
mingw32/bin/ld.exe: cannot find -lqjpegFrom what you have posted so far, it looks more like you are building a in release mode (you project) but linking to a debug Qt.qjpegd4.dll was successfully compiled in the plugins/imageformats directory.
Do you have a release Qt build as well?
You can try changing your project built to debug and see if it helps.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
I have qjpeg.dll as well, so that's not the problem.
It seems that I lack qjpeg.a, not qjpeg.dll. However, no matter what parameters I pass to configure.exe, I can't get mingw32 to compile the imageformats libraries for static projects. I only get qjpeg4.a, which is the static version of the library. Any suggestions?
Perhaps someone could zip his c:/qt/static/plugins/imageformats folder and upload it? This seems like the easiest solution.
Thanks.
Ok, I missed it when I first read your post...I am trying to compile a QT application in static
I don't get it...I can't get mingw32 to compile the imageformats libraries for static projects. I only get qjpeg4.a, which is the static version of the library.
qjpeg4.a is as you say the static lib, and the static lib is what you want... so I am confused with the problem you have.
What is it then that you are looking for?
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
I managed to finally compile the static version of the qjpeg library (libqjpeg.a) by removing the -qt-libjpeg parameter when executing configure.exe. It seems that by setting that parameter, you are telling Mingw32 to take the existing dynamic lib (?).
Now I only need to figure out how to do the same with qlibtiff and qlibgif.
>qjpeg4.a is as you say the static lib
As far as I understand qjpeg4 is a dynamic lib, as it contains the version number and takes only several kilobytes. qjpeg.a is the static lib.
I apologize if I'm not clear, I'm new to advanced QT compilation.
Actually no.As far as I understand qjpeg4 is a dynamic lib, as it contains the version number and takes only several kilobytes. qjpeg.a is the static lib.
*.so or *.dll are dynamic.
*.a or *.lib are static (respectively).
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Bookmarks