-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Building on Mac Fails #3
Comments
So based on the errors above, I ran "homebrew install libtag". And this resulted in Pouring taglib-1.11.1.mojave.bottle.tar.gz. Running cmake again:
But then running make results in the following error:
|
Thanks for your continuous feedback, appreciate it, since I don’t have access to a Mac and there seem no VMs about. :-( Good work on "taglib"! You also need the development headers for libebur128, maybe this library can be installed with homebrew, too? There is a formula in homebrew-core. Hint: I saw in the formula that it has a dependency on "speex". If homebrew does not resolve that, you might also have to install speex before you can brew libebur128. Taglib 1.11.1 and libebur128 1.2.4 are good versions to work with. I much hope you get it going and we can somehow pusblish an easy "recipe" for Mac—would be a great relief for other Mac users, too! |
If homebrew can resolve dependencies automatically, you could probably simply add something like this in your loudgain formula:
Another question: Does homebrew always include the development headers when installing something and do you by chance have ffmpeg installed? That’s because I tried to keep loudgain as versatile as possible while having as few dependencies as possibe (really only cmake, pkg-config for building, and libtag, libebur128 and some of the FFmpeg libraries for running). |
Just talked to a very helpful person on the #machomebrew IRC channel. He tells me the following:
This could mean if you add
in your loudgain formula, we should get all the header files needed for compilation and all libraries needed to run loudgain. For best results (i.e., least upstream bugs) …
Let me know if this works out. |
You also probably found a bug, congratulations! :-) |
Yes, I am running MPV head and FFMPEG head. I can uninstall if needed for testing. Manually installing via brew the following, shows:
I am getting closer but still errors...
|
Hmm. Looks like it tries to "cmake ." instead of "mkdir build && cd build" → "cmake .." like in manual compilation. Wonder how that can be fixed. Is there something like a "pre-build" step in homebrew formulae that could be used to create the build dir and change into it? Maybe more like:
|
Coming back to "manual install": Now that |
|
Please try commit 97cbaab. I try to use <util.h> instead which should have the needed stuff on Mac OS X. |
|
Trying MacOS turns out to be a Pandora’s Box … thanks for testing! |
|
a92aefb removes the obsolete |
Wasn’t so obsolete, might want to try 259a920 … |
Any news? I’d much like to get a working and homebrew-installable MacOS version 0.5.4 out ;-) |
For the manual build, it also errors out:
|
Seems like clang (?) doesn’t find the FFmpeg libraries in I had access to a 10.14.04 Mojave iMac today, for a few minutes, and interestingly enough, got it compiled and working using Homebrew, by using brew install --HEAD libtag
brew install --HEAD Moonbase59/tap/loudgain I wonder what brew does differently. Have you got any ideas (and are you actually a programmer)? The formula used is here. |
I‘ll release a version 0.5.4 tomorrow that‘ll build with Homebrew, but I suggest investigating further in a workable manual build and leave this issue open for the time being. |
MacOS 10.14+ broke linking by using -isysroot which excludes |
/usr/local is the prefix used by homebrew, but the other popular packager on macOS is MacPorts, which uses /opt/local. Can this directory be added as well? |
Manual building on Mac fails at the $ cmake .. command.
And the logfile is attached.
CMakeOutput.log
The text was updated successfully, but these errors were encountered: