Macoron / whisper.unity

Running speech to text model (whisper.cpp) in Unity3d on your local machine.
MIT License
436 stars 97 forks source link

I got Error Message When I Build for Android #99

Open MrHyeonMakesComeTrue opened 2 months ago

MrHyeonMakesComeTrue commented 2 months ago

Error Message Says like this

Building Library\Bee\artifacts\Android\iz17e\libil2cpp.so failed with output: ld.lld: error: undefined symbol: whisper_lang_max_id

referenced by com.whisper.unity.cpp:16111 (C:/Users/PC/Desktop/New_Chapter_Project/Library/Bee/artifacts/Android/il2cppOutput/cpp\com.whisper.unity.cpp:16111) Library/Bee/artifacts/Android/iz17e/3vbolde5ice1.o:(WhisperLanguage_GetLanguageMaxId_m9C908744782F7777D99103E36FF424C22BDA2AB0) referenced by com.whisper.unity.cpp:16111 (C:/Users/PC/Desktop/New_Chapter_Project/Library/Bee/artifacts/Android/il2cppOutput/cpp\com.whisper.unity.cpp:16111) Library/Bee/artifacts/Android/iz17e/3vbolde5ice1.o:(WhisperNative_whisper_lang_max_id_m111CA5753304696AF2014D570CC1A1FC1C6F81FC)

ld.lld: error: undefined symbol: whisper_lang_id

referenced by com.whisper.unity.cpp:16122 (C:/Users/PC/Desktop/New_Chapter_Project/Library/Bee/artifacts/Android/il2cppOutput/cpp\com.whisper.unity.cpp:16122) Library/Bee/artifacts/Android/iz17e/3vbolde5ice1.o:(WhisperLanguage_GetLanguageId_mB7943D13A0D947DCBAEE0E3E9C2F87D230066FFC) referenced by com.whisper.unity.cpp:16122 (C:/Users/PC/Desktop/New_Chapter_Project/Library/Bee/artifacts/Android/il2cppOutput/cpp\com.whisper.unity.cpp:16122) Library/Bee/artifacts/Android/iz17e/3vbolde5ice1.o:(WhisperNative_whisper_lang_id_m71511B778F72CA4A15F46E88A77C42E3FBE95234)

ld.lld: error: undefined symbol: whisper_lang_str

referenced by com.whisper.unity.cpp:16133 (C:/Users/PC/Desktop/New_Chapter_Project/Library/Bee/artifacts/Android/il2cppOutput/cpp\com.whisper.unity.cpp:16133) Library/Bee/artifacts/Android/iz17e/3vbolde5ice1.o:(WhisperLanguage_GetLanguageString_m1D80B9A52DA4D369D786E166C041A18270BA0EC5) referenced by com.whisper.unity.cpp:16133 (C:/Users/PC/Desktop/New_Chapter_Project/Library/Bee/artifacts/Android/il2cppOutput/cpp\com.whisper.unity.cpp:16133) Library/Bee/artifacts/Android/iz17e/3vbolde5ice1.o:(WhisperNative_whisper_lang_str_mFD7427DAF9E77A9AA65C57B03539AF6004972E2D)

ld.lld: error: undefined symbol: whisper_is_multilingual

referenced by com.whisper.unity.cpp:16212 (C:/Users/PC/Desktop/New_Chapter_Project/Library/Bee/artifacts/Android/il2cppOutput/cpp\com.whisper.unity.cpp:16212) Library/Bee/artifacts/Android/iz17e/3vbolde5ice1.o:(WhisperWrapper_get_IsMultilingual_m7A5EC0A34D253A9DF881FD5E452EF65620A28FD3) referenced by com.whisper.unity.cpp:16212 (C:/Users/PC/Desktop/New_Chapter_Project/Library/Bee/artifacts/Android/il2cppOutput/cpp\com.whisper.unity.cpp:16212) Library/Bee/artifacts/Android/iz17e/3vbolde5ice1.o:(WhisperNative_whisper_is_multilingual_m43B457EB1E8DA45465126D202CF8D7042D64C48D)

ld.lld: error: undefined symbol: whisper_full_default_params

referenced by com.whisper.unity.cpp:16159 (C:/Users/PC/Desktop/New_Chapter_Project/Library/Bee/artifacts/Android/il2cppOutput/cpp\com.whisper.unity.cpp:16159) Library/Bee/artifacts/Android/iz17e/3vbolde5ice1.o:(WhisperParams_GetDefaultParams_mD2B31C1662450D244C9B13D13584B10DD6AF22E7) referenced by com.whisper.unity.cpp:16159 (C:/Users/PC/Desktop/New_Chapter_Project/Library/Bee/artifacts/Android/il2cppOutput/cpp\com.whisper.unity.cpp:16159) Library/Bee/artifacts/Android/iz17e/3vbolde5ice1.o:(WhisperNative_whisper_full_default_params_m9DECC48A5CFD994443569ED9D3B509552A4132AF)

ld.lld: error: undefined symbol: whisper_context_default_params

referenced by com.whisper.unity.cpp:16173 (C:/Users/PC/Desktop/New_Chapter_Project/Library/Bee/artifacts/Android/il2cppOutput/cpp\com.whisper.unity.cpp:16173) Library/Bee/artifacts/Android/iz17e/3vbolde5ice1.o:(WhisperContextParams_GetDefaultParams_m6D2C69CB386650B8C896F7DE79B22729CE3DC699) referenced by com.whisper.unity.cpp:16173 (C:/Users/PC/Desktop/New_Chapter_Project/Library/Bee/artifacts/Android/il2cppOutput/cpp\com.whisper.unity.cpp:16173) Library/Bee/artifacts/Android/iz17e/3vbolde5ice1.o:(WhisperNative_whisper_context_default_params_m7CF7C43CDA0E9091E7519ACFD5CC8C8211822343)

ld.lld: error: undefined symbol: whisper_free

referenced by com.whisper.unity.cpp:16268 (C:/Users/PC/Desktop/New_Chapter_Project/Library/Bee/artifacts/Android/il2cppOutput/cpp\com.whisper.unity.cpp:16268) Library/Bee/artifacts/Android/iz17e/3vbolde5ice1.o:(WhisperWrapper_Finalize_m58F75E5D3B7080B1C9FAB9DDC28E84F7DD764BB2) referenced by com.whisper.unity.cpp:16268 (C:/Users/PC/Desktop/New_Chapter_Project/Library/Bee/artifacts/Android/il2cppOutput/cpp\com.whisper.unity.cpp:16268) Library/Bee/artifacts/Android/iz17e/3vbolde5ice1.o:(WhisperNative_whisper_free_m8A538E0C004C7ED8F7FBA022E2EE23B4B934E92C)

ld.lld: error: undefined symbol: whisper_full_n_segments

referenced by com.whisper.unity.cpp:16196 (C:/Users/PC/Desktop/New_Chapter_Project/Library/Bee/artifacts/Android/il2cppOutput/cpp\com.whisper.unity.cpp:16196) Library/Bee/artifacts/Android/iz17e/3vbolde5ice1.o:(WhisperWrapper_GetText_m913C149947BA070DEE5B908F0C27B511C0386631) referenced by com.whisper.unity.cpp:16196 (C:/Users/PC/Desktop/New_Chapter_Project/Library/Bee/artifacts/Android/il2cppOutput/cpp\com.whisper.unity.cpp:16196) Library/Bee/artifacts/Android/iz17e/3vbolde5ice1.o:(WhisperNative_whisper_full_n_segments_m15CAB69AD895F9136462D5FE97C7EFA3E9977468) referenced by com.whisper.unity.cpp:16196 (C:/Users/PC/Desktop/New_Chapter_Project/Library/Bee/artifacts/Android/il2cppOutput/cpp\com.whisper.unity.cpp:16196) Library/Bee/artifacts/Android/iz17e/3vbolde5ice1.o:(WhisperWrapper_NewSegmentCallback_m1C5EF77EC08E1AFE8AE70B298DDBF6C016A3875B)

ld.lld: error: undefined symbol: whisper_full_lang_id

referenced by com.whisper.unity.cpp:16204 (C:/Users/PC/Desktop/New_Chapter_Project/Library/Bee/artifacts/Android/il2cppOutput/cpp\com.whisper.unity.cpp:16204) Library/Bee/artifacts/Android/iz17e/3vbolde5ice1.o:(WhisperWrapper_GetText_m913C149947BA070DEE5B908F0C27B511C0386631) referenced by com.whisper.unity.cpp:16204 (C:/Users/PC/Desktop/New_Chapter_Project/Library/Bee/artifacts/Android/il2cppOutput/cpp\com.whisper.unity.cpp:16204) Library/Bee/artifacts/Android/iz17e/3vbolde5ice1.o:(WhisperNative_whisper_full_lang_id_m4A314A5077DB12D5EAF7B4E9E71D085F6254568C)

ld.lld: error: undefined symbol: whisper_full

