From kde-buildsystem Wed Nov 07 19:19:37 2007 From: Christian Ehrlicher Date: Wed, 07 Nov 2007 19:19:37 +0000 To: kde-buildsystem Subject: Problem with Qt4 and release mode on windows Message-Id: <47320FC9.5020900 () gmx ! de> X-MARC-Message: https://marc.info/?l=kde-buildsystem&m=119446327108889 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============0031410749==" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --===============0031410749== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig37C5A7D192815081C36A5D3D" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig37C5A7D192815081C36A5D3D Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, when I compile a qt plugin in release mode (and therefore link against release qt lib) I've the problem that cmake does not set -DQT_NO_DEBUG . Because of this Qt assumes we're compiling this plugin in debug mode: qconfig.h: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D #if !defined(QT_NO_DEBUG) && !defined(QT_DEBUG) # define QT_DEBUG #endif which leads to the wrong Q_PLUGIN_VERIFICATION_DATA: qplugin.h: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D # ifdef QT_NO_DEBUG # define QPLUGIN_DEBUG_STR "false" # else # define QPLUGIN_DEBUG_STR "true" # endif # define Q_PLUGIN_VERIFICATION_DATA \ static const char *qt_plugin_verification_data =3D \ "pattern=3D""QT_PLUGIN_VERIFICATION_DATA""\n" \ "version=3D"QT_VERSION_STR"\n" \ "debug=3D"QPLUGIN_DEBUG_STR"\n" \ "buildkey=3D"QT_BUILD_KEY"\0"; --> an app does not load this plugin because the verification data does not match. I'm posting this to cmake and kde-buildsystem list because I don't know who to blame here - qt because it's not recognizing the NDEBUG flag (which seems to be a widely used flag) or cmake because it's not adding QT_NO_DEBUG to the compiler flags. Christian --------------enig37C5A7D192815081C36A5D3D 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.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHMg/NHAIuqbOiZ+kRApZeAKClpzO7nrqABB/1ChBbbASuG+I0SgCgoKEK zyWAh3D+zV80P5xXNrGJf+Q= =AcZC -----END PGP SIGNATURE----- --------------enig37C5A7D192815081C36A5D3D-- --===============0031410749== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kde-buildsystem mailing list Kde-buildsystem@kde.org https://mail.kde.org/mailman/listinfo/kde-buildsystem --===============0031410749==--