D 2011-11-20T20:52:41.800 L KitDLL\sSDK P 4e4f21228ccb3d1f5b2a249f5a6dc4d0113e2b84 U rkeene W 1919 Example:
  1. Compiling a Tcl extension using a KitDLL SDK
    1. Build or Download a KitDLL SDK
    2. $ tar -xf /path/to/libtclkit-sdk-8.4.19.tar.gz
    3. $ TCLKIT_SDK_DIR="$(pwd)/libtclkit-sdk-8.4.19"
    4. $ export TCLKIT_SDK_DIR
    5. $ ./configure --with-tcl="${TCLKIT_SDK_DIR}/lib"
    6. $ make
  2. Compiling TkPNG for Windows/i586 on Linux using a KitDLL SDK
    1. CC=i586-mingw32msvc-gcc; CXX=i586-mingw32msvc-g++; LD=i586-mingw32msvc-ld; AR=i586-mingw32msvc-ar; RANLIB=i586-mingw32msvc-ranlib; STRIP=i586-mingw32msvc-strip; export CC CXX LD AR RANLIB STRIP
    2. $ wget http://www.rkeene.org/devel/kitcreator/kitbuild/nightly/libtclkit-8.4.19-win32-i586-kitdll-xcompile-sdk.tar.gz http://zlib.net/zlib-1.2.5.tar.gz http://sourceforge.net/projects/tkpng/files/tkpng/0.9/tkpng0.9.tgz/download
    3. $ tar -xf libtclkit-8.4.19-win32-i586-kitdll-xcompile-sdk.tar.gz
    4. $ TCLKIT_SDK_DIR="$(pwd)/libtclkit-sdk-8.4.19"; export TCLKIT_SDK_DIR
    5. $ tar -xf zlib-1.2.5.tar.gz
    6. $ cd zlib-1.2.5/
    7. $ ./configure --static --prefix="${TCLKIT_SDK_DIR}" && make && make install
    8. $ cd ../
    9. $ tar -xf tkpng0.9.tgz
    10. $ cd tkpng0.9
    11. $ ./configure --prefix=$(pwd)/INST --host=i586-mingw32msvc --with-tcl="${TCLKIT_SDK_DIR}/lib" --with-tk="${TCLKIT_SDK_DIR}/lib" && make && make install
    12. $ cd "${TCLKIT_SDK_DIR}/lib/tkpng0.9"
    13. $ mv libtkpng0.9.so tkpng0.9.dll
    14. $ vi pkgIndex.tcl
Z 0209fcf842bd8cd0ddb41c521d543ed1