Important: Please read the Qt Code of Conduct -

Cross building with printsupport, Qt 5.6.1

  • Hi all,
    I'm cross building an application using the mingw compiler to have binaries for Windows but I have some issue with the Qt printsupport plugin.
    On linux it works fine, I'm building it as static library.

    I am using Qt 5.6.1, below the configure error not being able to find Qt print support, in config.log I get:

    ../plugins/printsupport/libwindowsprintersupport.a(main.o):main.cpp:(.text+0x143): undefined reference to `QPlatformPrinterSupportPlugin::QPlatformPrinterSupportPlugin(QObject*)'
    ../plugins/printsupport/libwindowsprintersupport.a(main.o):main.cpp:(.text+0x28d): undefined reference to `QPlatformPrinterSupportPlugin::qt_metacast(char const*)'
    ../plugins/printsupport/libwindowsprintersupport.a(main.o):main.cpp:(.text+0x2a1): undefined reference to `QPlatformPrinterSupportPlugin::qt_metacall(QMetaObject::Call, int, void**)'
    ../plugins/printsupport/libwindowsprintersupport.a(main.o): bad reloc address 0x0 in section `.pdata'

    Any hint for the right direction?


Log in to reply