To compile the eSpeak Emacspeak server (tclespeak.cpp) under Debian Sid, I had to make the changes below. These are not intended for inclusion; they are just quick fixes designed to make it compile. The location of the tcl.h header should also be set by the Emacspeak configure process, if possible, as it is different under Debian (i.e., /usr/include/tcl8.3/tcl.8 for tcl 8.3, and mutatis mutandis for tcl 8.4). The compiler gives numerous warnings about type conversions throughout tclespeak.cpp; I have fixed only those which give fatal errors, and by the brute force method, not the proper method of understanding the code and correcting it. Index: tclespeak.cpp =================================================================== --- tclespeak.cpp (revision 5432) +++ 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); } ----------------------------------------------------------------------------- To unsubscribe from the emacspeak list or change your address on the emacspeak list send mail to "emacspeak-request@xxxxxxxxxxx" with a subject of "unsubscribe" or "help"
If you have questions about this archive or had problems using it, please send mail to:
priestdo@xxxxxxxxxxx No Soliciting!Emacspeak List Archive | 2007 | 2006 | 2005 | 2004 | 2003 | 2002 | 2001 | 2000 | 1999 | 1998 | Pre 1998