Qt库要静态编译吧?
我加
Q_IMPORT_PLUGIN(qjpeg)
Q_IMPORT_PLUGIN(qgif)
后出错:
main.o: In function `__static_initialization_and_destruction_0(int, int)':
main.cpp:(.text+0x30): undefined reference to `qt_plugin_instance_qjpeg()'
main.cpp:(.text+0x34): undefined reference to `qt_plugin_instance_qgif()'
collect2: ld returned 1 exit status
make: *** [test] 错误 1