referenced by com.whisper.unity.cpp:16186 (C:/Users/PC/Desktop/New_Chapter_Project/Library/Bee/artifacts/Android/il2cppOutput/cpp\com.whisper.unity.cpp:16186) Library/Bee/artifacts/Android/iz17e/3vbolde5ice1.o:(WhisperWrapper_InferenceWhisper_m2A8868E9BD0684280AF01100EE443E8213BF9C0B) referenced by com.whisper.unity.cpp:16186 (C:/Users/PC/Desktop/New_Chapter_Project/Library/Bee/artifacts/Android/il2cppOutput/cpp\com.whisper.unity.cpp:16186) Library/Bee/artifacts/Android/iz17e/3vbolde5ice1.o:(WhisperNative_whisper_full_mBD8B4D65AFD73E5AAD7E3A2927C18D9EFE4FF77A)

ld.lld: error: undefined symbol: whisper_full_get_segment_text

referenced by com.whisper.unity.cpp:16236 (C:/Users/PC/Desktop/New_Chapter_Project/Library/Bee/artifacts/Android/il2cppOutput/cpp\com.whisper.unity.cpp:16236) Library/Bee/artifacts/Android/iz17e/3vbolde5ice1.o:(WhisperWrapper_GetSegment_m0A88BE60071FAE44073A139548D97E7580C12954) referenced by com.whisper.unity.cpp:16236 (C:/Users/PC/Desktop/New_Chapter_Project/Library/Bee/artifacts/Android/il2cppOutput/cpp\com.whisper.unity.cpp:16236) Library/Bee/artifacts/Android/iz17e/3vbolde5ice1.o:(WhisperNative_whisper_full_get_segment_text_mEB863DB2C045606738612BD8864BDAC7AE2D5C0A)

ld.lld: error: undefined symbol: whisper_full_get_segment_t0

referenced by com.whisper.unity.cpp:16220 (C:/Users/PC/Desktop/New_Chapter_Project/Library/Bee/artifacts/Android/il2cppOutput/cpp\com.whisper.unity.cpp:16220) Library/Bee/artifacts/Android/iz17e/3vbolde5ice1.o:(WhisperWrapper_GetSegment_m0A88BE60071FAE44073A139548D97E7580C12954) referenced by com.whisper.unity.cpp:16220 (C:/Users/PC/Desktop/New_Chapter_Project/Library/Bee/artifacts/Android/il2cppOutput/cpp\com.whisper.unity.cpp:16220) Library/Bee/artifacts/Android/iz17e/3vbolde5ice1.o:(WhisperNative_whisper_full_get_segment_t0_mBA3C0F9F79FD78E702B85A5140F3C3FBB38BF0EC)

ld.lld: error: undefined symbol: whisper_full_get_segment_t1

referenced by com.whisper.unity.cpp:16228 (C:/Users/PC/Desktop/New_Chapter_Project/Library/Bee/artifacts/Android/il2cppOutput/cpp\com.whisper.unity.cpp:16228) Library/Bee/artifacts/Android/iz17e/3vbolde5ice1.o:(WhisperWrapper_GetSegment_m0A88BE60071FAE44073A139548D97E7580C12954) referenced by com.whisper.unity.cpp:16228 (C:/Users/PC/Desktop/New_Chapter_Project/Library/Bee/artifacts/Android/il2cppOutput/cpp\com.whisper.unity.cpp:16228) Library/Bee/artifacts/Android/iz17e/3vbolde5ice1.o:(WhisperNative_whisper_full_get_segment_t1_mF892590EB71EF47CB771F4A586EC9711BDDEA2B9)

ld.lld: error: undefined symbol: whisper_full_n_tokens

referenced by com.whisper.unity.cpp:16244 (C:/Users/PC/Desktop/New_Chapter_Project/Library/Bee/artifacts/Android/il2cppOutput/cpp\com.whisper.unity.cpp:16244) Library/Bee/artifacts/Android/iz17e/3vbolde5ice1.o:(WhisperWrapper_GetSegment_m0A88BE60071FAE44073A139548D97E7580C12954) referenced by com.whisper.unity.cpp:16244 (C:/Users/PC/Desktop/New_Chapter_Project/Library/Bee/artifacts/Android/il2cppOutput/cpp\com.whisper.unity.cpp:16244) Library/Bee/artifacts/Android/iz17e/3vbolde5ice1.o:(WhisperNative_whisper_full_n_tokens_m4F9667E0A3543A8A599B879E731E5905FCC341D6)

ld.lld: error: undefined symbol: whisper_full_get_token_data

