How to build QtBase 5.0.2 on Windows XP SP3 using msvc2005

2023-07-06 14:31:21 浏览数 (2)

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 mkspecswin32-msvc2005qmake.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 srcpluginsplatformswindowsqtwindows_additional.h with the version provided (modifications are tagged as ROCHUS)
Replace srcpluginsplatformswindowsqwindowsdialoghelpers.cpp with the version provided (modifications are tagged as ROCHUS)
Replace srcwidgetsutilqsystemtrayicon_win.cpp with the version provided (modifications are tagged as ROCHUS)Run nmake

Change mkspecswin32-msvc2005qmake.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 srcpluginsplatformswindowsqtwindows_additional.h with the version provided (modifications are tagged as ROCHUS)

Replace srcpluginsplatformswindowsqwindowsdialoghelpers.cpp with the version provided (modifications are tagged as ROCHUS)

Replace srcwidgetsutilqsystemtrayicon_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

  • Previous message: [Interest] Problem building Qt5 (Visual Studio 2005)
  • Next message: [Interest] (no subject)
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

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

  • Previous message: [Interest] Problem building Qt5 (Visual Studio 2005)
  • Next message: [Interest] (no subject)
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

More information about the Interest mailing list

0 人点赞