前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >How to build QtBase 5.0.2 on Windows XP SP3 using msvc2005

How to build QtBase 5.0.2 on Windows XP SP3 using msvc2005

作者头像
用户3519280
发布2023-07-06 14:31:21
1200
发布2023-07-06 14:31:21
举报
文章被收录于专栏:c++ 学习分享c++ 学习分享

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:

代码语言:javascript
复制
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


代码语言:javascript
复制
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

本文参与?腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2019-10-07,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客?前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与?腾讯云自媒体同步曝光计划? ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 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
  • [Interest] Problem building Qt5 (Visual Studio 2005)
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
http://www.vxiaotou.com