referenced by com.whisper.unity.cpp:16260 (C:/Users/PC/Desktop/New_Chapter_Project/Library/Bee/artifacts/Android/il2cppOutput/cpp\com.whisper.unity.cpp:16260) Library/Bee/artifacts/Android/iz17e/3vbolde5ice1.o:(WhisperWrapper_GetSegment_m0A88BE60071FAE44073A139548D97E7580C12954) referenced by com.whisper.unity.cpp:16260 (C:/Users/PC/Desktop/New_Chapter_Project/Library/Bee/artifacts/Android/il2cppOutput/cpp\com.whisper.unity.cpp:16260) Library/Bee/artifacts/Android/iz17e/3vbolde5ice1.o:(WhisperNative_whisper_full_get_token_data_mA2BFFF76FD523852D0041B32A2886EC8D466FCAA)

ld.lld: error: undefined symbol: whisper_full_get_token_text

referenced by com.whisper.unity.cpp:16252 (C:/Users/PC/Desktop/New_Chapter_Project/Library/Bee/artifacts/Android/il2cppOutput/cpp\com.whisper.unity.cpp:16252) Library/Bee/artifacts/Android/iz17e/3vbolde5ice1.o:(WhisperWrapper_GetSegment_m0A88BE60071FAE44073A139548D97E7580C12954) referenced by com.whisper.unity.cpp:16252 (C:/Users/PC/Desktop/New_Chapter_Project/Library/Bee/artifacts/Android/il2cppOutput/cpp\com.whisper.unity.cpp:16252) Library/Bee/artifacts/Android/iz17e/3vbolde5ice1.o:(WhisperNative_whisper_full_get_token_text_mA3195EA97289EB036AFAD5A6F89CB34BAC57713D)

ld.lld: error: undefined symbol: whisper_token_eot

referenced by com.whisper.unity.cpp:16141 (C:/Users/PC/Desktop/New_Chapter_Project/Library/Bee/artifacts/Android/il2cppOutput/cpp\com.whisper.unity.cpp:16141) Library/Bee/artifacts/Android/iz17e/3vbolde5ice1.o:(WhisperWrapper_GetSegment_m0A88BE60071FAE44073A139548D97E7580C12954) referenced by com.whisper.unity.cpp:16141 (C:/Users/PC/Desktop/New_Chapter_Project/Library/Bee/artifacts/Android/il2cppOutput/cpp\com.whisper.unity.cpp:16141) Library/Bee/artifacts/Android/iz17e/3vbolde5ice1.o:(WhisperNative_whisper_token_eot_m449FDDF35C5F0CCFAB4115A42D8A76CB8BE68F8A)

ld.lld: error: undefined symbol: whisper_init_from_buffer_with_params

referenced by com.whisper.unity.cpp:16103 (C:/Users/PC/Desktop/New_Chapter_Project/Library/Bee/artifacts/Android/il2cppOutput/cpp\com.whisper.unity.cpp:16103) Library/Bee/artifacts/Android/iz17e/3vbolde5ice1.o:(WhisperWrapper_InitFromBuffer_m2267DBE602D9AD58172A3B47BB352B56DC3A2A6A) referenced by com.whisper.unity.cpp:16103 (C:/Users/PC/Desktop/New_Chapter_Project/Library/Bee/artifacts/Android/il2cppOutput/cpp\com.whisper.unity.cpp:16103) Library/Bee/artifacts/Android/iz17e/3vbolde5ice1.o:(WhisperNative_whisper_init_from_buffer_with_params_mF77A97EF957070BC43662CB4159828DDC05D6343)

ld.lld: error: undefined symbol: whisper_print_system_info

referenced by com.whisper.unity.cpp:16149 (C:/Users/PC/Desktop/New_Chapter_Project/Library/Bee/artifacts/Android/il2cppOutput/cpp\com.whisper.unity.cpp:16149) Library/Bee/artifacts/Android/iz17e/3vbolde5ice1.o:(WhisperWrapper_GetSystemInfo_m033435347B8A9299CF9AFF7F09448D3190A74EA7) referenced by com.whisper.unity.cpp:16149 (C:/Users/PC/Desktop/New_Chapter_Project/Library/Bee/artifacts/Android/il2cppOutput/cpp\com.whisper.unity.cpp:16149) Library/Bee/artifacts/Android/iz17e/3vbolde5ice1.o:(WhisperNative_whisper_print_system_info_m3EE578C04FE545D024B2697ABA72DCECE9C95941) clang++: error: linker command failed with exit code 1 (use -v to see invocation)

UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Could you help me? I can't figure out how to solve this problem.

alantsangplab commented 1 month ago

You could try to set the scripting backend as IL2CPP and check out ARMv7, keep ARMv64 only