-
Notifications
You must be signed in to change notification settings - Fork 13
Description
On a new M4 Pro MacBook Pro, I've tried compiling whisper-cpp-server using the instructions provided for MacOS.
When I run cmake -B cmake-build-release -DWHISPER_COREML=1
as instructed, I get warnings about not including CMAKE_OSX_ARCHITECTURES
and I get a fatal error about libuv, which is installed on my machine with brew install libuv
.
This is the libuv error:
CMake Error at vcpkg/scripts/buildsystems/vcpkg.cmake:859 (_find_package):
Could not find a package configuration file provided by "libuv" with any of
the following names:
libuvConfig.cmake
libuv-config.cmake
Add the installation prefix of "libuv" to CMAKE_PREFIX_PATH or set
"libuv_DIR" to a directory containing one of the above files. If "libuv"
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
CMakeLists.txt:10 (find_package)
-- Configuring incomplete, errors occurred!
After trial and error I have this compile command which still throws the same error: cmake -B cmake-build-release -DWHISPER_COREML=1 -DCMAKE_OSX_ARCHITECTURES="arm64" -DCMAKE_PREFIX_Path="/opt/homebrew/Cellar/libuv/1.49.2"
The homebrew libuv installation doesn't appear to have cmake files which I suspect is the core of the problem. So I ran variations of pkg-config libuv
and pkg-config --static --libs libuv REQUIRED
but it didn't help and at this point I really don't have a clue what I'm doing anymore.
What am I failing to do? How do you get this to compile on MacOS? It looks so perfect for my needs but I can't make it go!