Artifact [518a0b449e]

Artifact 518a0b449e6f578a3fa2aa9668fe7d91d8d0930a:

Wiki page [KitDLL SDK] by rkeene on 2011-11-20 20:56:37.
D 2011-11-20T20:56:37.162
L KitDLL\sSDK
P e3c6e09a7c804d373a55e0a6d9df585d06ce6e7d
U rkeene
W 1920
Example:

<ol>
  <li>Compiling a Tcl extension using a KitDLL SDK
    <ol type="a">
      <li>Build or <a href="?name=Downloads">Download</a> a KitDLL SDK</li>
      <li><tt>$ tar -xf <i>/path/to</i>/libtclkit-sdk-8.4.19.tar.gz</tt></li>
      <li><tt>$ TCLKIT_SDK_DIR="$(pwd)/libtclkit-sdk-8.4.19"</tt></li>
      <li><tt>$ export TCLKIT_SDK_DIR</tt></li>
      <li><tt>$ ./configure --with-tcl="${TCLKIT_SDK_DIR}/lib"</tt></li>
      <li><tt>$ make</tt></li>
    </ol>
  </li>
  <li>Compiling TkPNG for Windows/i586 on Linux using a KitDLL SDK
    <ol type="a">
      <li><tt>$ 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</tt></li>
      <li><tt>$ 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</tt></li>
      <li><tt>$ tar -xf libtclkit-8.4.19-win32-i586-kitdll-xcompile-sdk.tar.gz</tt></li>
      <li><tt>$ TCLKIT_SDK_DIR="$(pwd)/libtclkit-sdk-8.4.19"; export TCLKIT_SDK_DIR</tt></li>
      <li><tt>$ tar -xf zlib-1.2.5.tar.gz</tt></li>
      <li><tt>$ cd zlib-1.2.5/</tt></li>
      <li><tt>$ ./configure --static --prefix="${TCLKIT_SDK_DIR}" && make && make install</tt></li>
      <li><tt>$ cd ../</tt></li>
      <li><tt>$ tar -xf tkpng0.9.tgz</tt></li>
      <li><tt>$ cd tkpng0.9</tt></li>
      <li><tt>$ ./configure --prefix=$(pwd)/INST --host=i586-mingw32msvc --with-tcl="${TCLKIT_SDK_DIR}/lib" --with-tk="${TCLKIT_SDK_DIR}/lib" && make && make install</tt></li>
      <li><tt>$ cd "${TCLKIT_SDK_DIR}/lib/tkpng0.9"</tt></li>
      <li><tt>$ mv libtkpng0.9.so tkpng09.dll</tt></li>
      <li><tt>$ vi pkgIndex.tcl</tt></li>
    </ol>
  </li>
</ol>
Z c04e4158c257b43833af3f9b5b676c5d