Static build fails to include plugins, undefined symbols

I've built a static version of Qt for Mac, now I'm trying to build a statically linked application. I need graphics support, so I had planned on using Qt plugins (let me know if this isn't needed / correct) basedon things I had read online.

I don't think anything in the GPL or LGPL prevents static linking when the software its is being linked with has a compatible license. My software is not commercial and will be released with the binary.

It's been some time since I have used a static Qt version (and only on Windows), but the problems seems to be that plugins/imageformats/*.lib are not included in your linker command (they should have been added by qmake with the QTPLUGIN command). Can you try manually add -L/usr/local/Trolltech/Qt-4.8.0/plugins/imagesformats and -lqjpeg4 etc. (or similar) to your LIBS specification?