Re: Qt/Win Free - Unofficial patches for Qt4 - manifest

Christian Ehrlicher <[email protected]> Fri, 10 Mar 2006 21:07:58 +0100
Newsgroups gmane.comp.kde.devel.cygwin
Message-ID <[email protected]>
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--===============0359033977==
Content-Type: multipart/signed; micalg=pgp-sha1;
 protocol="application/pgp-signature";
 boundary="------------enig7FA69CEE077E0616A1C05046"

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig7FA69CEE077E0616A1C05046
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

REGAT-BARREL Aurelien schrieb:
> Hi all,
> I hope this is the rigth place te speak about "Qt/Win Free - Unofficial=
 patches
> for Qt4":
> http://sourceforge.net/project/showfiles.php?group_id=3D49109&package_i=
d=3D165202
>=20
> First, thanks for this patch, it's a godd job :-)
>=20
> I tried to compile Qt in -release -static with it, and, I succeeded. Bu=
t, in
> release + static, it is compiled using -MD =3D using the CRT as a dll
> http://msdn2.microsoft.com/en-us/library/2kzt1wy3(en-US,VS.80).aspx
> I changed QMAKE_CFLAGS_RELEASE in qmake.conf in order to compile with -=
MT, wich
> IMO is a better choice for redistribution.
> But the compilation quickly fails:
>=20
>        link /NOLOGO /SUBSYSTEM:CONSOLE /incremental:no /OUT:"..\..\..\b=
in\moc.e
> xe" @C:\DOCUME~1\Aurelien\LOCALS~1\Temp\nm672.tmp
> moc.obj : MSIL .netmodule or module compiled with /GL found; restarting=
 link
> wit
> h /LTCG; add /LTCG to the link command line to improve linker performan=
ce
> Generating code
> Finished generating code
>         mt.exe /manifest ..\..\..\bin\moc.exe.manifest
> /outputresource:..\..\..\
> bin\moc.exe;#2
> Microsoft (R) Manifest Tool version 5.2.3790.2014
> Copyright (c) Microsoft Corporation 2005.
> All rights reserved.
>=20
> ..\..\..\bin\moc.exe.manifest : general error c1010070: Failed to load =
and
> parse
>  the manifest. File not found.
>=20
> This is because the patch always calls mt.exe, and it shouldn't in my c=
ase
> since when compiling with -MT, no manifest is required so it is not cre=
ated.
> So, I created a patch for your patch :-)
> ftp://ftp-developpez.com/arb/qt4/vc++/qt-4.1-patch-release-mt.zip
>=20
> It patches qmake in order to change its nmake output:
>=20
> mt.exe /manifest (DESTDIR_TARGET).manifest /outputresource:$(DESTDIR_TA=
RGET);#2
>=20
> becomes
>=20
> @if exist $(DESTDIR_TARGET).manifest mt.exe /manifest (DESTDIR_TARGET).=
manifest
> /outputresource:$(DESTDIR_TARGET);#2
>=20
> it also patches qmake/Makefile.win32-msvc2005 in order to compile it wi=
th -MT
> too.
> Files modified by my patch:
> http://arb.developpez.com/qt4/vc++/compilation/msvc_nmake.cpp
> http://arb.developpez.com/qt4/vc++/compilation/qmake.conf
> http://arb.developpez.com/qt4/vc++/compilation/Makefile.win32-msvc2005
>=20
> Note that I also compile with -GL in release.
> http://msdn2.microsoft.com/en-us/library/0zza0de8(en-US,VS.80).aspx
>=20
> But this point can be discussed.
>=20
> Hope it helps.
>=20
>=20
> PS: I wrote a french article about this, if there are some french here:=

> http://arb.developpez.com/qt4/vc++/compilation/
Thx,

I've added your suggestions with -MT (only for static builds) into cvs.

Christian


--------------enig7FA69CEE077E0616A1C05046
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEEdyhHAIuqbOiZ+kRAljrAJ9rT4UbsB3+2ViTFXs/B0B6YC0iSQCgzDlx
4nddn5FtmFtWM0txUkJwTPo=
=yWNK
-----END PGP SIGNATURE-----

--------------enig7FA69CEE077E0616A1C05046--

--===============0359033977==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
kde-cygwin mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-cygwin

--===============0359033977==--