VoxForge
You say you have repaired the faulty Makefile, but HTK thinks the error is still there. Go back and check that you made the correction as required; note that HTK uses a number of different Makefiles, make sure you edit the right one in the right directory according to the instructions given.
--- (Edited on 2016-11-21 2:11 pm [GMT-0500] by colbec) ---
Hi colbec!
yes im sure i reedited the correct makefile.
Hi nsh!
I tried the comand you sugested and this happened:
kepa@kepa-VirtualBox:~/htk$ sed -i 's: :\t:g' HLMTools/Makefile
kepa@kepa-VirtualBox:~/htk$ make
(cd HTKTools && make all) \
|| case "" in *k*) fail=yes;; *) exit 1;; esac;
make[1]: Entering directory '/home/kepa/htk/HTKTools'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/kepa/htk/HTKTools'
(cd HLMTools && make all) \
|| case "" in *k*) fail=yes;; *) exit 1;; esac;
make[1]: Entering directory '/home/kepa/htk/HLMTools'
if [ ! -d /usr/local/bin -a X_ = X_yes ] ; then mkdir -p /usr/local/bin ; fi
gcc -o Cluster -m32 -ansi -D_SVID_SOURCE -DOSS_AUDIO -D'ARCH="x86_64"' -Wall -Wno-switch -g -O2 -I../HTKLib -I../HLMLib Cluster.c ../HTKLib/HTKLib.a ../HLMLib/HLMLib.a -L/usr/X11R6/lib ../HTKLib/HTKLib.a ../HLMLib/HLMLib.a -lm
In file included from /usr/include/stdio.h:27:0,
from ../HTKLib/HShell.h:40,
from Cluster.c:36:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^~~~~~~
Cluster.c: In function ‘do_recovery’:
Cluster.c:870:4: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(tmp, 256, file);
^~~~~~~~~~~~~~~~~~~~~
Cluster.c:874:4: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(tmp, 256, file);
^~~~~~~~~~~~~~~~~~~~~
Cluster.c:887:4: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(tmp, 256, file);
^~~~~~~~~~~~~~~~~~~~~
Cluster.c:896:4: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(tmp, 256, file);
^~~~~~~~~~~~~~~~~~~~~
Cluster.c:906:4: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(tmp, 256, file);
^~~~~~~~~~~~~~~~~~~~~
Cluster.c: In function ‘import_classmap’:
Cluster.c:1354:13: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(line, max_line_len, file);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if [ X_ = X_yes ] ; then /usr/bin/install -c -m 755 Cluster /usr/local/bin ; fi
if [ ! -d /usr/local/bin -a X_ = X_yes ] ; then mkdir -p /usr/local/bin ; fi
gcc -o HLMCopy -m32 -ansi -D_SVID_SOURCE -DOSS_AUDIO -D'ARCH="x86_64"' -Wall -Wno-switch -g -O2 -I../HTKLib -I../HLMLib HLMCopy.c ../HTKLib/HTKLib.a ../HLMLib/HLMLib.a -L/usr/X11R6/lib ../HTKLib/HTKLib.a ../HLMLib/HLMLib.a -lm
In file included from /usr/include/stdio.h:27:0,
from HLMCopy.c:35:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^~~~~~~
HLMCopy.c: In function ‘main’:
HLMCopy.c:191:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for (c=fmt; *c!=0; *c=toupper(*c), c++);
^~~
HLMCopy.c:192:6: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
if (strcmp(fmt, LM_TXT_TEXT)==0)
^~
if [ X_ = X_yes ] ; then /usr/bin/install -c -m 755 HLMCopy /usr/local/bin ; fi
if [ ! -d /usr/local/bin -a X_ = X_yes ] ; then mkdir -p /usr/local/bin ; fi
gcc -o LAdapt -m32 -ansi -D_SVID_SOURCE -DOSS_AUDIO -D'ARCH="x86_64"' -Wall -Wno-switch -g -O2 -I../HTKLib -I../HLMLib LAdapt.c ../HTKLib/HTKLib.a ../HLMLib/HLMLib.a -L/usr/X11R6/lib ../HTKLib/HTKLib.a ../HLMLib/HLMLib.a -lm
In file included from /usr/include/stdio.h:27:0,
from ../HTKLib/HShell.h:40,
from LAdapt.c:35:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^~~~~~~
if [ X_ = X_yes ] ; then /usr/bin/install -c -m 755 LAdapt /usr/local/bin ; fi
if [ ! -d /usr/local/bin -a X_ = X_yes ] ; then mkdir -p /usr/local/bin ; fi
gcc -o LBuild -m32 -ansi -D_SVID_SOURCE -DOSS_AUDIO -D'ARCH="x86_64"' -Wall -Wno-switch -g -O2 -I../HTKLib -I../HLMLib LBuild.c ../HTKLib/HTKLib.a ../HLMLib/HLMLib.a -L/usr/X11R6/lib ../HTKLib/HTKLib.a ../HLMLib/HLMLib.a -lm
In file included from /usr/include/stdio.h:27:0,
from ../HTKLib/HShell.h:40,
from LBuild.c:35:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^~~~~~~
if [ X_ = X_yes ] ; then /usr/bin/install -c -m 755 LBuild /usr/local/bin ; fi
if [ ! -d /usr/local/bin -a X_ = X_yes ] ; then mkdir -p /usr/local/bin ; fi
gcc -o LFoF -m32 -ansi -D_SVID_SOURCE -DOSS_AUDIO -D'ARCH="x86_64"' -Wall -Wno-switch -g -O2 -I../HTKLib -I../HLMLib LFoF.c ../HTKLib/HTKLib.a ../HLMLib/HLMLib.a -L/usr/X11R6/lib ../HTKLib/HTKLib.a ../HLMLib/HLMLib.a -lm
In file included from /usr/include/stdio.h:27:0,
from ../HTKLib/HShell.h:40,
from LFoF.c:35:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^~~~~~~
if [ X_ = X_yes ] ; then /usr/bin/install -c -m 755 LFoF /usr/local/bin ; fi
if [ ! -d /usr/local/bin -a X_ = X_yes ] ; then mkdir -p /usr/local/bin ; fi
gcc -o LGCopy -m32 -ansi -D_SVID_SOURCE -DOSS_AUDIO -D'ARCH="x86_64"' -Wall -Wno-switch -g -O2 -I../HTKLib -I../HLMLib LGCopy.c ../HTKLib/HTKLib.a ../HLMLib/HLMLib.a -L/usr/X11R6/lib ../HTKLib/HTKLib.a ../HLMLib/HLMLib.a -lm
In file included from /usr/include/stdio.h:27:0,
from ../HTKLib/HShell.h:40,
from LGCopy.c:35:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^~~~~~~
if [ X_ = X_yes ] ; then /usr/bin/install -c -m 755 LGCopy /usr/local/bin ; fi
if [ ! -d /usr/local/bin -a X_ = X_yes ] ; then mkdir -p /usr/local/bin ; fi
gcc -o LGList -m32 -ansi -D_SVID_SOURCE -DOSS_AUDIO -D'ARCH="x86_64"' -Wall -Wno-switch -g -O2 -I../HTKLib -I../HLMLib LGList.c ../HTKLib/HTKLib.a ../HLMLib/HLMLib.a -L/usr/X11R6/lib ../HTKLib/HTKLib.a ../HLMLib/HLMLib.a -lm
In file included from /usr/include/stdio.h:27:0,
from ../HTKLib/HShell.h:40,
from LGList.c:35:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^~~~~~~
if [ X_ = X_yes ] ; then /usr/bin/install -c -m 755 LGList /usr/local/bin ; fi
if [ ! -d /usr/local/bin -a X_ = X_yes ] ; then mkdir -p /usr/local/bin ; fi
gcc -o LGPrep -m32 -ansi -D_SVID_SOURCE -DOSS_AUDIO -D'ARCH="x86_64"' -Wall -Wno-switch -g -O2 -I../HTKLib -I../HLMLib LGPrep.c ../HTKLib/HTKLib.a ../HLMLib/HLMLib.a -L/usr/X11R6/lib ../HTKLib/HTKLib.a ../HLMLib/HLMLib.a -lm
In file included from /usr/include/stdio.h:27:0,
from ../HTKLib/HShell.h:40,
from LGPrep.c:35:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^~~~~~~
if [ X_ = X_yes ] ; then /usr/bin/install -c -m 755 LGPrep /usr/local/bin ; fi
if [ ! -d /usr/local/bin -a X_ = X_yes ] ; then mkdir -p /usr/local/bin ; fi
gcc -o LLink -m32 -ansi -D_SVID_SOURCE -DOSS_AUDIO -D'ARCH="x86_64"' -Wall -Wno-switch -g -O2 -I../HTKLib -I../HLMLib LLink.c ../HTKLib/HTKLib.a ../HLMLib/HLMLib.a -L/usr/X11R6/lib ../HTKLib/HTKLib.a ../HLMLib/HLMLib.a -lm
In file included from /usr/include/stdio.h:27:0,
from ../HTKLib/HShell.h:40,
from LLink.c:35:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^~~~~~~
LLink.c: In function ‘main’:
LLink.c:145:7: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(file, "Word|Class %20s", type);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LLink.c:179:7: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(file, "Word|Class %20s\n", type);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if [ X_ = X_yes ] ; then /usr/bin/install -c -m 755 LLink /usr/local/bin ; fi
if [ ! -d /usr/local/bin -a X_ = X_yes ] ; then mkdir -p /usr/local/bin ; fi
gcc -o LMerge -m32 -ansi -D_SVID_SOURCE -DOSS_AUDIO -D'ARCH="x86_64"' -Wall -Wno-switch -g -O2 -I../HTKLib -I../HLMLib LMerge.c ../HTKLib/HTKLib.a ../HLMLib/HLMLib.a -L/usr/X11R6/lib ../HTKLib/HTKLib.a ../HLMLib/HLMLib.a -lm
In file included from /usr/include/stdio.h:27:0,
from LMerge.c:35:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^~~~~~~
LMerge.c: In function ‘main’:
LMerge.c:153:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for (c=fmt; *c!=0; *c=toupper(*c),c++);
^~~
LMerge.c:154:6: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
if (strcmp(fmt, LM_TXT_TEXT)==0)
^~
if [ X_ = X_yes ] ; then /usr/bin/install -c -m 755 LMerge /usr/local/bin ; fi
if [ ! -d /usr/local/bin -a X_ = X_yes ] ; then mkdir -p /usr/local/bin ; fi
gcc -o LNewMap -m32 -ansi -D_SVID_SOURCE -DOSS_AUDIO -D'ARCH="x86_64"' -Wall -Wno-switch -g -O2 -I../HTKLib -I../HLMLib LNewMap.c ../HTKLib/HTKLib.a ../HLMLib/HLMLib.a -L/usr/X11R6/lib ../HTKLib/HTKLib.a ../HLMLib/HLMLib.a -lm
In file included from /usr/include/stdio.h:27:0,
from ../HTKLib/HShell.h:40,
from LNewMap.c:35:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^~~~~~~
if [ X_ = X_yes ] ; then /usr/bin/install -c -m 755 LNewMap /usr/local/bin ; fi
if [ ! -d /usr/local/bin -a X_ = X_yes ] ; then mkdir -p /usr/local/bin ; fi
gcc -o LNorm -m32 -ansi -D_SVID_SOURCE -DOSS_AUDIO -D'ARCH="x86_64"' -Wall -Wno-switch -g -O2 -I../HTKLib -I../HLMLib LNorm.c ../HTKLib/HTKLib.a ../HLMLib/HLMLib.a -L/usr/X11R6/lib ../HTKLib/HTKLib.a ../HLMLib/HLMLib.a -lm
In file included from /usr/include/stdio.h:27:0,
from LNorm.c:35:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^~~~~~~
if [ X_ = X_yes ] ; then /usr/bin/install -c -m 755 LNorm /usr/local/bin ; fi
if [ ! -d /usr/local/bin -a X_ = X_yes ] ; then mkdir -p /usr/local/bin ; fi
gcc -o LPlex -m32 -ansi -D_SVID_SOURCE -DOSS_AUDIO -D'ARCH="x86_64"' -Wall -Wno-switch -g -O2 -I../HTKLib -I../HLMLib LPlex.c ../HTKLib/HTKLib.a ../HLMLib/HLMLib.a -L/usr/X11R6/lib ../HTKLib/HTKLib.a ../HLMLib/HLMLib.a -lm
In file included from /usr/include/stdio.h:27:0,
from LPlex.c:35:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^~~~~~~
LPlex.c: In function ‘Initialise’:
LPlex.c:347:15: warning: variable ‘nid’ set but not used [-Wunused-but-set-variable]
NameId *na,nid;
^~~
if [ X_ = X_yes ] ; then /usr/bin/install -c -m 755 LPlex /usr/local/bin ; fi
if [ ! -d /usr/local/bin -a X_ = X_yes ] ; then mkdir -p /usr/local/bin ; fi
gcc -o LSubset -m32 -ansi -D_SVID_SOURCE -DOSS_AUDIO -D'ARCH="x86_64"' -Wall -Wno-switch -g -O2 -I../HTKLib -I../HLMLib LSubset.c ../HTKLib/HTKLib.a ../HLMLib/HLMLib.a -L/usr/X11R6/lib ../HTKLib/HTKLib.a ../HLMLib/HLMLib.a -lm
In file included from /usr/include/stdio.h:27:0,
from ../HTKLib/HShell.h:40,
from LSubset.c:35:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^~~~~~~
if [ X_ = X_yes ] ; then /usr/bin/install -c -m 755 LSubset /usr/local/bin ; fi
make[1]: Leaving directory '/home/kepa/htk/HLMTools'
It seems like the error messages disapeared, but then when I try to run the make install comand this happens:
kepa@kepa-VirtualBox:~/htk$ make install
(cd HTKTools && make all) \
|| case "" in *k*) fail=yes;; *) exit 1;; esac;
make[1]: Entering directory '/home/kepa/htk/HTKTools'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/kepa/htk/HTKTools'
(cd HTKTools && make install) \
|| case "" in *k*) fail=yes;; *) exit 1;; esac;
make[1]: Entering directory '/home/kepa/htk/HTKTools'
if [ ! -d /usr/local/bin ] ; then mkdir /usr/local/bin ; fi
for program in HSLab HBuild HCompV HCopy HDMan HERest HHEd HInit HLEd HList HLRescore HLStats HMMIRest HParse HQuant HRest HResults HSGen HSmooth HVite ; do /usr/bin/install -c -m 755 ${program} /usr/local/bin ; done
/usr/bin/install: ezin da '/usr/local/bin/HSLab' kendu: Permission denied
/usr/bin/install: ezin da '/usr/local/bin/HBuild' kendu: Permission denied
/usr/bin/install: ezin da '/usr/local/bin/HCompV' kendu: Permission denied
/usr/bin/install: ezin da '/usr/local/bin/HCopy' kendu: Permission denied
/usr/bin/install: ezin da '/usr/local/bin/HDMan' kendu: Permission denied
/usr/bin/install: ezin da '/usr/local/bin/HERest' kendu: Permission denied
/usr/bin/install: ezin da '/usr/local/bin/HHEd' kendu: Permission denied
/usr/bin/install: ezin da '/usr/local/bin/HInit' kendu: Permission denied
/usr/bin/install: ezin da '/usr/local/bin/HLEd' kendu: Permission denied
/usr/bin/install: ezin da '/usr/local/bin/HList' kendu: Permission denied
/usr/bin/install: ezin da '/usr/local/bin/HLRescore' kendu: Permission denied
/usr/bin/install: ezin da '/usr/local/bin/HLStats' kendu: Permission denied
/usr/bin/install: ezin da '/usr/local/bin/HMMIRest' kendu: Permission denied
/usr/bin/install: ezin da '/usr/local/bin/HParse' kendu: Permission denied
/usr/bin/install: ezin da '/usr/local/bin/HQuant' kendu: Permission denied
/usr/bin/install: ezin da '/usr/local/bin/HRest' kendu: Permission denied
/usr/bin/install: ezin da '/usr/local/bin/HResults' kendu: Permission denied
/usr/bin/install: ezin da '/usr/local/bin/HSGen' kendu: Permission denied
/usr/bin/install: ezin da '/usr/local/bin/HSmooth' kendu: Permission denied
/usr/bin/install: ezin da '/usr/local/bin/HVite' kendu: Permission denied
Makefile:76: recipe for target 'install' failed
make[1]: *** [install] Error 1
make[1]: Leaving directory '/home/kepa/htk/HTKTools'
Makefile:122: recipe for target 'install-htktools' failed
make: *** [install-htktools] Error 1
note: "ezin da" means "it can not" and "kendu" means "quit"
It looks like im close to get the binaries i need, but still something is wrong. It seems that I have to give the permission to be executed in some files but Im not sure.
--- (Edited on 11/21/2016 4:55 pm [GMT-0600] by kiguaran001) ---
/usr/bin/x86_64-linux-gnu-ld: skipping incompatible //usr/lib/x86_64-linux-gnu/libX11.so when searching for -lX11
/usr/bin/x86_64-linux-gnu-ld: skipping incompatible //usr/lib/x86_64-linux-gnu/libX11.a when searching for -lX11
/usr/bin/x86_64-linux-gnu-ld: cannot find -lX11
collect2: error: ld returned 1 exit status
Makefile:56: recipe for target 'HSLab' failed
make[1]: *** [HSLab] Error 1
make[1]: Leaving directory '/home/aman/Desktop/HTK-3.4.1/htk/HTKTools'
Makefile:108: recipe for target 'htktools' failed
make: *** [htktools] Error 1
#Please Help me on this#
--- (Edited on 6/1/2018 11:29 am [GMT-0500] by ) ---