Can't compile Qt5 with MinGW_x64 4.7.2
-
Hello, i'm having trouble compiling Qt5 with MinGW on Windows 7 virtual machine. Here is the error:
g++ -Wl,-s -shared -Wl,--out-implib,C:\QtSDK\Qt5.0.0_Src\qtbase\lib\libQt5PrintS
upport.a -o ....\lib\Qt5PrintSupport.dll object_script.Qt5PrintSupport.Release
-lwinspool -lcomdlg32 -LC:/QtSDK/Qt5.0.0_Src/qtbase/lib -lQt5Widgets -lQt5Gui -
lQt5Core .obj\release_shared\Qt5PrintSupport_resource_res.o
./.obj\release_shared\qprintengine_win.o:qprintengine_win.cpp:(.text+0x1db): und
efined reference to__imp_SaveDC' ./.obj\release_shared\qprintengine_win.o:qprintengine_win.cpp:(.text+0x209): und efined reference to
__imp_CreateCompatibleDC'
./.obj\release_shared\qprintengine_win.o:qprintengine_win.cpp:(.text+0x210): und
efined reference to__imp_SelectObject' ./.obj\release_shared\qprintengine_win.o:qprintengine_win.cpp:(.text+0x3c2): und efined reference to
__imp_StretchBlt'
./.obj\release_shared\qprintengine_win.o:qprintengine_win.cpp:(.text+0x477): und
efined reference to__imp_DeleteObject' ./.obj\release_shared\qprintengine_win.o:qprintengine_win.cpp:(.text+0x480): und efined reference to
__imp_DeleteDC'
(...)
c:/mingw/mingw_x64/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w6
4-mingw32/bin/ld.exe: ./.obj\release_shared\qprintengine_win.o: bad reloc addres
s 0x0 in section `.pdata$_ZNK17QWin32PrintEngine4typeEv'
collect2.exe: error: ld returned 1 exit status -
Why would you need to compile it, when the Qt5 Final Release is available to install with some easy to use installers..?
-
Because I want to build my app with MinGW x64. My project is in netbeans and I like to keep using it.
NetBeans doesn't support msvc toolchain and the available plugin can't debug. -
[quote author="Itehnological" date="1356209224"]Why would you need to compile it, when the Qt5 Final Release is available to install with some easy to use installers..?[/quote]
There are problems with mingw at this moment. Therefore there are no binary packages with mingw yet.
There have been some other posts about using vs 2020 express instead with the vs 2010 binaries. But i haven't tried that out myself
-
=/
Guess I'll wait you guys to release binary packages for mingw. -
-
[quote author="Lukas Geyer" date="1356256014"]See http://qt-project.org/wiki/MinGW-64-bit[/quote]
I followed that link, but setting configure without opengl, webkit and ssl, so I didn't install OpenSSL and ICU. But this Qt5PrintSupport error could not be related to this, or could?
-
[quote author="viniciusam" date="1356271636"][quote author="Lukas Geyer" date="1356256014"]See http://qt-project.org/wiki/MinGW-64-bit[/quote]
I followed that link, but setting configure without opengl, webkit and ssl, so I didn't install OpenSSL and ICU. But this Qt5PrintSupport error could not be related to this, or could?[/quote]
I am having similar issues but not with MinGW. Rebuilding Qt 5.0 using Windows SDK 7.1, without the opengl and icu modules, the build fails starting with attempting to build Qt5PrintSupport.dll. A slew of errors follows. 41 unresolved externals.
-
[quote author="Eddy" date="1356209558"]
[quote author="Itehnological" date="1356209224"]Why would you need to compile it, when the Qt5 Final Release is available to install with some easy to use installers..?[/quote]There are problems with mingw at this moment. Therefore there are no binary packages with mingw yet.
There have been some other posts about using vs 2020 express instead with the vs 2010 binaries. But i haven't tried that out myself
[/quote]There are problems with building using Win SDK tools as well. When trying to build without opengl and ICU (Webkit) the whole build falls down at around building Qt5PrintSupport.dll.