Category Archives: HTK

HTK on MAC

뭔 소린지 하나도 모르겠지만, 일단 되니까 복사해둠

 

참조 : http://orangegeek.wordpress.com/2011/03/11/install-compile-htk3-4-in-mac/

나온대로 진행, 그런데 에러 발생 libx11 관련된 에러인듯

 

내가 했던 순서는

1 ) MacPorts Install

2) > sudo port install xorg-libx11

그리고 아래

3)
Install XQuartz: http://xquartz.macosforge.org/landing/ (may require you to log out of the machine & log back in again)
Then enter the following command in the Terminal:
export CPPFLAGS=-I/opt/X11/include
Then pick up Ingrid’s instructions from step 7:
./configure (step 7)
make all (step 8)
sudo make install (step 9)
(참조: https://groups.google.com/forum/#!topic/fave-users/AsRFikh7Yus)

그런데 x11은 이미 install 되어있었는데,?

이때 make all 하면서 에러나서 아래 4)처럼.

 

4)
changed line 21 of HTKLib/strarr.c to:

#include <malloc/malloc.h>
(참조: http://speechtechie.wordpress.com/2010/06/23/disabling-hslab-to-compile-htk/)

 

5) 잘되면 아래 스크립트가 실행된다? – 첫번째 참조 사이트

$ cd HTKDemo
$ mkdir -p hmms/{tmp,hmm.{0,1,2,3}} proto acc test
$ perl runDemo configs/monPlainM1S1.dcf