Re: [CBLX] Re: mbrola

[ Thread Index | Date Index | More lists.tuxfamily.org/carrefourblinux Archives ]


Raphaël, Klaus!

1. mbrola tourne sur du 64 bit mais c'est du 32 bit émulé il
n'y a pas d'exécutable 64 bit disponible.

2. Quelle distrib demandait Klaus : Aucune bien sûr j'ai une
lfs sur ma machine ce qui n'est pas une distrib. Cela dit Klaus
ton problème avec la compilation des speech_tools ne vient pas
de là. Je le connais parfaitement c'est un problème de gcc. Si
tu fais gcc -- version je parie que tu trouves un truc
supérieur à 4.6.x. Je sais tout à fait que l'actuelle version
des speech-tools ne compilent pas sous 4.7.2 par exemple. J'ai
signalé le problème à Alan W. Black le concepteur de
speech_tools+festival et j'espère que les modifs seront
intégrées à la prochaine version de festival qui devrait sortir
bientôt à ce qu'il m'en a dit. Sinon tu peux continuer la
compilation à la main :

2.1 D'abord patcher speech_tools. Les patches sont en PJ. 

2.1.1. cd /opt/share/speech_tools/base_class 
patch -Np1 -I <chemin>/base_class.patch

2.1.2. même manip en remplaçant base_class par include. 

2.2. Recompiler les speech_tools : 

cd /op/speech_tools

../configure 

make

2.3 Recompiler festival, qui à ce stade à été patché avec
franfest.

cd /op/festival

../configure


make

3. Raphaël, si ça marche chez toi c'est que tu as un gcc un peu
plus obsolète ! Note que c'est indépendant du 64 32, sur le
4.6.3 64 je n'ai aucun problème mais sur le 4.7.2 32 j'ai les
problèmes rencontrés par Klaus. En fait c'est le compilateur
c++ qui est de plus en plus exigeant quant à l'inhéritance et
renvoie maintenant comme erreur des trucs qui étaient juste
warnés avant.


Bon courage à tous et merci de tester franfest ! 

Pierre
diff -auN --recursive --binary base_class/EST_TSimpleMatrix.cc ../speech_tools.modified/base_class/EST_TSimpleMatrix.cc
--- base_class/EST_TSimpleMatrix.cc	2009-02-18 13:56:24.000000000 +0100
+++ ../speech_tools.modified/base_class/EST_TSimpleMatrix.cc	2013-03-15 21:22:41.000000000 +0100
@@ -45,6 +45,10 @@
 #include <fstream>
 #include <iostream>
 #include "EST_cutils.h"
+// PLN
+#include <string.h>
+// Surprisingly not included even if needed by use of memcopy.
+// End PLN
 
 template<class T> 
 void EST_TSimpleMatrix<T>::copy_data(const EST_TSimpleMatrix<T> &a)
@@ -98,7 +102,10 @@
 	{
 	  int copy_r = Lof(this->num_rows(), new_rows);
 
-	  just_resize(new_rows, new_cols, &old_vals);
+	  // just_resize(new_rows, new_cols, &old_vals);
+	  // PLN
+	  this->just_resize(new_rows, new_cols, &old_vals);
+	  // End PLN
 
           for (q=0; q<(copy_r*new_cols*sizeof(T)); q++) /* memcpy */
               ((char *)this->p_memory)[q] = ((char *)old_vals)[q];
@@ -127,9 +134,15 @@
 	  int copy_r = Lof(this->num_rows(), new_rows);
 	  int copy_c = Lof(this->num_columns(), new_cols);
 	  
-	  just_resize(new_rows, new_cols, &old_vals);
-
-	  set_values(old_vals,
+	  // just_resize(new_rows, new_cols, &old_vals);
+	  // PLN
+	  this->just_resize(new_rows, new_cols, &old_vals);
+	  // End PLN
+
+	  // set_values(old_vals,
+	  // PLN
+	  this->set_values(old_vals,
+			   // End PLN
 		     old_row_step, old_column_step,
 		     0, copy_r,
 		     0, copy_c);
diff -auN --recursive --binary base_class/EST_TSimpleVector.cc ../speech_tools.modified/base_class/EST_TSimpleVector.cc
--- base_class/EST_TSimpleVector.cc	2009-02-18 13:52:55.000000000 +0100
+++ ../speech_tools.modified/base_class/EST_TSimpleVector.cc	2013-03-15 21:28:42.000000000 +0100
@@ -45,6 +45,11 @@
 #include <fstream>
 #include "EST_cutils.h"
 
+// PLN
+#include <string.h>
+// Surprisingly not included even if needed by use of memset.
+// End PLN
+
 template<class T> void EST_TSimpleVector<T>::copy(const EST_TSimpleVector<T> &a)
 {
   if (this->p_column_step==1 && a.p_column_step==1)
@@ -70,7 +75,10 @@
   int old_offset = this->p_offset;
   unsigned int q;
 
-  just_resize(newn, &old_vals);
+  // just_resize(newn, &old_vals);
+  // PLN
+  this->just_resize(newn, &old_vals);
+  // End PLN
 
   if (set && old_vals)
     {
diff -auN --recursive --binary include/EST_TIterator.h ../speech_tools.modified/include/EST_TIterator.h
--- include/EST_TIterator.h	2004-05-04 02:00:16.000000000 +0200
+++ ../speech_tools.modified/include/EST_TIterator.h	2013-03-15 19:29:08.000000000 +0100
@@ -209,7 +209,10 @@
 
   /// Create an iterator ready to run over the given container.
   EST_TStructIterator(const Container &over)
-    { begin(over); }
+    /* { begin(over); } */
+    /* PLN */
+    { this->begin(over); }
+  /* End PLN */
 
   const Entry *operator ->() const
     {return &this->current();}
@@ -289,7 +292,10 @@
 
   /// Create an iterator ready to run over the given container.
   EST_TRwStructIterator(Container &over)
-    { begin(over); }
+    /* { begin(over); } */
+    /* PLN */
+    { this->begin(over); }
+  /* End PLN */
 
   Entry *operator ->() const
     {return &this->current();}
diff -auN --recursive --binary include/EST_TNamedEnum.h ../speech_tools.modified/include/EST_TNamedEnum.h
--- include/EST_TNamedEnum.h	2004-09-30 14:53:36.000000000 +0200
+++ ../speech_tools.modified/include/EST_TNamedEnum.h	2013-03-15 19:33:32.000000000 +0100
@@ -130,7 +130,11 @@
 	{this->initialise((const void *)defs); };
   EST_TNamedEnumI(EST_TValuedEnumDefinition<const char *,const char *,INFO> defs[], ENUM (*conv)(const char *))
 	{this->initialise((const void *)defs, conv); };
-  const char *name(ENUM tok, int n=0) const {return value(tok,n); };
+  const char *name(ENUM tok, int n=0) 
+    /* const {return value(tok,n); }; */
+    /* PLN */
+    const {return this->value(tok,n); };
+  /* End PLN */
 
 };
 


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/