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

build-ios-shared.sh报错,如何解决 #1512

Open
pozi119 opened this issue Nov 6, 2024 · 5 comments
Open

build-ios-shared.sh报错,如何解决 #1512

pozi119 opened this issue Nov 6, 2024 · 5 comments

Comments

@pozi119
Copy link

pozi119 commented Nov 6, 2024

mac下运行 sh build-ios-shared.sh 编译报错:
[100%] Linking CXX shared library ../../lib/libsherpa-onnx-c-api.dylib ld: warning: duplicate -rpath '@loader_path' ignored ld: warning: ignoring duplicate libraries: '-lm' ld: library 'onnxruntime' not found clang++: error: linker command failed with exit code 1 (use -v to see invocation) gmake[2]: *** [sherpa-onnx/c-api/CMakeFiles/sherpa-onnx-c-api.dir/build.make:107: lib/libsherpa-onnx-c-api.dylib] Error 1 gmake[1]: *** [CMakeFiles/Makefile2:1311: sherpa-onnx/c-api/CMakeFiles/sherpa-onnx-c-api.dir/all] Error 2 gmake: *** [Makefile:156: all] Error 2

@csukuangfj
Copy link
Collaborator

请贴所有的log。
还有,请不要用sh,直接用bash

@pozi119
Copy link
Author

pozi119 commented Nov 6, 2024

Building for simulator (x86_64)
SHERPA_ONNXRUNTIME_LIB_DIR: /Users/valo/Documents/Codes/sherpa-onnx/build-ios-shared/ios-onnxruntime/onnxruntime.xcframework/ios-arm64_x86_64-simulator
SHERPA_ONNXRUNTIME_INCLUDE_DIR /Users/valo/Documents/Codes/sherpa-onnx/build-ios-shared/ios-onnxruntime/onnxruntime.xcframework/Headers
-- [DEFAULTS] Using NON-strict compiler checks by default. ENABLE_STRICT_TRY_COMPILE not provided!
-- Configuring iphonesimulator build for platform: SIMULATOR64, architecture(s): x86_64
-- Using SDK: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.0.sdk
-- Using C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-- Using CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
-- Using libtool: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool
-- Using install name tool: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool
-- Autoconf target triple: x86_64-apple-ios
-- Using minimum deployment version: 13.0 (SDK version: 18.0)
-- Merging integrated CMake 3.14+ iOS,tvOS,watchOS,macOS toolchain(s) with this toolchain!
-- CMake version: 3.30.5
-- Using a data_ptr size of: 8
-- Bitcode: Disabled
-- ARC: Enabled
-- Hiding symbols: Disabled
-- CMAKE_BUILD_TYPE: Release
-- CMAKE_INSTALL_PREFIX: /Users/valo/Documents/Codes/sherpa-onnx/build-ios-shared/build/simulator_x86_64/install
-- BUILD_SHARED_LIBS ON
-- SHERPA_ONNX_ENABLE_PYTHON OFF
-- SHERPA_ONNX_ENABLE_TESTS OFF
-- SHERPA_ONNX_ENABLE_CHECK OFF
-- SHERPA_ONNX_ENABLE_PORTAUDIO OFF
-- SHERPA_ONNX_ENABLE_JNI OFF
-- SHERPA_ONNX_ENABLE_C_API ON
-- SHERPA_ONNX_ENABLE_WEBSOCKET OFF
-- SHERPA_ONNX_ENABLE_GPU OFF
-- SHERPA_ONNX_ENABLE_WASM OFF
-- SHERPA_ONNX_ENABLE_WASM_SPEAKER_DIARIZATION OFF
-- SHERPA_ONNX_ENABLE_WASM_TTS OFF
-- SHERPA_ONNX_ENABLE_WASM_ASR OFF
-- SHERPA_ONNX_ENABLE_WASM_KWS OFF
-- SHERPA_ONNX_ENABLE_WASM_VAD OFF
-- SHERPA_ONNX_ENABLE_WASM_VAD_ASR OFF
-- SHERPA_ONNX_ENABLE_WASM_NODEJS OFF
-- SHERPA_ONNX_ENABLE_BINARY OFF
-- SHERPA_ONNX_ENABLE_TTS ON
-- SHERPA_ONNX_ENABLE_SPEAKER_DIARIZATION ON
-- SHERPA_ONNX_LINK_LIBSTDCPP_STATICALLY ON
-- SHERPA_ONNX_USE_PRE_INSTALLED_ONNXRUNTIME_IF_AVAILABLE ON
-- SHERPA_ONNX_ENABLE_SANITIZER: OFF
-- SHERPA_ONNX_BUILD_C_API_EXAMPLES: ON
-- TTS is enabled
-- speaker diarization is enabled
CMake Warning at CMakeLists.txt:199 (message):
DirectML is disabled

-- C++ Standard version: 17
-- Downloading kaldi-native-fbank from https://github.com/csukuangfj/kaldi-native-fbank/archive/refs/tags/v1.20.0.tar.gz
CMake Warning (dev) at /opt/homebrew/Cellar/cmake/3.30.5/share/cmake/Modules/FetchContent.cmake:1953 (message):
Calling FetchContent_Populate(kaldi_native_fbank) is deprecated, call
FetchContent_MakeAvailable(kaldi_native_fbank) instead. Policy CMP0169 can
be set to OLD to allow FetchContent_Populate(kaldi_native_fbank) to be
called directly for now, but the ability to call it with declared details
will be removed completely in a future version.
Call Stack (most recent call first):
cmake/kaldi-native-fbank.cmake:42 (FetchContent_Populate)
cmake/kaldi-native-fbank.cmake:74 (download_kaldi_native_fbank)
CMakeLists.txt:333 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

-- kaldi-native-fbank is downloaded to /Users/valo/Documents/Codes/sherpa-onnx/build-ios-shared/build/simulator_x86_64/_deps/kaldi_native_fbank-src
-- kaldi-native-fbank's binary dir is /Users/valo/Documents/Codes/sherpa-onnx/build-ios-shared/build/simulator_x86_64/_deps/kaldi_native_fbank-build
CMake Deprecation Warning at build-ios-shared/build/simulator_x86_64/_deps/kaldi_native_fbank-src/CMakeLists.txt:24 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- CMAKE_BUILD_TYPE: Release
-- CMAKE_EXPORT_COMPILE_COMMANDS:
-- BUILD_SHARED_LIBS: OFF
-- KALDI_NATIVE_FBANK_BUILD_TESTS: OFF
-- KALDI_NATIVE_FBANK_BUILD_PYTHON: OFF
-- KALDI_NATIVE_FBANK_ENABLE_CHECK: OFF
-- KALDI_NATIVE_FBANK_ENABLE_CHECK: OFF
-- CMAKE_CXX_FLAGS: -fvisibility=default -fobjc-abi-version=2 -fobjc-arc
-- CMAKE_INSTALL_PREFIX: /Users/valo/Documents/Codes/sherpa-onnx/build-ios-shared/build/simulator_x86_64/install
-- Disable building Python
-- Downloading kaldi-decoder from https://github.com/k2-fsa/kaldi-decoder/archive/refs/tags/v0.2.6.tar.gz
CMake Warning (dev) at /opt/homebrew/Cellar/cmake/3.30.5/share/cmake/Modules/FetchContent.cmake:1953 (message):
Calling FetchContent_Populate(kaldi_decoder) is deprecated, call
FetchContent_MakeAvailable(kaldi_decoder) instead. Policy CMP0169 can be
set to OLD to allow FetchContent_Populate(kaldi_decoder) to be called
directly for now, but the ability to call it with declared details will be
removed completely in a future version.
Call Stack (most recent call first):
cmake/kaldi-decoder.cmake:42 (FetchContent_Populate)
cmake/kaldi-decoder.cmake:88 (download_kaldi_decoder)
CMakeLists.txt:334 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

-- kaldi-decoder is downloaded to /Users/valo/Documents/Codes/sherpa-onnx/build-ios-shared/build/simulator_x86_64/_deps/kaldi_decoder-src
-- kaldi-decoder's binary dir is /Users/valo/Documents/Codes/sherpa-onnx/build-ios-shared/build/simulator_x86_64/_deps/kaldi_decoder-build
-- CMAKE_BUILD_TYPE: Release
-- Downloading kaldifst from https://github.com/k2-fsa/kaldifst/archive/refs/tags/v1.7.11.tar.gz
CMake Warning (dev) at /opt/homebrew/Cellar/cmake/3.30.5/share/cmake/Modules/FetchContent.cmake:1953 (message):
Calling FetchContent_Populate(kaldifst) is deprecated, call
FetchContent_MakeAvailable(kaldifst) instead. Policy CMP0169 can be set to
OLD to allow FetchContent_Populate(kaldifst) to be called directly for now,
but the ability to call it with declared details will be removed completely
in a future version.
Call Stack (most recent call first):
cmake/kaldifst.cmake:39 (FetchContent_Populate)
cmake/kaldifst.cmake:72 (download_kaldifst)
build-ios-shared/build/simulator_x86_64/_deps/kaldi_decoder-src/CMakeLists.txt:67 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

-- kaldifst is downloaded to /Users/valo/Documents/Codes/sherpa-onnx/build-ios-shared/build/simulator_x86_64/_deps/kaldifst-src
-- kaldifst's binary dir is /Users/valo/Documents/Codes/sherpa-onnx/build-ios-shared/build/simulator_x86_64/_deps/kaldifst-build
-- CMAKE_BUILD_TYPE: Release
-- CMAKE_BUILD_TYPE: Release
-- CMAKE_INSTALL_PREFIX: /Users/valo/Documents/Codes/sherpa-onnx/build-ios-shared/build/simulator_x86_64/install
-- BUILD_SHARED_LIBS OFF
-- C++ Standard version: 17
-- CMAKE_CXX_FLAGS: -fvisibility=default -fobjc-abi-version=2 -fobjc-arc
-- Downloading openfst from https://github.com/csukuangfj/openfst/archive/refs/tags/sherpa-onnx-2024-06-19.tar.gz
CMake Warning (dev) at /opt/homebrew/Cellar/cmake/3.30.5/share/cmake/Modules/FetchContent.cmake:1953 (message):
Calling FetchContent_Populate(openfst) is deprecated, call
FetchContent_MakeAvailable(openfst) instead. Policy CMP0169 can be set to
OLD to allow FetchContent_Populate(openfst) to be called directly for now,
but the ability to call it with declared details will be removed completely
in a future version.
Call Stack (most recent call first):
cmake/openfst.cmake:67 (FetchContent_Populate)
cmake/openfst.cmake:109 (download_openfst)
build-ios-shared/build/simulator_x86_64/_deps/kaldifst-src/CMakeLists.txt:94 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

-- openfst is downloaded to /Users/valo/Documents/Codes/sherpa-onnx/build-ios-shared/build/simulator_x86_64/_deps/openfst-src
-- Failed to find all ICU components (missing: ICU_LIBRARY data i18n io test tu uc) (found version "74.2")
CMake Deprecation Warning at build-ios-shared/build/simulator_x86_64/_deps/openfst-src/CMakeLists.txt:15 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- PYTHON_SITE_PACKAGE_DIR:
-- Downloading eigen from https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.gz
CMake Warning (dev) at /opt/homebrew/Cellar/cmake/3.30.5/share/cmake/Modules/FetchContent.cmake:1953 (message):
Calling FetchContent_Populate(eigen) is deprecated, call
FetchContent_MakeAvailable(eigen) instead. Policy CMP0169 can be set to
OLD to allow FetchContent_Populate(eigen) to be called directly for now,
but the ability to call it with declared details will be removed completely
in a future version.
Call Stack (most recent call first):
cmake/eigen.cmake:39 (FetchContent_Populate)
cmake/eigen.cmake:47 (download_eigen)
build-ios-shared/build/simulator_x86_64/_deps/kaldi_decoder-src/CMakeLists.txt:68 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

