按照kaldi/windows/INSTALL.md中的教程来。
首先,系统上要装有cmake,vs2017,git等
执行下面代码,安装编译openfst
$ git clone https://github.com/kkm000/openfst.git
$ cd openfst
$ mkdir build64
$ cd build64
$ cmake-G "Visual Studio 15 2017 Win64" ../
然后,原文说,最后一条指令通常将会输出看起来像下面一样的内容,不要进行过多的解读
-- The C compiler identification is MSVC 19.11.25547.0
-- The CXX compiler identification is MSVC 19.11.25547.0
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.11.25503/bin/Hostx86/x64/cl.exe-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.11.25503/bin/Hostx86/x64/cl.exe --works--Detecting C compiler ABI info-- Detecting C compiler ABI info -done-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.11.25503/bin/Hostx86/x64/cl.exe-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.11.25503/bin/Hostx86/x64/cl.exe --works--Detecting CXX compiler ABI info-- Detecting CXX compiler ABI info -done--Detecting CXX compile features-- Detecting CXX compile features -done--The following ICU libraries were not found:--data (required)--i18n (required)--io (required)--test (required)--tu (required)--uc (required)--Failed to find all ICU components (missing: ICU_INCLUDE_DIR ICU_LIBRARY _ICU_REQUIRED_LIBS_FOUND)--Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)--Configuring done--Generating done-- Build files have been written to: C:/Users/jtrmal/Documents/openfst/build64
但是,我运行却是这样的
--Configuring done
CMake Error at src/test/CMakeLists.txt:1(add_executable):
Cannot find source file:
fst_test.h
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++.hm
.hpp .hxx .in.txx
CMake Error at src/test/CMakeLists.txt:9(add_executable):
Cannot find source file:
weight-tester.h
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++.hm
.hpp .hxx .in.txx
CMake Error at src/test/CMakeLists.txt