[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting started



For the eSpeak server, it turns out that I had patched
linux-espeak/tclespeak.cpp to overcome compilation problems.

This was just a quick hack to get it to compile, but it may work for you.
Here's the patch.

Once it has compiled successfully, chmod +x servers/espeak and run it to
verify that it works.

Index: tclespeak.cpp
===================================================================
--- tclespeak.cpp	(revision 6067)
+++ tclespeak.cpp	(working copy)
@@ -37,7 +37,7 @@
 
 #include <sys/time.h>
 #include <dlfcn.h>
-#include <tcl.h>
+#include <tcl8.3/tcl.h>
 #include <string.h>
 #include <stdlib.h>
 #include <string>
@@ -569,7 +569,7 @@
     {
       char buffer_i[3];
       snprintf(buffer_i, 3, "%d", i); 
-      Tcl_SetVar2(interp, "langalias", voices[i]->languages, buffer_i, 0);
+      Tcl_SetVar2(interp, "langalias", (char *) voices[i]->languages, buffer_i, 0);
     }
 
   langInfoMax = i;
@@ -593,7 +593,7 @@
 	  continue;
 	}
 
-      char* aLangCode = 1 + voices[i]->languages;
+      char* aLangCode = 1 + (char *) voices[i]->languages;
 
       snprintf(buffer_i, 3, "%d", aLang); 
       snprintf(buffer_j, 3, "%d", j++); 
@@ -605,7 +605,7 @@
 	  Tcl_SetVar2(interp, "langcode", "current", aLangCode, 0);
 	}
 
-      Tcl_SetVar2(interp, "langlabel", buffer_j, voices[i]->name, 0);
+      Tcl_SetVar2(interp, "langlabel", buffer_j, (char *)voices[i]->name, 0);
       Tcl_SetVar2(interp, "langcode", buffer_j, aLangCode, 0);
       Tcl_SetVar2(interp, "langsynth", "top", buffer_j, 0);
     }


If you have questions about this archive or had problems using it, please send mail to:

priestdo@cs.vassar.edu No Soliciting!

Emacspeak List Archive | 2007 | 2006 | 2005 | 2004 | 2003 | 2002 | 2001 | 2000 | 1999 | 1998 | Pre 1998

Emacspeak Files | Emacspeak Blog | Search the archive