-- eigen is downloaded to /Users/valo/Documents/Codes/sherpa-onnx/build-ios-shared/build/simulator_x86_64/_deps/eigen-src
-- eigen's binary dir is /Users/valo/Documents/Codes/sherpa-onnx/build-ios-shared/build/simulator_x86_64/_deps/eigen-build
-- Performing Test COMPILER_SUPPORT_std=cpp03
-- Performing Test COMPILER_SUPPORT_std=cpp03 - Success
-- Standard libraries to link to explicitly: none
-- Found unsuitable Qt version "" from NOTFOUND
-- Qt4 not found, so disabling the mandelbrot and opengl demos
-- Could NOT find CHOLMOD (missing: CHOLMOD_INCLUDES CHOLMOD_LIBRARIES)
-- Could NOT find UMFPACK (missing: UMFPACK_INCLUDES UMFPACK_LIBRARIES)
-- Could NOT find KLU (missing: KLU_INCLUDES KLU_LIBRARIES)
-- Could NOT find SuperLU (missing: SUPERLU_INCLUDES SUPERLU_LIBRARIES SUPERLU_VERSION_OK) (Required is at least version "4.0")
-- Checking for one of the modules 'hwloc'
-- A version of Pastix has been found but pastix_nompi.h does not exist in the include directory. Because Eigen tests require a version without MPI, we disable the Pastix backend.

-- Configured Eigen 3.4.0

-- Available targets (use: make TARGET):
-- ---------+--------------------------------------------------------------
-- Target | Description
-- ---------+--------------------------------------------------------------
-- install | Install Eigen. Headers will be installed to:
-- | <CMAKE_INSTALL_PREFIX>/<INCLUDE_INSTALL_DIR>
-- | Using the following values:
-- | CMAKE_INSTALL_PREFIX: /Users/valo/Documents/Codes/sherpa-onnx/build-ios-shared/build/simulator_x86_64/install
-- | INCLUDE_INSTALL_DIR: include/eigen3
-- | Change the install location of Eigen headers using:
-- | cmake . -DCMAKE_INSTALL_PREFIX=yourprefix
-- | Or:
-- | cmake . -DINCLUDE_INSTALL_DIR=yourdir
-- doc | Generate the API documentation, requires Doxygen & LaTeX
-- blas | Build BLAS library (not the same thing as Eigen)
-- uninstall| Remove files installed by the install target
-- ---------+--------------------------------------------------------------

-- CMAKE_SYSTEM_NAME: iOS
-- CMAKE_SYSTEM_PROCESSOR: x86_64
-- location_onnxruntime_header_dir: /Users/valo/Documents/Codes/sherpa-onnx/build-ios-shared/ios-onnxruntime/onnxruntime.xcframework/Headers
Use static lib: /Users/valo/Documents/Codes/sherpa-onnx/build-ios-shared/ios-onnxruntime/onnxruntime.xcframework/ios-arm64_x86_64-simulator/libonnxruntime.a
-- location_onnxruntime_lib: /Users/valo/Documents/Codes/sherpa-onnx/build-ios-shared/ios-onnxruntime/onnxruntime.xcframework/ios-arm64_x86_64-simulator/libonnxruntime.a
-- Downloading simple-sentencepiece https://github.com/pkufool/simple-sentencepiece/archive/refs/tags/v0.7.tar.gz
CMake Warning (dev) at /opt/homebrew/Cellar/cmake/3.30.5/share/cmake/Modules/FetchContent.cmake:1953 (message):
Calling FetchContent_Populate(simple-sentencepiece) is deprecated, call
FetchContent_MakeAvailable(simple-sentencepiece) instead. Policy CMP0169
can be set to OLD to allow FetchContent_Populate(simple-sentencepiece) to
be called directly for now, but the ability to call it with declared
details will be removed completely in a future version.
Call Stack (most recent call first):
cmake/simple-sentencepiece.cmake:42 (FetchContent_Populate)
cmake/simple-sentencepiece.cmake:73 (download_simple_sentencepiece)
CMakeLists.txt:336 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

-- simple-sentencepiece is downloaded to /Users/valo/Documents/Codes/sherpa-onnx/build-ios-shared/build/simulator_x86_64/_deps/simple-sentencepiece-src
-- C++ Standard version: 17
-- ONNXRUNTIME_DIR:
-- Downloading espeak-ng from https://github.com/csukuangfj/espeak-ng/archive/f6fed6c58b5e0998b8e68c6610125e2d07d595a7.zip
CMake Warning (dev) at /opt/homebrew/Cellar/cmake/3.30.5/share/cmake/Modules/FetchContent.cmake:1953 (message):
Calling FetchContent_Populate(espeak_ng) is deprecated, call
FetchContent_MakeAvailable(espeak_ng) instead. Policy CMP0169 can be set
to OLD to allow FetchContent_Populate(espeak_ng) to be called directly for
now, but the ability to call it with declared details will be removed
completely in a future version.
Call Stack (most recent call first):
cmake/espeak-ng-for-piper.cmake:51 (FetchContent_Populate)
cmake/espeak-ng-for-piper.cmake:134 (download_espeak_ng_for_piper)
CMakeLists.txt:361 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

-- espeak-ng is downloaded to /Users/valo/Documents/Codes/sherpa-onnx/build-ios-shared/build/simulator_x86_64/_deps/espeak_ng-src
-- espeak-ng binary dir is /Users/valo/Documents/Codes/sherpa-onnx/build-ios-shared/build/simulator_x86_64/_deps/espeak_ng-build
-- Configuration:
-- shared: OFF
-- mbrola: OFF (MBROLA_BIN-NOTFOUND)
-- libsonic: OFF (SONIC_LIB-NOTFOUND SONIC_INC-NOTFOUND)
-- libpcaudio: OFF (PCAUDIO_LIB-NOTFOUND PCAUDIO_INC-NOTFOUND)
-- klatt: OFF
-- speech-player: OFF
-- async: OFF
-- ESPEAK_NG_DIR: /Users/valo/Documents/Codes/sherpa-onnx/build-ios-shared/build/simulator_x86_64/_deps/espeak_ng-src
-- Downloading piper-phonemize from https://github.com/csukuangfj/piper-phonemize/archive/38ee199dcc49c7b6de89f7ebfb32ed682763fa1b.zip
CMake Warning (dev) at /opt/homebrew/Cellar/cmake/3.30.5/share/cmake/Modules/FetchContent.cmake:1953 (message):
Calling FetchContent_Populate(piper_phonemize) is deprecated, call
FetchContent_MakeAvailable(piper_phonemize) instead. Policy CMP0169 can be
set to OLD to allow FetchContent_Populate(piper_phonemize) to be called
directly for now, but the ability to call it with declared details will be
removed completely in a future version.
Call Stack (most recent call first):
cmake/piper-phonemize.cmake:38 (FetchContent_Populate)
cmake/piper-phonemize.cmake:78 (download_piper_phonemize)
CMakeLists.txt:364 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

-- piper-phonemize is downloaded to /Users/valo/Documents/Codes/sherpa-onnx/build-ios-shared/build/simulator_x86_64/_deps/piper_phonemize-src
-- piper-phonemize binary dir is /Users/valo/Documents/Codes/sherpa-onnx/build-ios-shared/build/simulator_x86_64/_deps/piper_phonemize-build
-- Downloading cppjieba https://github.com/csukuangfj/cppjieba/archive/refs/tags/sherpa-onnx-2024-04-19.tar.gz
CMake Warning (dev) at /opt/homebrew/Cellar/cmake/3.30.5/share/cmake/Modules/FetchContent.cmake:1953 (message):
Calling FetchContent_Populate(cppjieba) is deprecated, call
FetchContent_MakeAvailable(cppjieba) instead. Policy CMP0169 can be set to
OLD to allow FetchContent_Populate(cppjieba) to be called directly for now,
but the ability to call it with declared details will be removed completely
in a future version.
Call Stack (most recent call first):
cmake/cppjieba.cmake:39 (FetchContent_Populate)
cmake/cppjieba.cmake:45 (download_cppjieba)
CMakeLists.txt:365 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

-- cppjieba is downloaded to /Users/valo/Documents/Codes/sherpa-onnx/build-ios-shared/build/simulator_x86_64/_deps/cppjieba-src
CMake Deprecation Warning at build-ios-shared/build/simulator_x86_64/_deps/cppjieba-src/CMakeLists.txt:3 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- Downloading hclust_cpp from https://github.com/csukuangfj/hclust-cpp/archive/refs/tags/2024-09-29.tar.gz
CMake Warning (dev) at /opt/homebrew/Cellar/cmake/3.30.5/share/cmake/Modules/FetchContent.cmake:1953 (message):
Calling FetchContent_Populate(hclust_cpp) is deprecated, call
FetchContent_MakeAvailable(hclust_cpp) instead. Policy CMP0169 can be set
to OLD to allow FetchContent_Populate(hclust_cpp) to be called directly for
now, but the ability to call it with declared details will be removed
completely in a future version.
Call Stack (most recent call first):
cmake/hclust-cpp.cmake:39 (FetchContent_Populate)
cmake/hclust-cpp.cmake:47 (download_hclust_cpp)
CMakeLists.txt:369 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

-- hclust_cpp is downloaded to /Users/valo/Documents/Codes/sherpa-onnx/build-ios-shared/build/simulator_x86_64/_deps/hclust_cpp-src
-- hclust_cpp's binary dir is /Users/valo/Documents/Codes/sherpa-onnx/build-ios-shared/build/simulator_x86_64/_deps/hclust_cpp-build
-- CMAKE_CXX_FLAGS: -fvisibility=default -fobjc-abi-version=2 -fobjc-arc
-- CMAKE_CXX_FLAGS: -fvisibility=default -fobjc-abi-version=2 -fobjc-arc
-- Configuring done (8.7s)
-- Generating done (0.2s)
-- Build files have been written to: /Users/valo/Documents/Codes/sherpa-onnx/build-ios-shared/build/simulator_x86_64
[ 4%] Built target ucd
[ 16%] Built target espeak-ng
[ 17%] Built target piper_phonemize
[ 23%] Built target kaldi-native-fbank-core
[ 27%] Built target fst
[ 29%] Built target fstfar
[ 33%] Built target kaldifst_core
[ 36%] Built target kaldi-decoder-core
[ 38%] Built target ssentencepiece_core
[ 98%] Built target sherpa-onnx-core
[100%] Linking CXX shared library ../../lib/libsherpa-onnx-c-api.dylib
ld: warning: duplicate -rpath '@loader_path' ignored
ld: warning: ignoring duplicate libraries: '-lm'
ld: library 'onnxruntime' not found
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[2]: *** [sherpa-onnx/c-api/CMakeFiles/sherpa-onnx-c-api.dir/build.make:107: lib/libsherpa-onnx-c-api.dylib] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:1311: sherpa-onnx/c-api/CMakeFiles/sherpa-onnx-c-api.dir/all] Error 2
gmake: *** [Makefile:156: all] Error 2

@pozi119
Copy link
Author

pozi119 commented Nov 6, 2024

请贴所有的log。 还有,请不要用sh,直接用bash

上面是所有log,具体原因是
build-ios-shared/build/simulator_x86_64/sherpa-onnx/c-api/CMakeFiles/sherpa-onnx-c-api.dir/link.txt
中的 -lonnxruntime 报错 library 'onnxruntime' not found

@csukuangfj
Copy link
Collaborator

  1. 请删掉 build-ios-shared 目录


  2. 改成
 -S ..  -D CMAKE_VERBOSE_MAKEFILE=ON \ 
  1. 重试。把重试的命令和 log, 请都发过来。

@pozi119
Copy link
Author

pozi119 commented Nov 6, 2024

log.txt
这是所有日志

  1. 请删掉 build-ios-shared 目录


  2. 改成

 -S ..  -D CMAKE_VERBOSE_MAKEFILE=ON \ 
  1. 重试。把重试的命令和 log, 请都发过来。

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

No branches or pull requests

2 participants