Fangjun Kuang
Committed by GitHub

Fix pkg-config for linux (#358)

@@ -188,7 +188,7 @@ if(NOT BUILD_SHARED_LIBS) @@ -188,7 +188,7 @@ if(NOT BUILD_SHARED_LIBS)
188 endif() 188 endif()
189 189
190 if(UNIX AND NOT APPLE) 190 if(UNIX AND NOT APPLE)
191 - set(SHERPA_ONNX_PKG_CONFIG_EXTRA_LIBS "-lstdc++ -lm") 191 + set(SHERPA_ONNX_PKG_CONFIG_EXTRA_LIBS "-lstdc++ -lm -pthread -ldl")
192 endif() 192 endif()
193 endif() 193 endif()
194 194
@@ -14,8 +14,8 @@ if(NOT BUILD_SHARED_LIBS) @@ -14,8 +14,8 @@ if(NOT BUILD_SHARED_LIBS)
14 message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}") 14 message(FATAL_ERROR "This file is for building shared libraries. BUILD_SHARED_LIBS: ${BUILD_SHARED_LIBS}")
15 endif() 15 endif()
16 16
17 -set(onnxruntime_URL "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-linux-x64-1.16.0.tgz")  
18 -set(onnxruntime_URL2 "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.0/onnxruntime-linux-x64-1.16.0.tgz") 17 +set(onnxruntime_URL "https://github.com/csukuangfj/onnxruntime-libs/releases/download/v1.16.0/onnxruntime-linux-x64-1.16.0.tgz")
  18 +set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-linux-x64-1.16.0.tgz")
19 set(onnxruntime_HASH "SHA256=02bcd1e4fef295dacc3b232774efeaa0a83527f439f29147c3badade4df1f6dc") 19 set(onnxruntime_HASH "SHA256=02bcd1e4fef295dacc3b232774efeaa0a83527f439f29147c3badade4df1f6dc")
20 20
21 # If you don't have access to the Internet, 21 # If you don't have access to the Internet,