PmSWT.TipsForDevelopers History

Hide minor edits - Show changes to markup

September 02, 2005, at 05:03 PM by 128.122.20.208
Changed lines 2-3 from:
  1. Download and install Python 2.4 on C:\Python24 from http://www.python.org
  2. Copy Python24.dll from \Windows\System32 to C:\Python24\libs
to:
  1. Download and install Python 2.4 on C:\Python24 from http://www.python.org.
  2. Copy Python24.dll from \Windows\System32 to C:\Python24\libs if it is not there.
September 02, 2005, at 05:02 PM by 128.122.20.208
Added line 3:
  1. Copy Python24.dll from \Windows\System32 to C:\Python24\libs
August 31, 2005, at 03:08 PM by 128.122.20.208
Changed lines 2-4 from:
  1. Download and install Python 2.4 on C:\Python24 from www.python.org
  2. Download and install MSYS (MSYS-1.0.10.exe) on C:\msys\ from www.mingw.org.
  3. Download and install MinGW? (MinGW?-4.1.1.exe) on C:\MinGW?\ from www.mingw.org. The following components have to been installed:
to:
  1. Download and install Python 2.4 on C:\Python24 from http://www.python.org
  2. Download and install MSYS (MSYS-1.0.10.exe) on C:\msys\ from http://www.mingw.org.
  3. Download and install MinGW? (MinGW?-4.1.1.exe) on C:\MinGW?\ from http://www.mingw.org. The following components have to been installed:
Changed line 12 from:
  1. Download and install libiconv (libiconv-1.9.2.tar.gz) from www.gnu.org/software/libiconv (needed by libgcj)
to:
  1. Download and install libiconv (libiconv-1.9.2.tar.gz) from http://www.gnu.org/software/libiconv(needed by libgcj)
Changed line 18 from:
  1. Download and Install SIP (sip-4.1.2.tar.gz) from www.riverbankcomputing.co.uk/sip/
to:
  1. Download and Install SIP (sip-4.2.1.tar.gz) from http://www.riverbankcomputing.co.uk/sip/ (note, sip-4.2.1.tar.gz is not available on their website since sip 4.3 is out, but you can download from http://pyqwt.sourceforge.net/support/
Changed line 21 from:
  • python configure -k -p win32-g++ AR="ar rcs" (add -k for building SIP as static library)
to:
  • python configure.py -k -p win32-g++ AR="ar rcs" (add -k for building SIP as static library)
August 31, 2005, at 02:01 PM by 128.122.20.208
Changed line 15 from:
  • ./configure --prefix=/mingw --enable-static --disable-shared
to:
  • ./configure --prefix=/mingw --enable-static=yes --enable-shared=no
August 31, 2005, at 01:27 PM by 128.122.20.208
Changed lines 12-14 from:
  1. Download and install libiconv (libiconv-1.9.1.tar.gz) from www.gnu.org/software/libiconv (needed by libgcj)
    • tar zxvf libiconv-1.9.1.tar.gz
    • cd libiconv-1.9.1
to:
  1. Download and install libiconv (libiconv-1.9.2.tar.gz) from www.gnu.org/software/libiconv (needed by libgcj)
    • tar zxvf libiconv-1.9.2.tar.gz
    • cd libiconv-1.9.2
August 31, 2005, at 01:26 PM by 128.122.20.208
Changed line 15 from:
  • ./configure --prefix=/mingw32 --enable-static --disable-shared
to:
  • ./configure --prefix=/mingw --enable-static --disable-shared
August 25, 2005, at 02:50 PM by 208.217.164.134
Changed line 52 from:
  1. Install pyswt
to:
  1. Install pyswt
Changed lines 55-58 from:

to:
  1. Run sample
    • cd pyswt-xxx/samples
    • python test.py

August 25, 2005, at 02:49 PM by 208.217.164.134
Added line 35:
  • make noawt (remove org/eclipse/swt/awt directories)
Changed lines 52-55 from:

