Blog Archive

Wednesday, March 11, 2015

htk installation problem on ubuntu 14.04 - Ask Ubuntu

htk installation problem on ubuntu 14.04 - Ask Ubuntu:



Question:



I have already download and unpack htk-3.4.1, then according to the htk installation guide I change the directory to this file then type "./configure --prefix=/usr/local/bin.linux" command. it work fine and provide me two necessary commands to install the tool; these are: 1. make all to build htk and 2. make install to install htk, however when I enter the first command it displays this error
(cd HTKLib && make HTKLib.a) \ || case "" in k) fail=yes;; *) exit 1;; esac; make[1]: Entering directory /tmp/htk/HTKLib'
gcc -ansi -D_SVID_SOURCE -DOSS_AUDIO -D'ARCH="i686"' -Wall -Wno-switch -g -O2 -I. -DPHNALG -c -o HGraf.o HGraf.c
HGraf.c:73:77: fatal error: X11/Xlib.h: No such file or directory
#include <X11/Xlib.h> /* the X11 stuff makes string.h also available */
^
compilation terminated.
make[1]: *** [HGraf.o] Error 1
make[1]: Leaving directory
/tmp/htk/HTKLib' make: * [HTKLib/HTKLib.a] Error 1
please help me

Solution:

had the same problem installing HTK on Ubuntu 14.04. I found the answer on Voxforge forum. The setup was designed for 32-bit computers, and to install you need to call a 32 bash. Type this on a terminal window:
linux32 bash
Then proceed with the installation:
./configure --prefix=/home/yourname/htk
make all
sudo make install
You may also need to install 'libx11-dev', before typing these:
sudo apt-get install libx11-dev
http://askubuntu.com/questions/452208/htk-installation-problem-on-ubuntu-14-04
Note:
The final binary file can be find:
/home/yourname/htk/bin
Testing:

By type the following command,

/home/yourname/htk/bin/HCopy

You should see







USAGE: HCopy [options] src [ + src ...] tgt ...



 Option                                       Default



 -a i     Use level i labels                  1

 -e t     End copy at time t                  EOF

 -i mlf   Save labels to mlf s                null

 -l dir   Output target label files to dir    current

 -m t     Set margin of t around x/n segs     0

 -n i [j] Extract i'th [to j'th] label        off

 -s t     Start copy at time t                0

 -t n     Set trace line width to n           70

 -x s [n] Extract [n'th occ of] label  s      off

 -A      Print command line arguments         off

 -C cf   Set config file to cf                default

 -D      Display configuration variables      off

 -F fmt  Set source data format to fmt        as config

 -G fmt  Set source label format to fmt       as config

 -I mlf  Load master label file mlf

 -L dir  Set input label (or net) dir         current

 -O      Set target data format to fmt        as config

 -P      Set target label format to fmt       as config

 -S f    Set script file to f                 none

 -T N    Set trace flags to N                 0

 -V      Print version information            off

 -X ext  Set input label (or net) file ext    lab


No comments:

Post a Comment