D 2011-11-20T20:55:20.442
L KitDLL\sSDK
P 6c86363ae0a5d37651f7cee3183a40ced933fdf4
U rkeene
W 1921
Example:
- Compiling a Tcl extension using a KitDLL SDK
- Build or Download a KitDLL SDK
- $ tar -xf /path/to/libtclkit-sdk-8.4.19.tar.gz
- $ TCLKIT_SDK_DIR="$(pwd)/libtclkit-sdk-8.4.19"
- $ export TCLKIT_SDK_DIR
- $ ./configure --with-tcl="${TCLKIT_SDK_DIR}/lib"
- $ make
- Compiling TkPNG for Windows/i586 on Linux using a KitDLL SDK
- $ 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
- $ 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
- $ tar -xf libtclkit-8.4.19-win32-i586-kitdll-xcompile-sdk.tar.gz
- $ TCLKIT_SDK_DIR="$(pwd)/libtclkit-sdk-8.4.19"; export TCLKIT_SDK_DIR
- $ tar -xf zlib-1.2.5.tar.gz
- $ cd zlib-1.2.5/
- $ ./configure --static --prefix="${TCLKIT_SDK_DIR}" && make && make install
- $ cd ../
- $ tar -xf tkpng0.9.tgz
- $ cd tkpng0.9
- $ ./configure --prefix=$(pwd)/INST --host=i586-mingw32msvc --with-tcl="${TCLKIT_SDK_DIR}/lib" --with-tk="${TCLKIT_SDK_DIR}/lib" && make && make install
- $ cd "${TCLKIT_SDK_DIR}/lib/tkpng0.9"
- $ mv libtkpng0.9.so tkpng0.9.dll
- $ vi pkgIndex.tcl
Z 6a8f69345143d98b82f7498b20071db4