Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix windows build #1546

Merged
merged 1 commit into from
Nov 16, 2024
Merged

fix windows build #1546

merged 1 commit into from
Nov 16, 2024

Conversation

endink
Copy link
Contributor

@endink endink commented Nov 16, 2024

fix #1545

  • 自定 onnxruntime 时 windows 的链接库名称不正确。
  • 缺少 IMPORTED_IMPLIB 属性,导致编译报错 onnxruntime-NOTFOUND.obj

Windows 操作系统使用如下命令测试通过

set SHERPA_ONNXRUNTIME_INCLUDE_DIR=XXXXX
set SHERPA_ONNXRUNTIME_LIB_DIR=XXXX

cmake -DCMAKE_BUILD_TYPE=Release .. -G "Visual Studio 17 2022" ^
    -DSHERPA_ONNX_ENABLE_PORTAUDIO=OFF ^
    -DSHERPA_ONNX_ENABLE_WEBSOCKET=OFF ^
    -DBUILD_SHARED_LIBS=ON ^
    -DSHERPA_ONNX_USE_PRE_INSTALLED_ONNXRUNTIME_IF_AVAILABLE=ON ^
    -DSHERPA_ONNX_BUILD_C_API_EXAMPLES=OFF 

@csukuangfj
Copy link
Collaborator

Thank you for your contribution!

@csukuangfj csukuangfj merged commit e993c08 into k2-fsa:master Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

windows 平台自定义 onnx runtime 路径错误
2 participants