chenyangMl / keyword-spot

端到端语音唤醒工具箱,从模型训练到模型推理。
MIT License
70 stars 10 forks source link

stream_kws_main #7

Closed yangzhangok closed 3 hours ago

yangzhangok commented 4 hours ago

When using cmake to build stream_kws_main, I found that the process couldn't be conducted well and the error message like"undefined reference to `boost::filesystem:……' " Because I am new to cmake, I began to search for related information about the Cmakelist.txt. And found that in the keyword_spot/bin Cmakelist.txt

add_executable(stream_kws_main stream_kws_main.cc) target_link_libraries(stream_kws_main PUBLIC onnxruntime frontend kws portaudio_static)

which is a little different to the above kws_main and stream_kws_testing.

yangzhangok commented 3 hours ago

When adding the ${Boost_LIBRARIES} into target_link_librariestarget_link_libraries , the program could be compiled normally!