В Птн, 24/07/2009 в 14:55 -0300, Igor пишет: > Thanks Nickolay. > > I downloaded the HTK-3.4 and the patch command worked, but when I > tried compile a error occurred in HSLab. Any idea? > > (cd HTKTools && make all) \ > || case "" in *k*) fail=yes;; *) exit 1;; esac; > make[1]: Entering directory > `/home/04080004701/Speech/HTK-3.4/HTKTools' > if [ ! -d /home/04080004701/htkTools/bin -a X_ = X_yes ] ; then mkdir > -p /home/04080004701/htkTools/bin ; fi > if [ xHSLab = xHSLab ] ; then \ > gcc -o HSLab -I../HTKLib -ansi -D_SVID_SOURCE > -DOSS_AUDIO -D'ARCH="i686"' -Wall -Wno-switch -g -O2 -D_HAS_FORTRAN > HSLab.c ../HTKLib/HTKLib.a -L/usr/X11R6/lib -lm -lX11 ; \ > elif [ xHSLab = xHMGenS ] ; then \ > gcc -o HSLab -I../HTKLib -ansi -D_SVID_SOURCE > -DOSS_AUDIO -D'ARCH="i686"' -Wall -Wno-switch -g -O2 -D_HAS_FORTRAN > HSLab.c ../HTKLib/HTKLib.a -L/usr/X11R6/lib -lm > -L/usr/lib/gcc/i486-linux-gnu/3.4.6 > -L/usr/lib/gcc/i486-linux-gnu/3.4.6/../../../../lib > -L/usr/lib/gcc/i486-linux-gnu/3.4.6/../../.. -L/lib/../lib > -L/usr/lib/../lib -lfrtbegin -lg2c -lm -lX11 -lgcc_s ; \ > else \ > gcc -o HSLab -I../HTKLib -ansi -D_SVID_SOURCE > -DOSS_AUDIO -D'ARCH="i686"' -Wall -Wno-switch -g -O2 -D_HAS_FORTRAN > HSLab.c ../HTKLib/HTKLib.a -L/usr/X11R6/lib -lm ; fi > /tmp/cc10iJkL.o: In function `main': > /home/04080004701/Speech/HTK-3.4/HTKTools/HSLab.c:372: undefined > reference to `ResetGraf' > /home/04080004701/Speech/HTK-3.4/HTKTools/HSLab.c:373: undefined > reference to `ResetAudio' > /home/04080004701/Speech/HTK-3.4/HTKTools/HSLab.c:374: undefined > reference to `ResetLabel' > /home/04080004701/Speech/HTK-3.4/HTKTools/HSLab.c:375: undefined > reference to `ResetWave' > /home/04080004701/Speech/HTK-3.4/HTKTools/HSLab.c:376: undefined > reference to `ResetMath' > /home/04080004701/Speech/HTK-3.4/HTKTools/HSLab.c:377: undefined > reference to `ResetMem' > /home/04080004701/Speech/HTK-3.4/HTKTools/HSLab.c:378: undefined > reference to `ResetShell' > collect2: ld returned 1 exit status > make[1]: *** [HSLab] Error 1 > make[1]: Leaving directory `/home/04080004701/Speech/HTK-3.4/HTKTools' > make: *** [htktools] Error 1 > Hello Such problem could be easily resolved by looking into the sources. At least you could comment out the missing functions if they are really missing. Grep for function ResetMath in sources, it should be there. But I suppose the reason for that problem is that you compiled without patch first then applied the patch. Do make clean and rebuild the library, it should help. And, btw, why are you using HTS 2.0 when there is HTS 2.1
Attachment:
signature.asc
Description: =?koi8-r?q?=FC=D4=C1?==?koi8-r?q?_=DE=C1=D3=D4=D8?= =?koi8-r?q?_=D3=CF=CF=C2=DD=C5=CE=C9=D1?= =?koi8-r?q?_=D0=CF=C4=D0=C9=D3=C1=CE=C1?= =?koi8-r?q?_=C3=C9=C6=D2=CF=D7=CF=CA?= =?koi8-r?q?_=D0=CF=C4=D0=C9=D3=D8=C0?=