When compiling the whisper.cpp project, it will generate the .so and .so.1 files in the whisper.cpp/build/src/ directory. So, there are two solutions:
Move the .so and .so.1 files to the directory where the whisper binary is located. This works, but you may prefer to have everything packed into a single binary, so solution 2 might be more interesting for you.
Compile the program with the libraries statically linked: To do this, you need to modify the CMakeLists.txt file. Look for the following section:
This enables shared linking, look at the code inside the 'else'
if (MINGW)
set(BUILD_SHARED_LIBS_DEFAULT OFF)
else()
set(BUILD_SHARED_LIBS_DEFAULT ON) # change this
endif()
To disable it and use static linking, change it to:
set(BUILD_SHARED_LIBS_DEFAULT OFF)
This change will make CMake build the libraries statically, so you won't need the .so files anymore.