to:
  1. Install pyswt
  • copy pyswt.pyd to c:\python24\Lib\site-packages
  • copy swt-win32-3138.dll, swt-gdip-3138.dll (swt-awt-win32-3138.dll if you didn't remove awt/ directory in swt source codes) to some directory in system, say C:\Windows\System32.

August 25, 2005, at 02:39 PM by 208.217.164.134
Changed line 20 from:
  • set PATH=c:\Python24;c:\MinGW?\bin;% (add python, mingw/bin into path)
to:
  • set PATH=c:\Python24;c:\MinGW?\bin;\%PATH\% (add python, mingw/bin into path)
August 25, 2005, at 02:36 PM by 208.217.164.134
Changed line 20 from:
  • set PATH=c:\Python24;c:\MinGW?\bin;"" (add python, mingw/bin into path)
to:
  • set PATH=c:\Python24;c:\MinGW?\bin;% (add python, mingw/bin into path)
August 25, 2005, at 02:35 PM by 208.217.164.134
Changed line 20 from:
  • set PATH=c:\Python24;c:\MinGW?\bin;PATH (add python, mingw/bin into path)
to:
  • set PATH=c:\Python24;c:\MinGW?\bin;"" (add python, mingw/bin into path)
August 25, 2005, at 02:34 PM by 208.217.164.134
Changed line 20 from:
  • set PATH=c:\Python24;c:\MinGW?\bin;\%PATH\% (add python, mingw/bin into path)
to:
  • set PATH=c:\Python24;c:\MinGW?\bin;PATH (add python, mingw/bin into path)
August 25, 2005, at 02:34 PM by 208.217.164.134
Changed line 20 from:
  • set PATH=c:\Python24;c:\MinGW?\bin; (add python, mingw/bin into path)
to:
  • set PATH=c:\Python24;c:\MinGW?\bin;\%PATH\% (add python, mingw/bin into path)
August 25, 2005, at 02:34 PM by 208.217.164.134
Changed line 20 from:
  • add python, mingw/bin into path
to:
  • set PATH=c:\Python24;c:\MinGW?\bin; (add python, mingw/bin into path)
August 25, 2005, at 02:33 PM by 208.217.164.134
Changed lines 5-10 from:
  • runtime
  • w32api
  • binutil
  • gcc-core
  • gcc-g++
  • gcc-java
to:
  • runtime, w32api, binutil
  • gcc-core, gcc-g++, gcc-java
August 25, 2005, at 02:32 PM by 208.217.164.134
Changed lines 4-11 from:
  1. Download and install MinGW? (MinGW?-4.1.1.exe) on C:\MinGW?\ from www.mingw.org. (install the following components: runtime, w32api, binutil, gcc-core, gcc-g++, gcc-java, mingw32-make)
to:
  1. Download and install MinGW? (MinGW?-4.1.1.exe) on C:\MinGW?\ from www.mingw.org. The following components have to been installed:
    • runtime
    • w32api
    • binutil
    • gcc-core
    • gcc-g++
    • gcc-java
    • mingw32-make
August 25, 2005, at 02:31 PM by 208.217.164.134
Added lines 2-3:
  1. Download and install Python 2.4 on C:\Python24 from www.python.org
  2. Download and install MSYS (MSYS-1.0.10.exe) on C:\msys\ from www.mingw.org.
Changed lines 5-6 from:
  1. Download and install MSYS (MSYS-1.0.10.exe) on C:\msys\ from www.mingw.org. (type "yes" and input "c:/MinGW?" when it ask you mingw)
  2. Download and install libiconv (libiconv-1.9.1.tar.gz) from www.gnu.org/software/libiconv (needed by libgcj)
to:
  1. Mount MinGW? and Python in MSYS
Added lines 7-9:
  • echo "C:/MinGW? /mingw" > /etc/fstab
  • echo "C:/Python24 /python" >> /etc/fstab
  1. Download and install libiconv (libiconv-1.9.1.tar.gz) from www.gnu.org/software/libiconv (needed by libgcj)
Deleted line 14:
  1. Download and install Python 2.4 on C:\Python24 from www.python.org
August 25, 2005, at 02:21 PM by 208.217.164.134
Changed line 20 from:
  1. Download PySWT-xxx-src.tar.gz
to:
  1. Prepare environment
Added lines 22-23:
  • export PATH=/c/Python24:$PATH (add python into PATH or you can add it into /etc/profile)
  1. Download and untar PySWT-xxx-src.tar.gz
Deleted line 24:
  • cd pyswt-xxx
Changed lines 27-28 from:
  • export PATH=/c/Python24:$PATH (add python into PATH)
  • cd jswt
to:
  • cd pyswt-xxx/jswt
Deleted lines 33-34:
  • start a "command prompt" window
  • add python, mingw/bin into path
Changed line 37 from:
  • mingw32-make install
to:
  • cp jsip.exe /c/Python24
Deleted lines 38-39:
  • start "MinGW?->MSYS->msys"
  • export PATH=/c/Python24:$PATH (add python into PATH)
August 25, 2005, at 02:14 PM by 208.217.164.134
Changed line 28 from:
  • python patch.py java . (patch some SWT java files)
to:
  • python patch.py java (patch some SWT java files)
Changed lines 32-39 from:
  • python patch.py header . (patch some SWT header files)
to:
  • python patch.py header (patch some SWT header files)
  1. Build jsip
    • start a "command prompt" window
    • add python, mingw/bin into path
    • cd pyswt-xxx/jsip
    • python genmake.py
    • mingw32-make
    • mingw32-make install
Changed lines 41-42 from:
  • cd sip
  • make win
to:
  • start "MinGW?->MSYS->msys"
  • export PATH=/c/Python24:$PATH (add python into PATH)
  • cd pyswt-xxx/sip
  • make win32
Changed line 46 from:
  • cd src
to:
  • cd pyswt-xxx/src
August 25, 2005, at 02:09 PM by 208.217.164.134
Deleted lines 3-5:
  1. Download and install Python 2.4 on C:\Python24 from www.python.org
  2. (optional) Mount Python by adding C:\Python24 into /etc/fstab
    • echo "C:/Python24 /python" >> /etc/fstab
Added line 5:
Changed lines 11-12 from:
  1. Download and Install SIP (sip-4.1.2.tar.gz) from www.riverbankcomputing.co.uk/sip/ (see below for instructions)

to:
  1. Download and install Python 2.4 on C:\Python24 from www.python.org
  2. Download and Install SIP (sip-4.1.2.tar.gz) from www.riverbankcomputing.co.uk/sip/
    • start a "command prompt" window
    • add python, mingw/bin into path
    • python configure -k -p win32-g++ AR="ar rcs" (add -k for building SIP as static library)
    • mingw32-make
    • mingw32-make install

Added line 21:
Changed line 24 from:
  1. Download wt-3.1-win32-win32-x86.zip from www.eclipse.org, unzip it and then unzip src.zip into jswt/
to:
  1. Download swt-3.1-win32-win32-x86.zip from www.eclipse.org, unzip it and then unzip src.zip into jswt/
Added line 26:
  • export PATH=/c/Python24:$PATH (add python into PATH)
August 25, 2005, at 01:45 PM by 208.217.164.134
Changed line 6 from:
  • echo "C:/Python24 /python" >> /etc/fstab)
to:
  • echo "C:/Python24 /python" >> /etc/fstab
August 25, 2005, at 01:44 PM by 208.217.164.134
Changed lines 5-6 from:
  1. (optional) Mount Python by adding C:\Python24 into /etc/fstab (echo "C:/Python24 /python" >> /etc/fstab)
to:
  1. (optional) Mount Python by adding C:\Python24 into /etc/fstab
    • echo "C:/Python24 /python" >> /etc/fstab)
August 25, 2005, at 01:44 PM by 208.217.164.134
Changed lines 2-4 from:
  1. Download and install MinGW? (MinGW?-4.1.1.exe) on C:\MinGW?\ from www.mingw.org (C++ tools, GCJ)
  (install the following components: runtime, w32api, binutil, gcc-core, gcc-g++, gcc-java, mingw32-make)
  1. Download and install MSYS (MSYS-1.0.10.exe) on C:\msys\ from www.mingw.org (bash, sed) (ask "yes" and input "c:/MinGW?" when it ask you mingw)
to:
  1. Download and install MinGW? (MinGW?-4.1.1.exe) on C:\MinGW?\ from www.mingw.org. (install the following components: runtime, w32api, binutil, gcc-core, gcc-g++, gcc-java, mingw32-make)
  2. Download and install MSYS (MSYS-1.0.10.exe) on C:\msys\ from www.mingw.org. (type "yes" and input "c:/MinGW?" when it ask you mingw)
Changed line 5 from:
  1. (optional) Mount Python by adding C:\Python24 into /etc/fstab echo "C:/Python24 /python" >> /etc/fstab
to:
  1. (optional) Mount Python by adding C:\Python24 into /etc/fstab (echo "C:/Python24 /python" >> /etc/fstab)
August 25, 2005, at 01:43 PM by 208.217.164.134
Changed lines 2-3 from:
  1. Download and install MinGW? (MinGW?-4.1.1.exe) on C:\MinGW?\ from www.mingw.org (C++ tools, GCJ) (install the following components: runtime, w32api, binutil, gcc-core, gcc-g++, gcc-java, mingw32-make)
to:
  1. Download and install MinGW? (MinGW?-4.1.1.exe) on C:\MinGW?\ from www.mingw.org (C++ tools, GCJ)
  (install the following components: runtime, w32api, binutil, gcc-core, gcc-g++, gcc-java, mingw32-make)
August 25, 2005, at 01:42 PM by 208.217.164.134
Changed lines 2-5 from:
  1. Download and install MinGW? (MinGW?-4.1.1.exe) on C:\MinGW?\ from www.mingw.org (C++ tools, GCJ)

(install the following components: runtime, w32api, binutil, gcc-core, gcc-g++, gcc-java, mingw32-make)

  1. Download and install MSYS (MSYS-1.0.10.exe) on C:\msys\ from www.mingw.org (bash, sed)

(ask "yes" and input "c:/MinGW?" when it ask you mingw)

to:
  1. Download and install MinGW? (MinGW?-4.1.1.exe) on C:\MinGW?\ from www.mingw.org (C++ tools, GCJ) (install the following components: runtime, w32api, binutil, gcc-core, gcc-g++, gcc-java, mingw32-make)
  2. Download and install MSYS (MSYS-1.0.10.exe) on C:\msys\ from www.mingw.org (bash, sed) (ask "yes" and input "c:/MinGW?" when it ask you mingw)
Changed lines 5-6 from:
  1. (optional) Mount Python by adding C:\Python24 into /etc/fstab

echo "C:/Python24 /python" >> /etc/fstab

to:
  1. (optional) Mount Python by adding C:\Python24 into /etc/fstab echo "C:/Python24 /python" >> /etc/fstab
August 25, 2005, at 01:41 PM by 208.217.164.134
Changed line 3 from:
(install the following components: runtime, w32api, binutil, gcc-core, gcc-g++, gcc-java, mingw32-make)
to:

(install the following components: runtime, w32api, binutil, gcc-core, gcc-g++, gcc-java, mingw32-make)

Changed line 5 from:
(ask "yes" and input "c:/MinGW?" when it ask you mingw)
to:

(ask "yes" and input "c:/MinGW?" when it ask you mingw)

Changed line 8 from:
echo "C:/Python24 /python" >> /etc/fstab
to:

echo "C:/Python24 /python" >> /etc/fstab

August 25, 2005, at 01:41 PM by 208.217.164.134
Changed line 8 from:
cat "C:/Python24 /python" >> /etc/fstab
to:
echo "C:/Python24 /python" >> /etc/fstab
Changed line 12 from:
  • ./configure --prefix=/mingw32 --enable-static
to:
  • ./configure --prefix=/mingw32 --enable-static --disable-shared
August 25, 2005, at 01:37 PM by 208.217.164.134
Changed line 2 from:
  1. Download and install MinGW? (MinGW?-4.1.1.exe) on C:\Mingw\ from www.mingw.org (C++ tools)
to:
  1. Download and install MinGW? (MinGW?-4.1.1.exe) on C:\MinGW?\ from www.mingw.org (C++ tools, GCJ)
Added line 5:
(ask "yes" and input "c:/MinGW?" when it ask you mingw)
Changed lines 7-8 from:
  1. Mount MinGW? and Python by adding C:\Mingw and C:\Python24 into /etc/fstab
to:
  1. (optional) Mount Python by adding C:\Python24 into /etc/fstab
cat "C:/Python24 /python" >> /etc/fstab
August 25, 2005, at 01:31 PM by 208.217.164.134
Changed line 3 from:
 (install the following components: runtime, w32api, binutil, gcc-core, gcc-g++, gcc-java, mingw32-make)
to:
(install the following components: runtime, w32api, binutil, gcc-core, gcc-g++, gcc-java, mingw32-make)
August 25, 2005, at 01:30 PM by 208.217.164.134
Changed line 3 from:
  • (install the following components: runtime, w32api, binutil, gcc-core, gcc-g++, gcc-java, mingw32-make)
to:
 (install the following components: runtime, w32api, binutil, gcc-core, gcc-g++, gcc-java, mingw32-make)
August 25, 2005, at 01:30 PM by 208.217.164.134
Added line 3:
  • (install the following components: runtime, w32api, binutil, gcc-core, gcc-g++, gcc-java, mingw32-make)
Changed line 65 from:

JvInitClass?(&org::eclipse::swt::internal::image::GIFFileFormat?::class$);

to:
    JvInitClass?(&org::eclipse::swt::internal::image::GIFFileFormat?::class$);
August 24, 2005, at 09:15 AM by 208.217.164.134
Added lines 13-14:

Build PySWT under windows

August 24, 2005, at 09:14 AM by 208.217.164.134
Changed lines 7-11 from:
  • tar zxvf libiconv-1.9.1.tar.gz
  • cd libiconv-1.9.1
  • ./configure --prefix=/mingw32 --enable-static
  • make
  • make install
to:
  • tar zxvf libiconv-1.9.1.tar.gz
  • cd libiconv-1.9.1
  • ./configure --prefix=/mingw32 --enable-static
  • make
  • make install
Changed lines 14-15 from:
  tar zxvf pyswt-xxx-src.tar.gz
  cd pyswt-xxx
to:
  • tar zxvf pyswt-xxx-src.tar.gz
  • cd pyswt-xxx
Changed lines 18-20 from:
  cd jswt
  python patch.py java . (patch some SWT java files)
  make static
to:
  • cd jswt
  • python patch.py java . (patch some SWT java files)
  • make static
Changed lines 22-23 from:
  make headers (Do multiple time)
  python patch.py header . (patch some SWT header files)
to:
  • make headers (Do multiple time)
  • python patch.py header . (patch some SWT header files)
Changed lines 25-26 from:
  cd sip
  make win
to:
  • cd sip
  • make win
Changed lines 28-33 from:
  cd src
  python genmake.py
  mingw32-make

to:
  • cd src
  • python genmake.py
  • mingw32-make

August 24, 2005, at 09:13 AM by 208.217.164.134
Changed lines 7-11 from:
  • tar zxvf libiconv-1.9.1.tar.gz
  • cd libiconv-1.9.1
  • ./configure --prefix=/mingw32 --enable-static
  • make
  • make install
to:
  • tar zxvf libiconv-1.9.1.tar.gz
  • cd libiconv-1.9.1
  • ./configure --prefix=/mingw32 --enable-static
  • make
  • make install
August 24, 2005, at 09:13 AM by 208.217.164.134
Changed lines 7-11 from:
  1. tar zxvf libiconv-1.9.1.tar.gz
  2. cd libiconv-1.9.1
  3. ./configure --prefix=/mingw32 --enable-static
  4. make
  5. make install
to:
  • tar zxvf libiconv-1.9.1.tar.gz
  • cd libiconv-1.9.1
  • ./configure --prefix=/mingw32 --enable-static
  • make
  • make install
August 24, 2005, at 09:13 AM by 208.217.164.134
Changed lines 7-11 from:
  tar zxvf libiconv-1.9.1.tar.gz
  cd libiconv-1.9.1
  ./configure --prefix=/mingw32 --enable-static
  make
  make install
to:
  1. tar zxvf libiconv-1.9.1.tar.gz
  2. cd libiconv-1.9.1
  3. ./configure --prefix=/mingw32 --enable-static
  4. make
  5. make install
August 24, 2005, at 09:12 AM by 208.217.164.134
Changed lines 2-3 from:
  1. Download and install MinGW? (MinGW?-4.1.1.exe) from www.mingw.org (C++ tools)
  2. Download and install MSYS (MSYS-1.0.10.exe) from www.mingw.org (bash, sed)
to:
  1. Download and install MinGW? (MinGW?-4.1.1.exe) on C:\Mingw\ from www.mingw.org (C++ tools)
  2. Download and install MSYS (MSYS-1.0.10.exe) on C:\msys\ from www.mingw.org (bash, sed)
  3. Download and install Python 2.4 on C:\Python24 from www.python.org
  4. Mount MinGW? and Python by adding C:\Mingw and C:\Python24 into /etc/fstab
Changed lines 9-12 from:
  ./configure --enable-static

to:
  ./configure --prefix=/mingw32 --enable-static
  make
  make install
  1. Download and Install SIP (sip-4.1.2.tar.gz) from www.riverbankcomputing.co.uk/sip/ (see below for instructions)
  2. Download PySWT-xxx-src.tar.gz
  tar zxvf pyswt-xxx-src.tar.gz
  cd pyswt-xxx
  1. Download wt-3.1-win32-win32-x86.zip from www.eclipse.org, unzip it and then unzip src.zip into jswt/
  2. Build libswt.a
  cd jswt
  python patch.py java . (patch some SWT java files)
  make static
  1. Generate SWT Header files
  make headers (Do multiple time)
  python patch.py header . (patch some SWT header files)
  1. Generate PySWT source files
  cd sip
  make win
  1. Build pyswt.pyd
  cd src
  python genmake.py
  mingw32-make

August 24, 2005, at 08:57 AM by 208.217.164.134
Changed lines 5-6 from:
  open a MSYS's bash window
  untar and unzip libiconv-1.9.1.tar.gz
to:
  tar zxvf libiconv-1.9.1.tar.gz
Changed lines 7-11 from:
  ./configure --enable-static (build as a static library if you don't want to distribute libiconv.dll)

to:
  ./configure --enable-static

August 24, 2005, at 08:57 AM by 208.217.164.134
Changed lines 5-12 from:
  ##open a MSYS's bash window
  ##untar and unzip libiconv-1.9.1.tar.gz
  ##cd libiconv-1.9.1
  ##./configure --enable-static (build as a static library if you don't want to distribute libiconv.dll)

to:
  open a MSYS's bash window
  untar and unzip libiconv-1.9.1.tar.gz
  cd libiconv-1.9.1
  ./configure --enable-static (build as a static library if you don't want to distribute libiconv.dll)

August 24, 2005, at 08:56 AM by 208.217.164.134
Changed lines 5-12 from:

to:
  ##open a MSYS's bash window
  ##untar and unzip libiconv-1.9.1.tar.gz
  ##cd libiconv-1.9.1
  ##./configure --enable-static (build as a static library if you don't want to distribute libiconv.dll)

August 24, 2005, at 08:53 AM by 208.217.164.134
Added line 6:

Others

August 24, 2005, at 08:53 AM by 208.217.164.134
Added lines 1-5:

Build PySWT Toolchain under windows

  1. Download and install MinGW? (MinGW?-4.1.1.exe) from www.mingw.org (C++ tools)
  2. Download and install MSYS (MSYS-1.0.10.exe) from www.mingw.org (bash, sed)
  3. Download and install libiconv (libiconv-1.9.1.tar.gz) from www.gnu.org/software/libiconv (needed by libgcj)

August 23, 2005, at 10:30 AM by 208.217.164.134
Added lines 1-6:
  • modify sipgen in SIP
    • generate lexer.c:
   flex -olexer.c lexer.l
  • generate parser.h parser.c
   bison -d -oparser.c parser.y

August 02, 2005, at 06:11 PM by 208.217.164.134
Added lines 22-30:

  • load the following class when initialize SWT:

JvInitClass?(&org::eclipse::swt::internal::image::GIFFileFormat?::class$);

    JvInitClass?(&org::eclipse::swt::internal::image::JPEGFileFormat?::class$);
    JvInitClass?(&org::eclipse::swt::internal::image::OS2BMPFileFormat?::class$);
    JvInitClass?(&org::eclipse::swt::internal::image::PNGFileFormat?::class$);
    JvInitClass?(&org::eclipse::swt::internal::image::TIFFFileFormat?::class$);
    JvInitClass?(&org::eclipse::swt::internal::image::WinBMPFileFormat?::class$);
    JvInitClass?(&org::eclipse::swt::internal::image::WinICOFileFormat?::class$);
August 02, 2005, at 06:09 PM by 208.217.164.134
Changed line 5 from:
  • python configure -k -p win32-g++ AR="ar rcs"
to:
  • python configure -k -p win32-g++ AR="ar rcs" (add -k for building SIP as static library)
Added lines 9-21:
  • Compile SIP as static libary
    • add -k AR="ar rcs" when building sip.lib
    • add the following line in your *cmodule.cpp's init*():
    /* The sip module will be builtin. */
	extern void initsip(void);

    struct _inittab builtin_modules[] = {
		{"sip", initsip},
		{NULL, NULL}
	};

    PyImport?_ExtendInittab(builtin_modules);
  • pass static=1 when generate Makefile (-DSIP_STATIC_MODULE in Makefile)
July 22, 2005, at 04:39 PM by 208.217.164.134
Changed line 1 from:
to:
  • Compile SIP under MinGW
July 22, 2005, at 04:39 PM by 208.217.164.134
Added lines 1-8:
  • Compile SIP under MinGW?
    • download sip 4.1.2
    • open a "command prompt" window
    • add python, mingw/bin into path
    • python configure -k -p win32-g++ AR="ar rcs"
    • mingw32-make
    • mingw32-make install

Valid XHTML 1.0! Valid CSS!