Debugging an HTK tools using Visual Studio 2005

Debuggingan HTK tools using Visual Studio 2005 (VS2005)

 

v  1– Open VS2005;

v  2– Go to “File -> New Project”. Expand “Visual C++” and select “Win32”.Select “Win32 Console Application” template. Write project name and click OKbutton.

<!-- [if gte vml 1]> <![endif]-->

 

v  3– On the wizard windows, in “Application Settings”, select the fallow options:

Ø   Applicationtype: Console application;

Ø   Additionaloptions: Empty project;

<!-- [if gte vml 1]> <![endif]-->

Ø   Andclick “Finish” button.

 

v  4– Identify project directory (where is locate the project file with extension.cvproj). Copy to project directory the tool file locate in “HTKTools”directory and the directory “HTKLib”.

<!-- [if gte vml 1]> <![endif]-->

 

v  5– Back to VS2005 and adding files. On “Solution Explorer”, right click on“Source Files” and select “Add -> Existing Item” and add the tool file.

<!-- [if gte vml 1]> <![endif]-->

Add also allsource files in “HTKLib” directory (*.c), except the fallows files: “HArc.c”,“HExactMPE.c”, “HFBLab.c”, “HGraf.c” and “HGraf.null”.

<!-- [if gte vml 1]> <![endif]-->

On “HeaderFiles” add all header files in “HTKLib” directory (*.h), except the fallowsfiles: “HArc.h”, “HExactMPE.h” and “HFBLab.h”.

<!-- [if gte vml 1]> <![endif]-->

 

v  6– Change project proprieties (Project -> ‘prj name’ Proprieties) as fallows:

Ø   “ConfigurationProprieties -> C/C++ -> General -> Additional Include Directories”:./HTKLib;

Ø   “ConfigurationProprieties -> C/C++ -> General -> Warning Level”: Off: Turn Off AllWarnings (/W0);

Ø   “ConfigurationProprieties -> C/C++ -> Command Line -> Additional options”: /wd4335/D "WIN32_AUDIO" /DARCH=/"WIN32/" /D isnan=_isnan;

Ø   “ConfigurationProprieties -> Linker -> Input -> Additional Dependencies”: winmm.lib;

 

It’s all done. Build and start debugging.

 

Arlindo Oliveira da Veiga

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 7
    评论
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值