Compiling HTK 3.4 on Windows XP

This post is now available here.

28 Responses to “Compiling HTK 3.4 on Windows XP”

  1. Nelson Neto Says:

    Hi, could you help me please.
    You could send me the source files without the multiple carriage returns (’\r’) at line ends??? Or where i can get the HTK-3.3 version???
    Because i followed all the steps but i can’t run the HSLab.exe
    When i tried i received the error above:

    C:\Toolkit\htk>HSLab genesis.sig
    ERROR [+6870] MakeXGraf: Not compiled with X11 support: use HGraf.X.c
    FATAL ERROR - Terminating program HSLab

  2. Ivan Says:

    Hi Nelson, thanks for your post.

    Your error is not due to the line-ends, it’s because HTK has been compiled without support for X — in fact I get the same error when I try to run HSLab on an audio file. I get the same error whether I use the cygwin or the VSExpress version of HSLab.

    I can only think of two things to suggest:
    (a) Run it under Linux (which will have X), or;
    (b) if you’re running under cygwin, install X in cygwin,
    recompile htk without making Mark Huckvale’s changes,
    and try again.

    Let me know how you get on — especially if you try plan (b)!

  3. Bereket Kasaye Says:

    Do I need GCC in the case of windows.
    What is the corresponding command for ./configure for window XP.

    Thank you.

  4. Ivan Says:

    Kasaye:

    If you’re compiling within cygwin, use gcc, and you can use ./configure; make; make install - cygwin is a unix environment.

    If you’re using VS, that provides the compiler and the nmake command (see above).

    Ivan

  5. Pradnya Says:

    how to use Cygwin to compile HTK?
    is there any other alternative?

  6. Ivan Says:

    You can also use MS Visual Studio. The article should have a table of contents. Look for the section in the article above ‘Using Visual Studio Express’.

    Ivan

  7. Milton Says:

    hello, how i can install X in cygwin, or exist any other solution for run hslab.exe in windows, without use cygwin
    thanks

  8. amada Says:

    hello,it’s the first time i use HTK.
    I compile it as what sayes in the README.But it doesn’t metioned about cygwin.Shoud i have to use it?
    My english is not so good and i hope you can understand me.
    Thank you!

  9. Ivis Says:

    Hi, I did this C:\path\to\htk\HTKLib>nmake /f htk_htklib_nt.mkf clean but the error continues, can someone help me please?
    Thank you!!!!

  10. daddou Says:

    Hi, I hope that you can help me;
    how can i read waveforms enregistred with praat using htk3.3 version

  11. Ivan Says:

    Dear All,

    Thanks for your comments.

    I’ve reformatted the post slightly, with a table of contents, to make it easier to use.

    I haven’t covered getting hslab to run on Windows, which I think is a separate issue. I hope to look into that in the near future. In the meantime, I recommend Praat for labelling, and Praat or SpeechRecorder for recording.

  12. houssem Says:

    hi,
    When I enter this command “nmake /f htk_htklib_nt.mkf all”, I have this error : htk_htklib_nt.mkf : fatal error U1035: ‘expected : or = seperator
    So can you please help me

  13. Nico Says:

    Hi, when i try to record some signal with HTK tool HSLab,
    there occurs an error when i push the “rec” button:

    $ HSLab blah.sig
    ERROR [+6015] StartAudioInput: null audio device
    FATAL ERROR - Terminating program HSLab

    no idea how to fix this problem…

    p.s: i use HTK-3.4 with cygwin

    thanks a lot

  14. Ivan Says:

    Houssem: Have you removed the extra carriage returns (’\r’s) from line ends? If not, please re-read the section ‘Mac’ Format above.

    Nico: Have you read the introduction to the article, where I say, “These notes do not cover getting hslab to run on Windows”?

  15. Eric Young Says:

    hi,Ivan.

    when i recorded the speech, i received the error just like what the first post said.

    C:\Toolkit\htk>HSLab yes01.sig
    ERROR [+6870] MakeXGraf: Not compiled with X11 support: use HGraf.X.c
    FATAL ERROR - Terminating program HSLab

    would you plz show me how to deal with it???
    thx.

  16. Ivan Says:

    Eric: read the introduction , where I say, “These notes do not cover getting HSLab to run on Windows, …”.

    From now I on shall not approve comments asking about HSLab.

  17. Mahdi Heravi Says:

    Hi,
    could you help me please.
    You could send me the source files without the multiple carriage returns (’\r’) at line ends???

    When I enter this command “nmake /f htk_htklib_nt.mkf all”, I have this error : htk_htklib_nt.mkf : fatal error U1035: ‘expected : or = seperator
    i couldn’t run Python script file for strip out “\r” from all source files.

  18. Ivan Says:

    Mahdi

    Thanks for your comment.

    There was a typo in the convert() function in the script! It should work properly now. Many apologies.

    Ivan

  19. Ravi Says:

    Hi,
    I used the python script to remove the carriage returns… They do get removed but I still continue to get the same error as Mahdi.
    Could u please guide?

  20. Ivan Says:

    Ravi

    If you’ve run the (corrected version of) the script, or otherwise removed the spurious line-endings, then nmake should run fine. Look at which source file is causing your error; look at that file in a text editor; check the line-endings.

    If the line-endings are OK, then I can’t explain your error.

    Ivan

  21. Ravi Says:

    very sorry to bother again…
    If it helps the exact error I get is:
    htk_htklib_nt.mkf :fatal error U1035:syntax error:expected ‘:’ or ‘=’ separator

    Used the corrected version n checked the source files,make files for the line-endings..there doesnt seem to be a problem in them

  22. Ravi Says:

    the error is
    htk_htklib_nt.mkfb6b:(where the b are for angular brackets,didnt get printed above )

  23. amy Says:

    sir will you please help me? sir when i tried to run the HTK Demo, i found that some of the files are missing and they are accs,hmmms,proto and test.will you be able to help me in finding these files… thank you for spending time to read this message

  24. .:: m3rLinEz ::. Says:

    Hi Ivan, I have successfully built HTK 3.4 following your advice. I convert the Mac files to Windows ones using Notepad++ and post the method here. I thought the readers might interest :)

  25. Ivan Says:

    M3rLinEz:

    Thanks for your comment, and that’s a useful-looking technique.

    Ivan

  26. seliz Says:

    Hello Ivan,

    After getting rid of a lot of errors, I finally managed to do things on read me file. However, now there is an error while running HTKDemo which is as below:

    can’t open proto at .\MakeProtoHMMSet line 101, line
    can’t open hmms\hmm.0

    Thanks in advance for your help

    best regards
    seliz

  27. Fouly Says:

    Hi Ivan

    I followed the instructions that m3rLinEz said but still have the same error “htk_htklib_nt.mkf : fatal error U1035: ‘expected : or = seperator”

    Thanks in advance

  28. Ivan Says:

    Dear All

    Thank you for your continued interest in this post. I shall be working with HTK again later this year. I shall write an update of this post and hope to answer your comments then.

    Best wishes

    Ivan