Undefined reference error while trying to build QStyledPlugin
-
I'm trying to build
qstyledplugin
from http://qt.gitorious.org/qt/qtstyleplugins using mingw-4.7.2 and Qt5.0.1 from http://qt-project.org/forums/viewthread/23002 but I get this error:mingw32-make.exe -f Makefile.Release g++ -Wl,-s -shared -Wl,--out-implib,C:\git\styled\qtstyleplugins\plugins\styles\libqcleanlooksstyle.a -o ..\..\..\..\plugins\styles\qcleanlooksstyle.dll .obj/release_shared/qcleanlooksstyle.o .obj/release_shared/plugin.o .obj/release_shared/qstylehelper.o .obj/release_shared/moc_qcleanlooksstyle.o -Lc:/SDK/Qt5-x32/lib -lQt5Widgets -lQt5Gui -lQt5Core -llibEGL -llibGLESv2 -lgdi32 -luser32 .obj/release_shared/qcleanlooksstyle.o:qcleanlooksstyle.cpp:(.text+0x1001): \ undefined reference to `_imp___ZTV16QCleanlooksStyle' .obj/release_shared/qcleanlooksstyle.o:qcleanlooksstyle.cpp:(.text+0x19017): \ undefined reference to `_imp___ZTV16QCleanlooksStyle' c:/qt/mingw-4.7.2/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/bin/ld.exe: .obj/release_shared/qcleanlooksstyle.o: \ bad reloc address 0x36 in section `.text$_ZN8QPainter8drawLineERK6QPointS2_[__ZN8QPainter8drawLineERK6QPointS2_]'
How can it be solved?
I have the same error when trying to build with official Qt 5.0.1 for Windows 32-bit (MinGW 4.7).