Impossible to cross-compile QT5 App for windows on Linux
-
Hello,
I'm trying to compile a certain app for windows on my linux (fedora 20) machine. It works more or less well, but if I try to build it using -static (this is, CONFIG+= static) it fails due to some missing symbols:
/usr/i686-w64-mingw32/sys-root/mingw/lib/../lib/libQt5Gui.a(qopenglcontext.o):(.text+0x59e): undefined reference to
_imp__glGetIntegerv@8' /usr/i686-w64-mingw32/sys-root/mingw/lib/../lib/libQt5Gui.a(qopenglcontext.o):(.text+0x24d9): undefined reference to
_imp__glFlush@0'
/usr/lib64/gcc/i686-w64-mingw32/4.8.3/../../../../i686-w64-mingw32/bin/ld: /usr/i686-w64-mingw32/sys-root/mingw/lib/../lib/libQt5Gui.a(qopenglcontext.o): bad reloc address 0x2 in section `.text$_ZN26QOpenGLSharedResourceGuardD1Ev[__ZN26QOpenGLSharedResourceGuardD1Ev]'Any idea of that? AFAIK I have all libs installed, I guess some weird symbol doesnt have the right naming convention.
Thanks,
David