-
Notifications
You must be signed in to change notification settings - Fork 69
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: libflite not found #157
Comments
Why did you set |
Hey @retokromer , thanks for your reply. Actually, I successfully installed it by deleting --with-libflite after I posted this issue. And why did I set --with-openssl@1.1? I'm not sure. I used brew options homebrew-ffmpeg/ffmpeg/ffmpeg --compact to get it. I believe I might have installed another tool that depends on openssl@1.1, so I have multiple versions of OpenSSL in my system. Thanks again. |
If I remember carefully, it’s MacPorts. |
I've found a guide here: https://stackoverflow.com/a/61189269/435093 — maybe this works? |
Hey @slhck In fact, I have already compiled and installed it. But it doesn't seem to be working.
So, it looks like I have to install MacPorts. To be honest, I don't want to install both Homebrew and MacPorts on my computer at the same time. |
It would be good if you could already provide more background on what you've tried and where you got stuck, to avoid us having to research things that you already know. Regarding the specific problem, it looks like you already have the library compiled and installed but ffmpeg is not finding it. Per the error message, can you access
That makes sense. (I mean, not installing both.) |
As long as I know, there is no Homebrew formula for Flite. |
Sure, I am glad to provide this log. Where can I find it? |
I am travelling at the moment. Next weekend I can check what I did, when I added the option. I used it last year with the students (more for fun rather than seriously). |
Please enjoy your travelling, I am really thankful for your reply. Actually, I just need fdk-aac at the moment. So, even if my ffmpeg is without libflite, I am good now. |
I am afraid I don't know where it is stored exactly; I would expect it to be in the same directory as the last lines from the log: |
I am not good with Clang. Could it be because |
So your Homebrew installation lives in Assuming the headers are in /usr/local/include, you should add Can you try with:
|
I try
It doesn’t work. but you inspired me. Then I tried this
and I reinstalled it successfully. So, I am summarizing how to install FFmpeg on Apple Silicon.
It works for me. |
Glad you got it solved. It's certainly not the cleanest solution, and I thought passing the CPPFLAGS would work, but having a symlink in place is surely also works. It's just that if you ever decide to update flite you would need to modify/update the symlinks. |
Is it possible to update here homebrew-ffmpeg/Formula/ffmpeg.rb Lines 207 to 208 in 51676b0
like
maybe. I am not sure. |
No, because we would not want to hardcode other paths into a Formula. What if you wanted to install flite somewhere else? That's where the environment variables would come into play, by passing in the extra include paths to the compiler. I am not sure why they are not working though. |
You are right, forget about my dirty solution. |
You have tested this? If so I'd love to know how you run both package managers concurrently on a system without conflict, and how you pursuaded HB to use MP packages (or any non-HB packages) as dependencies because HB is definitely not designed to work that way out of the box. |
Indeed, my students did it last year. The path issue has already been discussed earlier in this thread. This was just meant as a quick and dirty solution. Yet if this year they are still interested in experimenting text to speech synthesis, then they should compile Flite manually. Note that writing the corresponding Homebrew formula would non be difficult. |
I don't think so. Maybe when your students tried, there was a hombrew core formula for flite. the --with-libflite option should be removed from the formula |
No, there wasn’t.
Why? It was included as option to FFmpeg twelve years ago. I added it here after my last year’s course and I am not going to remove it. You are completely free not to use it. |
Because HB does not support non-HB dependencies, thus this is a broken formula. |
There is a solution that involves creating a symlink. I will check if it's possible to link against non-Homebrew libraries that are installed locally. The flag I suggested does not seem to be the right one. So the option works, but requires some manual changes. In any case the user has to compile the dependency manually. I am against removing the option. |
No, not at all: it’s part of the official FFmpeg, and we wish to include the option in our Homebrew formula as well. As said, our formula works in different ways, one of them was described in detail above. Why do you not write a Homebrew formula for Flite? Here in this repository that is out of scope. |
It's not supported, but sure, check. The rest of us understand that you cannot maintain a functioning, up-to-date, dependency hierarchy when you start mixing in unmanaged packages.
monkeying with homebrew and breaking the mechanics is a hack. Not a solution |
I am not a maintainer for flite or homebrew core |
You have to be neither to do that. Anyone can provide a formula. |
As said, there is a solution that I'm well aware of is not a reliable one. Please take this kind of demeaning and snarky attitude somewhere else. You're free to not use this option if it doesn't work for you. |
Indeed, I already said it above. |
Bug Reports
homebrew-ffmpeg
tap only. Please do not file a bug report if your issue relates to any of the following:ffmpeg
formula officially supplied by Homebrewffmpeg-user
mailing list)Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information.
brew update
and can still reproduce the problembrew doctor
, fixed all issues and can still reproduce the problembrew config
andbrew doctor
and included their output with my issueffmpeg
versionExpected behavior
Installed ffmpeg
Actual behavior
ERROR: libflite not found
Command
The exact command you were trying to run:
The output that you got:
Output of
brew config
andbrew doctor
commandsbrew config
:brew doctor
:The text was updated successfully, but these errors were encountered: