I tried to do this as well (on a Macintosh) and I"m getting errors like the following:
Undefined symbols for architecture x86_64:
"qt_plugin_instance_qjpeg()", referenced from:
__static_initialization_and_destruction_0(int, int)in main.o
Anyone know how to fix this issue?
P.S. --- I looked in the libqjpeg.dylib with nm and noted that there is an entry called _qt_plugin_instance, but there is NOT an entry called _qt_plugin_instance_qjpeg, which is being defined by the Q_IMPORT_PLUGIN macro.
Bookmarks