Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upUnable to build on Mac because the build can't find libavformat/avformat.h #12672
Comments
|
I had the same exact issue today. I have a "shady" workaround (works for now) , but not the solution |
|
Look here. |
|
Yes, when I've seen this (on our OSX builders), we fixed it by doing: Which I got from: http://stackoverflow.com/a/26404710 |
|
because I've run it before already, obviously (can't really build Firefox otherwise!). |
|
I'm getting a similar error on Linux when I run the nightly download:
|
|
In windows nighly builds same error with missing avformat-57.dll and avutil-55.dll on servo start. |
|
@larsbergstrom what version of OSX do you have there? I bet it is only El Capitan that does this. I had quite a few issues with paths over the past year. |
|
Should we turn ffmpeg off again? |
|
@clstl I have Yosemite. |
|
That's really weird, because on my mac (10.11) and our builders (10.10), the files are in |
|
I had this issue earlier, |
|
@larsbergstrom Presumably both your mac and your builders are using homebrew. I'm using macports. The headers end up in a different place there: |
|
@bzbarsky Thanks for the clarification and I apologize for my assumption! Due, in part, to most CI systems that support OSX having moved over to HomeBrew, I'd forgotten that macports was still being supported and used :-) We may have to consider adding a macOS builder that only has macports stuff installed and no homebrew if we want to continue supporting this developer configuration. Added an issue to our infra repo for discussion: servo/saltfs#452 |
|
I have a very similar problem on Fedora. My libavformat header files are installed in /usr/include/ffmpeg and so they aren't found by a simple include. They need -I/usr/include/ffmpeg set. The Rust build files should be using pkg-config to locate these. |
|
@jbriggs-zvelo: Look here. |
|
Per irc discussion, using pkg-config would also work for macports, because then the right include path would get set. |
|
Yep, confirmed that things build correctly now. Thanks! |
I tried following the directions at https://github.com/servo/servo/blob/master/README.md to compile Servo on mac. The build dies, like so:
I tried
port install ffmpegandport install ffmpeg-devel, both of which install the relevant header, but both put it in/opt/local/include/libavformat/avformat.hand the above header search path does not contain/opt/local/include. Note theignoring nonexistent directory "/usr/local/include"bit, in case it matters.