Compiling HTK 3.4 on Mac OS 10.5
来源:互联网 发布:windows文件恢复大师 编辑:程序博客网 时间:2024/06/05 18:49
Compiling HTK 3.4 on Mac OS 10.5
HTK 3.4 does not compile out of the box on my MacBook (OS 10.5.7, 64-bit Intel Core 2 Duo). There are two problems, one in the configure file, and one in the file HTKLib/strarr.c.
1) After unpacking the source code and running:
$ ./configure
$ make all
I get the following error during compilation:
gcc -Wall -Wno-switch -g -O2 -I. -c -o esignal.o esignal.c
esignal.c: In function ‘ReadHeader’:
esignal.c:974: error: ‘ARCH’ undeclared (first use in this function)
esignal.c:974: error: (Each undeclared identifier is reported only once
esignal.c:974: error: for each function it appears in.)
esignal.c: In function ‘WriteHeader’:
esignal.c:1184: error: ‘ARCH’ undeclared (first use in this function)
make[1]: *** [esignal.o] Error 1
make: *** [HTKLib/HTKLib.a] Error 1
After looking into the configure file, I see that the variable ARCH should be defined for my system on line 4983. However, this code isn’t executed, because the host variable isn’t being set. My solution was to add the following code:
i386)
host=darwin
trad_bin_dir=$host
;;
to the case “$host_cpu” in statement on line 4937.
2) After making this change and re-running:
$ ./configure
$ make all
I get the following error:
gcc -ansi -g -O2 -DNO_AUDIO -D’ARCH=”darwin”‘ -Wall -Wno-switch -g -O2 -I. -c -o strarr.o strarr.c
strarr.c:21:20: error: malloc.h: No such file or directory
make[1]: *** [strarr.o] Error 1
make: *** [HTKLib/HTKLib.a] Error 1
To fix this bug, I changed line 21 of HTKLib/strarr.c to:
#include <malloc/malloc.h>
After making this change, compilation completed successfully, and HTK was ready to be installed and used on my system.
- Compiling HTK 3.4 on Mac OS 10.5
- HTK on OS X
- COMPILING THE GEDA TOOLS ON MAC OS X 10.7.1
- Compiling GCC on OS X
- Compiling 64-bit FFmpeg on Mac OS X Lion or Snow Leopard
- Compiling 64-bit FFmpeg on Mac OS X Lion or Snow Leopard
- Raspberry Pi -- Cross Compiling on Mac OSX
- Compiling PHP and Apache 2 from source on Linux OS
- OpenCV on Mac OS X
- OpenGL on Mac OS X
- Use adb on Mac OS
- mac os x 10.5.8上安装ruby on rails
- MAC 安装HTK
- Compiling Erlang on Ubuntu
- Compiling Erlang on Ubuntu
- Compiling OpenSSL on Linux
- Driver development on Mac OS X (1)
- subversion 1.6.9 on Mac OS X
- ExtJs中Store简介(秘籍)
- Subsets II
- 利用cmd打开文件
- 《Javascript高级程序设计》第十三章——事件学习笔记(待续)
- ext中ArrayStore,JsonStore,XmlStore的用
- Compiling HTK 3.4 on Mac OS 10.5
- winform网络编程之TcpClient类,TcpListener类和UdpClient类
- 个人写的一个函数,高手勿喷
- ubuntu使用apt-get install 安装程序时候报同样Depends错误
- 阿伦:NBA应重评50大巨星 美记:"热刺"必数人入围
- 【笔试】诺西 测试
- Crystal Report中用于创建条形码图像控件Native Crystal Reports Barcode Generator
- C# HTTP网络常用方法封装
- appium踩过的坑(持续更新..)