{"action":"created","issue":{"url":"https://api.github.com/repos/servo/servo/issues/12672","repository_url":"https://api.github.com/repos/servo/servo","labels_url":"https://api.github.com/repos/servo/servo/issues/12672/labels{/name}","comments_url":"https://api.github.com/repos/servo/servo/issues/12672/comments","events_url":"https://api.github.com/repos/servo/servo/issues/12672/events","html_url":"https://github.com/servo/servo/issues/12672","id":168545581,"number":12672,"title":"Unable to build on Mac because the build can't find libavformat/avformat.h","user":{"login":"bzbarsky","id":1457979,"avatar_url":"https://avatars.githubusercontent.com/u/1457979?v=3","gravatar_id":"","url":"https://api.github.com/users/bzbarsky","html_url":"https://github.com/bzbarsky","followers_url":"https://api.github.com/users/bzbarsky/followers","following_url":"https://api.github.com/users/bzbarsky/following{/other_user}","gists_url":"https://api.github.com/users/bzbarsky/gists{/gist_id}","starred_url":"https://api.github.com/users/bzbarsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bzbarsky/subscriptions","organizations_url":"https://api.github.com/users/bzbarsky/orgs","repos_url":"https://api.github.com/users/bzbarsky/repos","events_url":"https://api.github.com/users/bzbarsky/events{/privacy}","received_events_url":"https://api.github.com/users/bzbarsky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2016-07-31T23:59:00Z","updated_at":"2016-08-01T18:23:54Z","closed_at":null,"body":"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:\r\n\r\n     \"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang\" -cc1 -triple x86_64-apple-macosx10.10.0 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name vmrs.c -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 253.9 -v -gdwarf-2 -dwarf-column-info -ffunction-sections -fdata-sections -coverage-file /Users/bzbarsky/mozilla/servo/target/debug/build/video-metadata-68095025ad9189db/out/ffi/vmrs.o -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.0.2 -O0 -fdebug-compilation-dir /Users/bzbarsky/mozilla/servo/.cargo/git/checkouts/video-metadata-rs-58c16900f00fb0a1/master -ferror-limit 19 -fmessage-length 0 -stack-protector 1 -mstackrealign -fblocks -fobjc-runtime=macosx-10.10.0 -fencode-extended-block-signature -fmax-type-align=16 -fdiagnostics-show-option -o /Users/bzbarsky/mozilla/servo/target/debug/build/video-metadata-68095025ad9189db/out/ffi/vmrs.o -x c ffi/vmrs.c\r\n    clang -cc1 version 7.0.2 based upon LLVM 3.7.0svn default target x86_64-apple-darwin14.5.0\r\n    ignoring nonexistent directory \"/usr/local/include\"\r\n    #include \"...\" search starts here:\r\n    #include <...> search starts here:\r\n     /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.0.2/include\r\n     /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include\r\n     /usr/include\r\n     /System/Library/Frameworks (framework directory)\r\n     /Library/Frameworks (framework directory)\r\n    End of search list.\r\n    In file included from ffi/vmrs.c:1:\r\n    ffi/vmrs.h:4:10: fatal error: 'libavformat/avformat.h' file not found\r\n    #include <libavformat/avformat.h>\r\n             ^\r\n\r\nI tried `port install ffmpeg` and `port install ffmpeg-devel`, both of which install the relevant header, but both put it in `/opt/local/include/libavformat/avformat.h` and the above header search path does not contain `/opt/local/include`.  Note the `ignoring nonexistent directory \"/usr/local/include\"` bit, in case it matters."},"comment":{"url":"https://api.github.com/repos/servo/servo/issues/comments/236663830","html_url":"https://github.com/servo/servo/issues/12672#issuecomment-236663830","issue_url":"https://api.github.com/repos/servo/servo/issues/12672","id":236663830,"user":{"login":"bzbarsky","id":1457979,"avatar_url":"https://avatars.githubusercontent.com/u/1457979?v=3","gravatar_id":"","url":"https://api.github.com/users/bzbarsky","html_url":"https://github.com/bzbarsky","followers_url":"https://api.github.com/users/bzbarsky/followers","following_url":"https://api.github.com/users/bzbarsky/following{/other_user}","gists_url":"https://api.github.com/users/bzbarsky/gists{/gist_id}","starred_url":"https://api.github.com/users/bzbarsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bzbarsky/subscriptions","organizations_url":"https://api.github.com/users/bzbarsky/orgs","repos_url":"https://api.github.com/users/bzbarsky/repos","events_url":"https://api.github.com/users/bzbarsky/events{/privacy}","received_events_url":"https://api.github.com/users/bzbarsky/received_events","type":"User","site_admin":false},"created_at":"2016-08-01T18:23:54Z","updated_at":"2016-08-01T18:23:54Z","body":"Per irc discussion, using pkg-config would also work for macports, because then the right include path would get set."}}
{"actor":{"display_login":"bzbarsky"}}