VoxForge
I am trying to follow the instructions listed above for installing HTK. I am using a 32-bit system. I get as far as running
$./configure --prefix=/home/yourusername/bin/htk-3.4
But when I try to run make all, I get about 800 errors. At the top of the list of errors, my terminal says,
"HGraf.c:73:77: error: X11/Xlib.h: No such file or directory
HGraf.c:74:23: error: X11/Xutil.h: No such file or directory
HGraf.c:75:21: error: X11/Xos.h: No such file or directory
HGraf.c:77:27: error: X11/keysymdef.h: No such file or directory"
and then it has several lines of stuff looking like,
"HGraf.c:87: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token"
Does anyone know what's going on here/how I can fix this?
By the way, I coculd not find a module to make my version of GCC compatible with 3.4. Instead, I simply downloaded GCC 3.4 and edited the Makefile so that it would run GCC 3.4 instead of my new version of GCC.
Thanks!
Hi Ramen,
Sorry for the delay in getting back to you, been travelling...
You probably need to install libX11 to your distro.
For Fedora 9, I would use:
#yum install libX11
Note that I think X11 is only required for the HTK graphical audio recorder (HSLab)... so if you are using Audacity, you don't need it.
Ken
i did the yum install but says
[root@localhost HTKDemo]# yum install libX11
Loaded plugins: refresh-packagekit
Setting up Install Process
Package libX11-1.2.2-1.fc11.i586 already installed and latest version
Nothing to do
and when i do make all again the same error...
[root@localhost htk]# make all
(cd HTKLib && make HTKLib.a) \
|| case "" in *k*) fail=yes;; *) exit 1;; esac;
make[1]: Entering directory `/home/Prashant/bin/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: error: X11/Xlib.h: No such file or directory
HGraf.c:74:23: error: X11/Xutil.h: No such file or directory
HGraf.c:75:21: error: X11/Xos.h: No such file or directory
HGraf.c:77:27: error: X11/keysymdef.h: No such file or directory
Please help. Thanks.