[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyQt] configure.py: fix detection of shared libs
From: Giovanni Bajo <rasky () develer ! com>
Date: 2007-06-28 0:44:50
Message-ID: 46830482.60206 () develer ! com
[Download RAW message or body]
Hello,
Without this patch, I can't compile PyQt4 on Windows anymore against a shared
build of Qt:
Index: configure.py
===================================================================
--- configure.py (revision 13265)
+++ configure.py (working copy)
@@ -1512,7 +1512,7 @@
out << QLibraryInfo::location(QLibraryInfo::DataPath) << '\\n';
out << QLibraryInfo::location(QLibraryInfo::PluginsPath) << '\\n';
-#if defined(QT_SHARED)
+#if defined(QT_DLL)
out << "shared\\n";
#else
out << "\\n";
QT_SHARED appears once or twice in Qt headers (probably a leftover?). QT_DLL
is the real macro that should be used here. An excerpt of the top of
src/corelib/qconfig.h after "configure.exe -static":
===========================
/* Everything */
===========================
and when using shared:
===========================
/* Everything */
#ifndef QT_DLL
#define QT_DLL
#endif
===========================
--
Giovanni Bajo
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic