[Home]Tablix On Windows (With PVM3)

HomePage

Installation instructions so far

You will need a recent version of Cygwin installed.

Download and untar PVM3 source distribution. Set PVM_ROOT and PVM_ROOT_U environment variables to the path where you put PVM3 source.

Get PVM3 patch from the page linked from [Related links]. Overwrite files in the PVM3 source with the patched files.

Comment line "extern char *malloc();" in the xdr/types.h file.

Compile PVM3 (run "make" from the top directory)

Make a symbolic link "ln -s $PVM_ROOT/lib/CYGWIN $PVM_ROOT/lib/Win32"

Download and untar Tablix source distribution.

Apply the patch below.

Configure with "./configure --enable-debug --disable-nls"

Make sure /usr/local/bin is in your path.

Start PVM with a hostfile ("pvm hostfile"). Put only one line in hostfile (for your local computer):

 windowsbox ep=/usr/local/bin

Replace "windowsbox" with the hostname of your computer. Replace ep=... with the path where tablix2_kernel.exe got installed.

Run Tablix. ("tablix2 sample.xml").

Watch it crash.

Todo

Links

http://doc.mdcc.cx/doc/autobook/html/autobook_244.html#SEC244

http://mail.python.org/pipermail/python-list/2002-May/102233.html

http://www.cygwin.com/ml/cygwin/2004-09/msg00396.html

http://www.cygwin.com/cygwin-ug-net/dll.html


Tablix Win32 patch

 diff -rub tablix2-0.3.3/configure tablix2-0.3.3-patched/configure
 --- tablix2-0.3.3/configure	2006-05-28 16:47:35.000000000 +0200
 +++ tablix2-0.3.3-patched/configure	2006-06-18 14:45:08.393164800 +0200
 @@ -4469,7 +4469,7 @@
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
    ac_check_lib_save_LIBS=$LIBS
 -LIBS="-lpvm3  $LIBS"
 +LIBS="-lpvmtrc -lpvm3 -lrpclib $LIBS"
  cat >conftest.$ac_ext <<_ACEOF
  /* confdefs.h.  */
  _ACEOF
 @@ -4674,7 +4674,7 @@

 -                PVM_LIBS="-lpvm3"
 +                PVM_LIBS="-lpvmtrc -lpvm3 -lrpclib"
          else
                  { echo "$as_me:$LINENO: result: \"$PVM_ROOT\"" >&5
  echo "${ECHO_T}\"$PVM_ROOT\"" >&6; }
 @@ -4742,7 +4742,7 @@

                  if test "x$no_pvm" = "xno" ; then
                          PVM_CFLAGS="-I$PVM_ROOT/include"
 -                        PVM_LIBS="-L$PVM_ROOT/lib/$PVM_ARCH -lpvm3"
 +                        PVM_LIBS="-L$PVM_ROOT/lib/$PVM_ARCH -lpvmtrc -lpvm3 -lrpclib"

                          ac_save_CFLAGS="$CFLAGS"
                          CFLAGS="$CFLAGS -L$PVM_ROOT/lib/$PVM_ARCH"
 @@ -4752,7 +4752,7 @@
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
    ac_check_lib_save_LIBS=$LIBS
 -LIBS="-lpvm3  $LIBS"
 +LIBS="-lpvmtrc -lpvm3 -lrpclib $LIBS"
  cat >conftest.$ac_ext <<_ACEOF
  /* confdefs.h.  */
  _ACEOF
 diff -rub tablix2-0.3.3/src/assert.h tablix2-0.3.3-patched/src/assert.h
 --- tablix2-0.3.3/src/assert.h	2006-02-04 15:16:12.000000000 +0100
 +++ tablix2-0.3.3-patched/src/assert.h	2006-06-18 14:56:49.801740800 +0200
 @@ -24,6 +24,8 @@

  #include "error.h"

 +#define __STRING(expr) expr
 +
  #define assert(expr) if(!(expr)) {                          error("Assertion failed: %s, file %s, line %d",                          __STRING(expr), __FILE__, __LINE__);   diff -rub tablix2-0.3.3/src/main.c tablix2-0.3.3-patched/src/main.c
 --- tablix2-0.3.3/src/main.c	2006-05-14 12:27:06.000000000 +0200
 +++ tablix2-0.3.3-patched/src/main.c	2006-06-18 14:59:36.801875200 +0200
 @@ -475,7 +475,7 @@
  	locale=malloc(LINEBUFFSIZE);
          pvm_upkstr(locale);

 -	#ifdef HAVE_SETLOCALE
 +	#if HAVE_SETLOCALE && ENABLE_NLS
  	debug("Setting locale to '%s'", locale);
  	if(!setlocale(LC_ALL, locale)) {
  		info(_("Locale not supported by C library. "
 diff -rub tablix2-0.3.3/ttf/scheme.h tablix2-0.3.3-patched/ttf/scheme.h
 --- tablix2-0.3.3/ttf/scheme.h	2006-04-26 19:26:22.000000000 +0200
 +++ tablix2-0.3.3-patched/ttf/scheme.h	2006-06-18 15:02:51.541897600 +0200
 @@ -14,7 +14,7 @@

  #ifndef _MSC_VER 
  # define USE_STRCASECMP 1 
 -# define USE_STRLWR 1 
 +# define USE_STRLWR 0 
  # define SCHEME_EXPORT
  #else 
  # define USE_STRCASECMP 0 
 @@ -87,7 +87,7 @@
  #endif

  #ifndef USE_STRLWR
 -# define USE_STRLWR 1
 +# define USE_STRLWR 0
  #endif

  #ifndef STDIO_ADDS_CR    /* Define if DOS/Windows? */

HomePage
This page is read-only
Last edited July 1, 2006 9:37 pm by Tomaz