We are facing this error due to compiling a 32bit on top of 64 bit Ubuntu machine.
install both 32 and 64 bit compilers.
sudo apt-get install libx11-dev:i386 libx11-dev
VoxForge
when i run make all command i get following error
alok@alok-Lenovo-B560:~/bin/htk-3.4$ mak
(cd HTKTools && make all) \
|| case "" in *k*) fail=yes;; *) exit 1;; esac;
make[1]: Entering directory `/home/alok/bin/htk-3.4/HTKTools'
if [ ! -d /home/alok/bin/htk-3.4/bin -a X_ = X_yes ] ; then mkdir -p /home/alok/bin/htk-3.4/bin ; fi
if [ xHSLab = xHSLab ] ; then \
gcc -o HSLab -ansi -D_SVID_SOURCE -DOSS_AUDIO -D'ARCH="i686"' -Wall -Wno-switch -g -O2 -I../HTKLib HSLab.c ../HTKLib/HTKLib.a -L/usr/X11R6/lib -lm -lX11 ; \
else \
gcc -o HSLab -ansi -D_SVID_SOURCE -DOSS_AUDIO -D'ARCH="i686"' -Wall -Wno-switch -g -O2 -I../HTKLib HSLab.c ../HTKLib/HTKLib.a -L/usr/X11R6/lib -lm ; fi
HSLab.c: In function ‘FileExists’:
HSLab.c:1209:12: warning: variable ‘isEXF’ set but not used [-Wunused-but-set-variable]
HSLab.c: In function ‘DoSpecial’:
HSLab.c:1596:13: warning: ignoring return value of ‘system’, declared with attribute warn_unused_result [-Wunused-result]
/usr/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
make[1]: *** [HSLab] Error 1
make[1]: Leaving directory `/home/alok/bin/htk-3.4/HTKTools'
make: *** [htktools] Error 1
need help....
when i run make all command i get following error
alok@alok-Lenovo-B560:~/bin/htk-3.4$ make all
(cd HTKTools && make all) \
|| case "" in *k*) fail=yes;; *) exit 1;; esac;
make[1]: Entering directory `/home/alok/bin/htk-3.4/HTKTools'
if [ ! -d /home/alok/bin/htk-3.4/bin -a X_ = X_yes ] ; then mkdir -p /home/alok/bin/htk-3.4/bin ; fi
if [ xHSLab = xHSLab ] ; then \
gcc -o HSLab -ansi -D_SVID_SOURCE -DOSS_AUDIO -D'ARCH="i686"' -Wall
-Wno-switch -g -O2 -I../HTKLib HSLab.c ../HTKLib/HTKLib.a
-L/usr/X11R6/lib -lm -lX11 ; \
else \
gcc -o HSLab -ansi -D_SVID_SOURCE -DOSS_AUDIO -D'ARCH="i686"' -Wall
-Wno-switch -g -O2 -I../HTKLib HSLab.c ../HTKLib/HTKLib.a
-L/usr/X11R6/lib -lm ; fi
HSLab.c: In function ‘FileExists’:
HSLab.c:1209:12: warning: variable ‘isEXF’ set but not used [-Wunused-but-set-variable]
HSLab.c: In function ‘DoSpecial’:
HSLab.c:1596:13: warning: ignoring return value of ‘system’, declared with attribute warn_unused_result [-Wunused-result]
/usr/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
make[1]: *** [HSLab] Error 1
make[1]: Leaving directory `/home/alok/bin/htk-3.4/HTKTools'
make: *** [htktools] Error 1
need help....
from this post: Speech Recognition using the Raspberry Pi
try this:
./configure --without-x --disable-hslab
make all
make install
im also having the same problem... need help
katada@katada-Aspire-4750:~/Desktop/thesis/htk$ make all
(cd HTKLib && make HTKLib.a) \
|| case "" in *k*) fail=yes;; *) exit 1;; esac;
make[1]: Entering directory `/home/katada/Desktop/thesis/htk/HTKLib'
gcc -m32 -ansi -D_SVID_SOURCE -DOSS_AUDIO -D'ARCH="x86_64"' -Wall -Wno-switch -g -O2 -I. -DPHNALG -c -o HGraf.null.o HGraf.null.c
In file included from /usr/include/stdio.h:28:0,
from HShell.h:40,
from HGraf.null.c:25:
/usr/include/features.h:324:26: fatal error: bits/predefs.h: No such file or directory
compilation terminated.
make[1]: *** [HGraf.null.o] Error 1
make[1]: Leaving directory `/home/katada/Desktop/thesis/htk/HTKLib'
make: *** [HTKLib/HTKLib.a] Error 1
katada@katada-Aspire-4750:~/Desktop/thesis/htk$
need help..........
katada@katada-Aspire-4750:~/Desktop/thesis/htk$ make all
(cd HTKLib && make HTKLib.a) \
|| case "" in *k*) fail=yes;; *) exit 1;; esac;
make[1]: Entering directory `/home/katada/Desktop/thesis/htk/HTKLib'
gcc
-m32 -ansi -D_SVID_SOURCE -DOSS_AUDIO -D'ARCH="x86_64"' -Wall
-Wno-switch -g -O2 -I. -DPHNALG -c -o HGraf.null.o HGraf.null.c
In file included from /usr/include/stdio.h:28:0,
from HShell.h:40,
from HGraf.null.c:25:
/usr/include/features.h:324:26: fatal error: bits/predefs.h: No such file or directory
compilation terminated.
make[1]: *** [HGraf.null.o] Error 1
make[1]: Leaving directory `/home/katada/Desktop/thesis/htk/HTKLib'
make: *** [HTKLib/HTKLib.a] Error 1
katada@katada-Aspire-4750:~/Desktop/thesis/htk$
need help..........