mozilla / DeepSpeech

DeepSpeech is an open source embedded (offline, on-device) speech-to-text engine which can run in real time on devices ranging from a Raspberry Pi 4 to high power GPU servers.
Mozilla Public License 2.0
25.21k stars 3.95k forks source link

build libdeepspeech.so failed for iOS #3794

Open Boya-Na opened 5 months ago

Boya-Na commented 5 months ago

Hello,

I complie the libdeepspeech.so for follow iOS static build pipeline, and the log shows error:

ERROR: /private/var/tmp/_bazel_boya/9a5aece3aeba2110be2677b43cdd998b/external/local_config_cc/BUILD:48:1: in cc_toolchain_suite rule @local_config_cc//:toolchain: cc_toolchain_suite '@local_config_cc//:toolchain' does not contain a toolchain for cpu 'ios_arm64'
ERROR: Analysis of target '//native_client:deepspeech_ios' failed; build aborted: Analysis of target '@local_config_cc//:toolchain' failed
INFO: Elapsed time: 2.090s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (4 packages loaded, 32 targets configured)

Building Android library is worked and the command was also worked before about the half of year (2023.06). I also tried the command bazel clean --expunge and it is not worked

My iOS SDK path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk

Are there suggestion for helping this error?

Thanks so much!

park671 commented 3 months ago

why u want to build a ".so" for iOS? ".so" is elf format that used in linux kernel. iOS is not linux, iOS or macOS need a ".dylib" instead of ".so"