-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
How do I compile to a shared library? without libc++_shared.so ? #30
Comments
Does this work: gcc -O3 -std=c11 -pthread -mavx -mavx2 -mfma -mf16c -fPIC -c ggml.c
g++ -O3 -std=c++11 -pthread --shared -static-libstdc++ whisper.cpp ggml.o -o libwhisper.so Then you can link g++ main.cpp -L. -lwhisper Also, I'm pretty sure you don't need the |
@azkadev can you please give some tips on how to create a minimal application with whisper like the one you are showing? I have not much experience in C++ or android application coding. |
I don't know tips, you can see my repo here, sorry my english is bad |
* Add rust as a dependency * Update README.md Co-authored-by: Jong Wook Kim <ilikekjw@gmail.com>
cmake build args fix
I want to experiment with using whisper into the app, but when I open it, an error occurs when the compiled library requires
libc++_shared.so
,i use this bash to build for android target
I have also tried this clang-linking-so-library-libc-shared-so, but it doesn't work
Error
can you give a build command so it doesn't need libc++_shared.so? sorry i'm still a beginner in cpp
The text was updated successfully, but these errors were encountered: