Configuring and building the toolchain for testing / debugging
1. Python-2.3.5
# cd /usr/local/src/Python-2.3.5 # export CC=gcc-3.4 # export CXX=g++-3.4 # ./configure --prefix=/usr/local/python-2.3.5 --enable-shared --enable-unicode=ucs2 # # add "--with-pydebug --without-pymalloc" for a debuggable build. # make -j8 && make install
Now, before building anything else, make sure the python command really pulls in this interpreter. Best way is to set an alias.
2. Qt-3.3.5
- First, a platform spec must be adjusted to use gcc-3.4:
# cd /usr/local/src/qt-x11-free-3.3.5/mkspecs # cd mkspecs # cp -a linux-g++ linux-g++-3.4
Edited linux-g++-3.4/qmake.conf, replaced gcc with gcc-3.4 and g++ with g++-3.4.
# cd /usr/local/src/qt-x11-free-3.3.5/mkspecs # ./configure -prefix /usr/local/qt-3.3.5 -thread -platform linux-g++-3.4 # make -j8 && make install
3. sip-4.3.2
# cd /usr/local/src/sip-4.3.2 # export QTDIR=/usr/local/qt-3.3.5 # python configure.py -l qt-mt CC=gcc-3.4 CXX=g++-3.4 # make -j8 && make install
4. PyQt-3.15.1
- This uses the Qt compiler settings by default, so gcc-3.4 is pulled in automatically.
# cd /usr/local/src/PyQt-x11-gpl-3.15.1 # python configure.py -n /usr/include/qscintilla -o /usr/lib # make -j8 && make install
Note that this uses the system's qscintilla installation -- this is the only tool not rebuilt.
5. PyQwt-4.2
- This uses the Qt compiler settings by default, so gcc-3.4 is pulled in automatically.
# cd /usr/local/src/PyQwt-4.2/configure # python configure.py # make -j8 && make install
6. numarray-1.3.3
- Note that there is no "make clean" in numarray, so changing the config will fail. You need to remove/unpack each time for a fresh build.
# cd /usr/local/src/numarray-1.3.3 # python setup.py build
