Hi,

Originally Posted by
patrik08
Image support gif tif jpg run only on not -static...
Well, it's not 100% true. You can get support for images by compiling required plugins when building a statically linked Qt. This can be done by e.g.:
./configure -static -qt-gif -qt-libtiff -qt-libpng -qt-libmng -qt-libjpeg
Then, you have to manually specify the plugins you want to use in the project file, e.g.:
QTPLUGIN += qjpeg qgif
QTPLUGIN += qjpeg qgif
To copy to clipboard, switch view to plain text mode
and load them in main.cpp:
Q_IMPORT_PLUGIN(qjpeg)
Q_IMPORT_PLUGIN(qgif)
int main( int argc, char **argv )
{
...
Q_IMPORT_PLUGIN(qjpeg)
Q_IMPORT_PLUGIN(qgif)
int main( int argc, char **argv )
{
QApplication app( argc, argv );
...
To copy to clipboard, switch view to plain text mode
Not very convenient, but works for me. Creates a universal binary that can be used across "dev" and "non-dev" Macs. The plugins have to be disabled when building with shared Qt, so I typically create a small patch file, and use it to amend the code for deployment builds.
Bookmarks