How to build QtBase 5.0.2 on Windows XP SP3 using msvc2005

I didn't find enough information on the web, so I figured it out myself how to successfully build the DLLs of QtBase 5.0.2 on Windows XP SP3 using msvc2005. Here's the summary on how I finally succeeded.

From here you can download the modified files: http://cara.nmr-software.org/download/Qt5.0.2_WinXP_SP3_modified_files.zip

https://download.csdn.net/download/vv1025/11834259

Follow these steps:

Change mkspecs\win32-msvc2005\qmake.conf: 
add -D_WIN32_WINNT=0x0503 -DWINVER=0x0503 -D__RPC__deref_out to QMAKE_CFLAGS; 
add /FORCE to QMAKE_LFLAGSI 
used the following options to run configure: 
-opensource -platform win32-msvc2005 -no-opengl -no-opensslmanually 
add /FORCE to the Makefile.* of qmake (this doesn't seem to automatically happen, even with the mkspecs modification of point 1).
Replace src\plugins\platforms\windows\qtwindows_additional.h with the version provided (modifications are tagged as ROCHUS)
Replace src\plugins\platforms\windows\qwindowsdialoghelpers.cpp with the version provided (modifications are tagged as ROCHUS)
Replace src\widgets\util\qsystemtrayicon_win.cpp with the version provided (modifications are tagged as ROCHUS)Run nmake

Change mkspecs\win32-msvc2005\qmake.conf: add -D_WIN32_WINNT=0x0503 -DWINVER=0x0503 -D__RPC__deref_out to QMAKE_CFLAGS; add /FORCE to QMAKE_LFLAGS

I used the following options to run configure: -opensource -platform win32-msvc2005 -no-opengl -no-openssl

manually add /FORCE to the Makefile.* of qmake (this doesn't seem to automatically happen, even with the mkspecs modification of point 1).

Replace src\plugins\platforms\windows\qtwindows_additional.h with the version provided (modifications are tagged as ROCHUS)

Replace src\plugins\platforms\windows\qwindowsdialoghelpers.cpp with the version provided (modifications are tagged as ROCHUS)

Replace src\widgets\util\qsystemtrayicon_win.cpp with the version provided (modifications are tagged as ROCHUS)

Run nmake

Like this I was able to build the DLLs; and then to compile and run some examples.

I also noticed that nmake confclean does not delete the the Makefiles, and they aren't recreated by the next run of configure; that's why the changes to mkspecs are not reflected; I therefore had to manually delete Makefile, Makefile.Debug and Makefile.Release (didn't touch Makefiles in the thirdparty folder though).

Hope this helps. Comments are welcome.

 

 

[Interest] Problem building Qt5 (Visual Studio 2005)

Thiago Macieira thiago.macieira at intel.com
Thu Feb 21 17:08:54 CET 2013

 


On quinta-feira, 21 de fevereiro de 2013 08.57.58, BIRD Neil wrote:
>   With Qt5, however, I'm getting a link error when configure itself tries to
> build qmake.  Is this an issue with support for VS2005, or am I missing a
> trick?

This has been reported before.
See
	http://comments.gmane.org/gmane.comp.lib.qt.user/5737
	http://qt-project.org/forums/viewthread/18983
	http://stackoverflow.com/questions/2078087/local-classes-inside-inline-non-member-function-produces-lnk2005-with-msvc2005

It's an MSVC 2005 bug. You need to upgrade.
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130221/616e6139/attachment.sig>

 


More information about the Interest mailing list

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

lst0426

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值