WIN8 (x64) under Compile htk3.4.1

Source: Internet
Author: User
Tags perl interpreter

Win8 ( x64 ) under Compile htk3.4.1

Reference Tutorial:

  1. Htkbook
    Http://htk.eng.cam.ac.uk/download.shtml
  2. Windows Compiled htk3.4 Dummies tutorial
    Http://wenku.baidu.com/link?url=qNDgSxipOLK3wFNBd7GSzzlay9SMatcgUtE_ Qmgcinq8lqfhze5km-bo8cf6z8zdycfm5-ztrdzn7jabo6qdnr2ztss9eunce0l8wsh-gxm
  3. HTK Study Notes (i) Install HTK detailed experience tutorial under Win32 (Win7)
    Http://blog.sina.com.cn/s/blog_436992740102uw1j.html
  4. vc++6.0 environment variable Configuration
    Http://wenku.baidu.com/link?url= 00kz1wfeoqvfb6o8txpls7wofwlz0g4piqowgqapc59q0kxclnjbvuuoucacot3f3i8jj6bi7mbt5z40of35p3yckwfpfz-h5qsi5rkfyvs

Note: Required tools and tutorials full version link Http://pan.baidu.com/s/1qWn3JjQ password: da32

A. Download the HTK file and read the README Introduction

Download HTK and htk–samples Two compressed files to the official website, save to F:\dialect\htk\HTK directory (and unzip). Http://htk.eng.cam.ac.uk/download.shtml

Read the readme introduction (I use the WordPad), the important content is as follows (content is the editing and installation under Windows):

Here are some prerequisites for installing under Windows (refer to "Compiling htk3.4 in Windows"--ict Superyang):

(1) HTK compiled tests under Visual Studio (primarily to use NMAKE)

(2) When testing demo, need to install ActivePerl (Perl interpreter, in order to run test script)

(3) Need 7-zip or WinZip decompression tool

(4) need to understand some DOS command-line knowledge

(5) path needs to include paths C:\Program Files\Microsoft Visual Studio. NET 2003\vc7\bin (Visual Studio.NET 2003) or C:\Program files\ Microsoft Visual Studio\vc98\bin (VC6.0)

--The recommended use of vc++6.0, I myself in the process of doing a variety of problems, and finally back to vc6.0 to do. But in my personal understanding, this step should be able to use vs at the command line to compile, so which version of VS should not be a big problem.

The second part is what you do at compile time.

From the above, we need to install ActivePerl and vc++6.0.

two. Installing ActivePerl and vc++6.0

Download and installation of vc++6.0 can be consulted

Teach you how to install visual c++6.0 on win8/8.1
Http://jingyan.baidu.com/article/7908e85c753858af481ad200.html

ActivePerl Direct Baidu Search installation can be.

In this step, many tutorials have mentioned the need to install UltraEdit (a very powerful text editor)

I didn't use the editor because I did not see the following problem in the fool's tutorial.

three. Check if the compilation tool is ready (using vc++6.0)

The settings for the VC6.0 environment variable are as follows (follow the tutorial step-by-step):

Http://wenku.baidu.com/link?url= 00kz1wfeoqvfb6o8txpls7wofwlz0g4piqowgqapc59q0kxclnjbvuuoucacot3f3i8jj6bi7mbt5z40of35p3yckwfpfz-h5qsi5rkfyvs

CL test times wrong to find Mspdb60.dll, solution:

Find Mspdb60.dll, in C:\Program Files\Microsoft Visual Studio\common\msdev98\bin

Copy to C:\Program Files\Microsoft Visual Studio\vc98\bin (This is the path that is set in path)

