-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Error - Lexical or Preprocessor Issue on whisper_flutter #19
Comments
I have the same problem. So I tried to check that what is the problem, I found something. /Users/***/.pub-cache/hosted/pub.dev/whisper_flutter-0.0.4/android/build.gradle
There is ndkVersion and cmake version (in comment). But, still I'm facing the error "Cannot find source file". Are there any ideas? |
Ok, I finally did it. It's just quick fix solution, have to figure out how to fix this completely. |
For iOS,
|
I got an error using 'whisper_flutter 0.0.4' on IOS and also Android:
---> IOS
Lexical or Preprocessor Issue (Xcode): '../../src/whisper_flutter.c' file not found
/Users/xxx/.pub-cache/hosted/pub.dev/whisper_flutter-0.0.4/ios/Classes/whisper_dart.c:2:9
---> Android
Execution failed for task ':whisper_flutter:configureCMakeDebug[arm64-v8a]'.
[CXX1405] error when building with cmake using /Users/xxx/.pub-cache/hosted/pub.dev/whisper_flutter-0.0.4/src/CMakeLists.txt: Build command failed.
Error while executing process /Users/xxx/Library/Android/sdk/cmake/3.18.1/bin/cmake with arguments {-H/Users/xxx/.pub-cache/hosted/pub.dev/whisper_flutter-0.0.4/src -DCMAKE_SYSTEM_NAME=Android -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_SYSTEM_VERSION=19 -DANDROID_PLATFORM=android-19 -DANDROID_ABI=arm64-v8a -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a -DANDROID_NDK=/Users/xxx/Library/Android/sdk/ndk/25.1.8937393 -DCMAKE_ANDROID_NDK=/Users/xxx/Library/Android/sdk/ndk/25.1.8937393 -DCMAKE_TOOLCHAIN_FILE=/Users/xxx/Library/Android/sdk/ndk/25.1.8937393/build/cmake/android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=/Users/xxx/Library/Android/sdk/cmake/3.18.1/bin/ninja -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/xxx/Desktop/Projekte/Zaya/zaya/build/whisper_flutter/intermediates/cxx/Debug/214s131y/obj/arm64-v8a -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/Users/xxx/Desktop/Projekte/Zaya/zaya/build/whisper_flutter/intermediates/cxx/Debug/214s131y/obj/arm64-v8a -DCMAKE_BUILD_TYPE=Debug -B/Users/xxx/.pub-cache/hosted/pub.dev/whisper_flutter-0.0.4/android/.cxx/Debug/214s131y/arm64-v8a -GNinja}
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Users/xxx/Library/Android/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Users/xxx/Library/Android/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
CMake Warning at /Users/xxx/Library/Android/sdk/ndk/25.1.8937393/build/cmake/android-legacy.toolchain.cmake:415 (message):
An old version of CMake is being used that cannot automatically detect
compiler attributes. Compiler identification is being bypassed. Some
values may be wrong or missing. Update to CMake 3.19 or newer to use
CMake's built-in compiler identification.
Call Stack (most recent call first):
/Users/xxx/Library/Android/sdk/ndk/25.1.8937393/build/cmake/android.toolchain.cmake:54 (include)
/Users/xxx/Library/Android/sdk/cmake/3.18.1/share/cmake-3.18/Modules/CMakeDetermineSystem.cmake:93 (include)
CMakeLists.txt:6 (project)
CMake Warning at /Users/xxx/Library/Android/sdk/ndk/25.1.8937393/build/cmake/android-legacy.toolchain.cmake:415 (message):
An old version of CMake is being used that cannot automatically detect
compiler attributes. Compiler identification is being bypassed. Some
values may be wrong or missing. Update to CMake 3.19 or newer to use
CMake's built-in compiler identification.
Call Stack (most recent call first):
/Users/xxx/Library/Android/sdk/ndk/25.1.8937393/build/cmake/android.toolchain.cmake:54 (include)
/Users/xxx/.pub-cache/hosted/pub.dev/whisper_flutter-0.0.4/android/.cxx/Debug/214s131y/arm64-v8a/CMakeFiles/3.18.1-g262b901/CMakeSystem.cmake:6 (include)
/Users/xxx/.pub-cache/hosted/pub.dev/whisper_flutter-0.0.4/android/.cxx/Debug/214s131y/arm64-v8a/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
CMake Warning at /Users/xxx/Library/Android/sdk/ndk/25.1.8937393/build/cmake/android-legacy.toolchain.cmake:415 (message):
An old version of CMake is being used that cannot automatically detect
compiler attributes. Compiler identification is being bypassed. Some
values may be wrong or missing. Update to CMake 3.19 or newer to use
CMake's built-in compiler identification.
Call Stack (most recent call first):
/Users/xxx/Library/Android/sdk/ndk/25.1.8937393/build/cmake/android.toolchain.cmake:54 (include)
/Users/xxx/.pub-cache/hosted/pub.dev/whisper_flutter-0.0.4/android/.cxx/Debug/214s131y/arm64-v8a/CMakeFiles/3.18.1-g262b901/CMakeSystem.cmake:6 (include)
/Users/xxx/.pub-cache/hosted/pub.dev/whisper_flutter-0.0.4/android/.cxx/Debug/214s131y/arm64-v8a/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
CMake Error at CMakeLists.txt:13 (add_library):
Cannot find source file:
whisper.cpp/ggml.c
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at CMakeLists.txt:12 (add_library):
Cannot find source file:
whisper.cpp/whisper.cpp
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at CMakeLists.txt:13 (add_library):
No SOURCES given to target: ggml
CMake Error at CMakeLists.txt:12 (add_library):
No SOURCES given to target: whisper
CMake Generate step failed. Build files cannot be regenerated correctly.
Thanks a lot for your work!
The text was updated successfully, but these errors were encountered: