Replies: 19 comments 6 replies
|
What's the error do you have? If it's only Vulkan related, you can disable it with GGML_VULKAN OFF in CMakeLists.txt. You can also disable the entire whisper addon, either in CMakeLists.txt or just remove the folder. If you want to compile it, first of all, make sure that you can compile https://github.com/ggml-org/whisper.cpp in your env. The addon depends on this project. |
|
I've tried to fix the Vulkan_INCLUDE_DIR and Vulkan_GLSLC_EXECUTABLE in order to fix the correct references under windows. Now it seems it doesn't like the Ninja build tool `Execution failed for task ':whisper:buildCMakeRelease[arm64-v8a]'.
C++ build system [build] failed while executing:
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. For more on this, please refer to https://docs.gradle.org/8.13/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation. |
|
Probaby whisper.cpp build is unable to locate ninja. Try setting the CMAKE_MAKE_PROGRAM="C:\Users\mazze\AppData\Local\Android\Sdk\cmake\4.1.2\bin\ninja.exe" variable or add the folder C:\Users\mazze\AppData\Local\Android\Sdk\cmake\4.1.2\bin to Path |
|
The problem seems to be related to the build of the shaders under Windows. Maybe it should use precompiled one? Or exclude all completely, as you said. But i was interested first in try to make it available |
|
I don't know, never built it under Windows. You can build it without Vulkan. It's not much faster than runing on CPU and does not work on some devices ggml-org/whisper.cpp#3551. Besides, enabling Vulkan adds ~20mb to the apk size. |
|
I've already built it without Vulkan. This is not for the build stuffs itself, it's for having more control over debugging attaching my device (logcat). Thank you for your support anyway |
|
I've made several attempts, and thanks also to Gemini Pro and Claude LLM i ended up with this solution. Let me know if it seems legit to you, a bit complex for sure. Basically what it does in a windows batch file is pulling up the designed docker image, compiling the vulkan shaders and copy it into the target folder. Once the shaders are copied, the build process can continue outside of the docker container (in my case, in android studio): in the configuration if the files are found it skips the build process and use them. CMakeLists.txt (edited including host toolchain) host-toolchain.cmake (new) whisper build-gradle (edited) Dockerfile (edited) build-whisper.bat (new, placed in docker folder) |
I think you don't need this. Ninja should already be installed in this env. You can probably use the existing image docker run -ti --name Fermata andreypavlenko/fermataTo find ninja: find /opt -type f -name ninja |
|
I got windows compile working by replacing linux-x86_x64 with windows-x86_64 and moving cmake folder from appdata to C:\Program Files\Android\Android Studio\cmake |
|
Hope you know, that you need AAWireless to see the app in the car? |
|
You can also test with the emulator - https://developer.android.com/training/cars/testing/dhu |
|
@AndreyPavlenko I was not aware of that requirement! Now I have to wait until Monday night. |
|
Unfortunately AA shows on the car screen only the apps installed from google play. Or when the phone is connected to the emulator. |
|
My compiled version works, I can hear audio from YouTube just no video. So you say with the AAWireless adapter video will transfer? |
|
That sounds weird, the only think i could guess (exluding my env variables are not corrupted( PS it takes me about 5/6 minutes to complete a build (i have an i7 with nvme and 32gb of ram) PPS yes aawireless two or make an internal testing app (having a play console dev account), but there are many aspects building as-is that nowadays would make this build not passing the checks / not working mirroring / not working the dynamic mlkit stuffs But that's another topic |
|
Hi guys. Newbie question here. I got the app to work after days of trial/error. Everything is fine except youtube,tv and web browser do not appear in the apk i install on the phone but they appear fine on the android studio emulator. what's the catch here? I have some questions; |
|
As I mentioned above, AA shows on the car screen only the apps installed from google play, but it shows all the apps when connected to the head unit emulator. |
|
Hi. I ended up disabling it completely. Nice feature but in my opinion
doesn't worth the hassle and dramatically increases the package size.
27 Ara 2025 Cmt 01:58 tarihinde Lucas Picchi ***@***.***>
şunu yazdı:
… I got windows compile working by replacing linux-x86_x64 with
windows-x86_64 and moving cmake folder from appdata to C:\Program
Files\Android\Android Studio\cmake Compiled successfully in 2 minutes and
some seconds. App installed and now I'm showing Fermata Media Service in
the customize android launcher. 90 minutes before I can leave work and test
in my car
Hi! Were you able to fully build in Windows with Vulkan support? Can you
explain it with more detail?
—
Reply to this email directly, view it on GitHub
<#668 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/B3JT7NAJCNQD64ADO5RD5K34DW4SLAVCNFSM6AAAAACOQRZJKWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKMZUHEYTOMA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Uh oh!
There was an error while loading. Please reload this page.
Hi Andrey, since i'm using Android Studio on Windows (i'm a newbie) to build Fermata, my guess is that something in the CMakeLists.txt file inside Whisper module is "hardcoded" to compile under the docker linux container.
Could you make it more "cross platform" in order to be compiled even outside of the docker container?
All reactions