Hi guys,
I'm trying to build a mingw build of qt 5.0.0 but it fails everytime it gets to the printsupport library. Any one know why?
I'm following an old "build qt with mingw" tutorial from here: http://qt-project.org/wiki/Building_...ows_with_MinGW
And it is for windows. I've been trying with the mingw that arrives with QTSDK and when that failed I've downloaded the latest Mingw32 from there website but the error continues.
It seems like it's not finding a DLL but I can't figure out which one, when I go to the qprintengine_win.cpp file all i can find is that it goes back to Mingw .h file named wingdi.h but from there I get nowhere. Please help me?
OS: Windows 7
My build configuration:
configure -platform win32-g++ -opensource -no-opengl -no-openvg -openssl -debug-and-release
Error output:
jom: Entering directory 'C:\Qt\5.0.0_mingw\qtbase\src\printsupport
Creating library file: C:\Qt\5.0.0_mingw\qtbase\lib\libQt5PrintSupportd.a ./.obj\debug_shared\qprintengine_win.o: In function `QWin32PrintEngine::begin(QPaintDevice*)':
C:\Qt\5.0.0_mingw\qtbase\src\printsupport/kernel/qprintengine_win.cpp:218: undefined reference to `__imp_StartDocW'
C:\Qt\5.0.0_mingw\qtbase\src\printsupport/kernel/qprintengine_win.cpp:223: undefined reference to `__imp_StartPage'
./.obj\debug_shared\qprintengine_win.o: In function `QWin32PrintEngine::end()':
C:\Qt\5.0.0_mingw\qtbase\src\printsupport/kernel/qprintengine_win.cpp:256: undefined reference to `__imp_AbortDoc'
C:\Qt\5.0.0_mingw\qtbase\src\printsupport/kernel/qprintengine_win.cpp:266: undefined reference to `__imp_EndPage'
.... ETC, ETC .............
./.obj\debug_shared\qprintengine_win.o: In function `QWin32PrintEnginePrivate::initialize()':
C:\Qt\5.0.0_mingw\qtbase\src\printsupport/kernel/qprintengine_win.cpp:1031: undefined reference to `__imp_CreateDCW'
./.obj\debug_shared\qprintengine_win.o: In function `QWin32PrintEnginePrivate::initHDC()':
C:\Qt\5.0.0_mingw\qtbase\src\printsupport/kernel/qprintengine_win.cpp:1058: undefined reference to `__imp_GetDeviceCaps'
C:\Qt\5.0.0_mingw\qtbase\src\printsupport/kernel/qprintengine_win.cpp:1059: undefined reference to `__imp_GetDeviceCaps'
C:\Qt\5.0.0_mingw\qtbase\src\printsupport/kernel/qprintengine_win.cpp:1060: undefined reference to `__imp_GetDeviceCaps'
./.obj\debug_shared\qprintengine_win.o: In function `QWin32PrintEnginePrivate::initDevRects()':
C:\Qt\5.0.0_mingw\qtbase\src\printsupport/kernel/qprintengine_win.cpp:1091: undefined reference to `__imp_GetDeviceCaps'
C:\Qt\5.0.0_mingw\qtbase\src\printsupport/kernel/qprintengine_win.cpp:1091: undefined reference to `__imp_GetDeviceCaps'
./.obj\debug_shared\qprintengine_win.o:C:\Qt\5.0.0_m ingw\qtbase\src\printsupport/kernel/qprintengine_win.cpp:1095: more undefined references to `__imp_GetDeviceCaps' follow
./.obj\debug_shared\qprintengine_win.o: In function `QWin32PrintEnginePrivate::release()':
C:\Qt\5.0.0_mingw\qtbase\src\printsupport/kernel/qprintengine_win.cpp:1143: undefined reference to `__imp_DeleteDC'
./.obj\debug_shared\qprintengine_win.o: In function `QWin32PrintEnginePrivate::readDevmode(void*)':
C:\Qt\5.0.0_mingw\qtbase\src\printsupport/kernel/qprintengine_win.cpp:1680: undefined reference to `__imp_CreateDCW'
./.obj\debug_shared\qprintengine_win.o: In function `draw_text_item_win':
C:\Qt\5.0.0_mingw\qtbase\src\printsupport/kernel/qprintengine_win.cpp:1696: undefined reference to `__imp_SetTextAlign'
C:\Qt\5.0.0_mingw\qtbase\src\printsupport/kernel/qprintengine_win.cpp:1697: undefined reference to `__imp_SetBkMode'
C:\Qt\5.0.0_mingw\qtbase\src\printsupport/kernel/qprintengine_win.cpp:1714: undefined reference to `__imp_GetStockObject'
C:\Qt\5.0.0_mingw\qtbase\src\printsupport/kernel/qprintengine_win.cpp:1716: undefined reference to `__imp_SelectObject'
C:\Qt\5.0.0_mingw\qtbase\src\printsupport/kernel/qprintengine_win.cpp:1740: undefined reference to `__imp_SetGraphicsMode'
C:\Qt\5.0.0_mingw\qtbase\src\printsupport/kernel/qprintengine_win.cpp:1741: undefined reference to `__imp_SetWorldTransform'
C:\Qt\5.0.0_mingw\qtbase\src\printsupport/kernel/qprintengine_win.cpp:1752: undefined reference to `__imp_ExtTextOutW'
C:\Qt\5.0.0_mingw\qtbase\src\printsupport/kernel/qprintengine_win.cpp:1761: undefined reference to `__imp_SelectObject'
C:\Qt\5.0.0_mingw\qtbase\src\printsupport/kernel/qprintengine_win.cpp:1782: undefined reference to `__imp_ExtTextOutW'
C:\Qt\5.0.0_mingw\qtbase\src\printsupport/kernel/qprintengine_win.cpp:1790: undefined reference to `__imp_ExtTextOutW'
C:\Qt\5.0.0_mingw\qtbase\src\printsupport/kernel/qprintengine_win.cpp:1799: undefined reference to `__imp_SetWorldTransform'
C:\Qt\5.0.0_mingw\qtbase\src\printsupport/kernel/qprintengine_win.cpp:1802: undefined reference to `__imp_SelectObject'
./.obj\debug_shared\qprintengine_win.o: In function `QWin32PrintEnginePrivate::resetDC()':
C:\Qt\5.0.0_mingw\qtbase\src\printsupport/kernel/qprintengine_win_p.h:173: undefined reference to `__imp_ResetDCW
'
collect2: ld returned 1 exit status
jom: C:\Qt\5.0.0_mingw\qtbase\src\printsupport\Makefile .Debug [..\..\lib\Qt5PrintSupportd.dll] Error 1
jom: Leaving directory 'C:\Qt\5.0.0_mingw\qtbase\src\printsupport'
jom: C:\Qt\5.0.0_mingw\qtbase\src\printsupport\Makefile [debug-all] Error 2
jom: Leaving directory 'C:\Qt\5.0.0_mingw\qtbase\src\printsupport'
jom: C:\Qt\5.0.0_mingw\qtbase\src\Makefile [sub-printsupport-make_first] Error 2
jom: Leaving directory 'C:\Qt\5.0.0_mingw\qtbase\src'
jom: C:\Qt\5.0.0_mingw\qtbase\Makefile [sub-src-make_first] Error 2
jom: Leaving directory 'C:\Qt\5.0.0_mingw\qtbase'
jom: Leaving directory 'C:\Qt\5.0.0_mingw'
Bookmarks