Reason (refer to http://bbs.csdn.net/topics/360166065 five floor):

VC6 Cl.exe compile time, but also to Msdev directory down with a few dynamic library

Otherwise, you will be prompted for a missing dynamic library

VC2010 should do the same, if you copy the dynamic library to

BIN directory, you don't have to set MSDEV environment variables.

Test results for compiling the preparatory work

Four Start compiling

The relevant content in Htkbook is as follows:

5. Create a directory for the library and tools. Type:

mkdir Bin.win32

6. Run VCVARS32 (it should is in your path, see prerequisites above)

7. Build the HTK Library, which provides the common functionality

Used by the HTK Tools. Enter the following commands:

CD Htklib

nmake/f HTK_HTKLIB_NT.MKF All

Cd..

8. Build the HTK Tools

CD Htktools

nmake/f HTK_HTKTOOLS_NT.MKF All

Cd..

CD Hlmlib

nmake/f HTK_HLMLIB_NT.MKF All

Cd..

CD Hlmtools

nmake/f HTK_HLMTOOLS_NT.MKF All

Cd..

1) Compiling Htklib

Go to Htklib directory: cd htklib, enter nmake/f HTK_HTKLIB_NT.MKF all on the command line to compile

After entering, the DOS window will appear as follows (intercept some of them):

2) Compiling Htktools

Enter CD on the command line: to return to the previous level directory, enter CD Htktools, enter the Htktools directory, enter nmake/f HTK_HTKTOOLS_NT.MKF all to compile the file under the directory.

Link:warning Lnk4089:all references to "WINMM.dll" discarded by/opt:ref

It's not a mistake, it's just that your program doesn't use a function in winmm.

So the connection program removes the reference to the WINMM in order to optimize your program.

Debug does not optimize (no/opt:ref switch), so do not do this thing

3) Compiling Hlmlib

Enter CD Hlmlib, enter the Hlmlib directory, enter: nmake/f HTK_HLMLIB_NT.MKF All compile files in this directory.

4) Compiling Hlmtools

Enter CD Hlmtools, enter the Hlmtools directory, enter: nmake/f HTK_HLMTOOLS_NT.MKF All compile files in this directory.

At this time we have compiled all EXE programs, we open the Bin.win32 folder to see if, as shown, the proof has been compiled successfully.

Five. Test whether the compiled build program is correct

1) in order to be able to use the tools we build in the DOS command line, we will add the generated tool path to path.

Enter path=%path% in CMD; F:\dialect\htk\HTK\HTK-3.4.1\htk\bin.win32

Enter the path to view the added results:

Let's enter Hinit to see if we can successfully run the compiled program, and if so, prove that path has been added correctly.

(I do not know why, in my machine in the cmd add path, although it can be displayed in the input path, but does not really work, the system environment variables do not actually add the path, only manually to the environment variable added, only effect)

2) in order to run the Perl test script, we need to install the Perl interpreter in the machine, which is the first ActivePerl to let everyone install

3) Enter the Htkdemo directory (under the Htk-samples folder) and enter the Perl rundemo.pl CONFIGS\MONPLAINM1S1.DCF to run the test script, such as:

Workaround:

Manually add the following folders.

htkdemo/hmms/(for Hrest)

htkdemo/test/(for Hvite)

htkdemo/proto/(for./makeprotohmmset)

Htkdemo/accs

Add the following ACCs

Htkdemo/accs/hmm.2

In the HMMs folder, you also create the following folders:

htkdemo/hmms/hmm.0/(for Hinit)

HTKDEMO/HMMS/HMM.1/(for Hrest)

HTKDEMO/HMMS/HMM.2/(for Hrest,hvite)

htkdemo/hmms/hmm.3/

htkdemo/hmms/tmp/

<</span> Source: http://bingxinye1.blog.163.com/blog/static/16879709820122308157101/>

As a workaround, proceed to the Htkdemo directory (under the Htk-samples folder) and enter the Perl rundemo.pl CONFIGS\MONPLAINM1S1.DCF to run the test script.

Installation HTK End ~

In this thank pear Xiao Luo classmate http://blog.sina.com.cn/s/blog_436992740102uw1j.html

WIN8 (x64) under Compile htk3.4.1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.