[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyKDE] SIP patch for win32 build
From: rweems () edgenet ! com (Randy Weems)
Date: 2000-09-13 19:56:47
[Download RAW message or body]
Here's a patch (diff --context) for the changes I had to make to
the siplib.pro shipped with sip-2.0pre2 to get it to build on my
system. This change assumes there's an environment variable
PYTHONHOME defined pointing to the location of python. I added
$(PYTHONHOME)/include to the include path and $(PYTHONHOME)/libs
to the lib path. I also added QT_DLL to the defines; qt2.2
provides a new qconfig.h header that defines QT_DLL, but TMAKE
doesn't look at this file when it's generating the makefile, so
it links to qt.lib rather than qt220.lib. Adding QT_DLL to the
defines fixes this (at the expense of generating a compiler
warning for every compilation unit that ultimately includes
qconfig.h).
--
Randy Weems
mailto:rweems@edgenet.com
["rjw1.patch" (text/plain)]
Index: siplib.pro
===================================================================
RCS file: /usr/local/cvsroot/sip/siplib/siplib.pro,v
retrieving revision 1.2
retrieving revision 1.1
diff --context -r1.2 -r1.1
*** siplib.pro 2000/09/13 17:53:56 1.2
--- siplib.pro 2000/09/13 17:28:27 1.1
***************
*** 12,19 ****
TEMPLATE = lib
CONFIG = dll qt warn_on release
! INCLUDEPATH = . $(PYTHONHOME)/include
! DEFINES = SIP_QT_SUPPORT SIP_MAKE_DLL QT_DLL
HEADERS = sip.h \
sipQt.h \
sipint.h
--- 12,19 ----
TEMPLATE = lib
CONFIG = dll qt warn_on release
! INCLUDEPATH = .
! DEFINES = SIP_QT_SUPPORT SIP_MAKE_DLL
HEADERS = sip.h \
sipQt.h \
sipint.h
***************
*** 22,26 ****
siplib.c
INTERFACES =
TARGET = sip
- win32:TMAKE_LFLAGS = /LIBPATH:$(PYTHONHOME)/libs
-
--- 22,24 ----
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic