{"action":"created","issue":{"url":"https://api.github.com/repos/google/j2objc/issues/665","repository_url":"https://api.github.com/repos/google/j2objc","labels_url":"https://api.github.com/repos/google/j2objc/issues/665/labels{/name}","comments_url":"https://api.github.com/repos/google/j2objc/issues/665/comments","events_url":"https://api.github.com/repos/google/j2objc/issues/665/events","html_url":"https://github.com/google/j2objc/issues/665","id":118229994,"number":665,"title":"Building all all_frameworks fails when compiling protobuf","user":{"login":"JamesMcIntosh","id":455724,"avatar_url":"https://avatars.githubusercontent.com/u/455724?v=3","gravatar_id":"","url":"https://api.github.com/users/JamesMcIntosh","html_url":"https://github.com/JamesMcIntosh","followers_url":"https://api.github.com/users/JamesMcIntosh/followers","following_url":"https://api.github.com/users/JamesMcIntosh/following{/other_user}","gists_url":"https://api.github.com/users/JamesMcIntosh/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesMcIntosh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesMcIntosh/subscriptions","organizations_url":"https://api.github.com/users/JamesMcIntosh/orgs","repos_url":"https://api.github.com/users/JamesMcIntosh/repos","events_url":"https://api.github.com/users/JamesMcIntosh/events{/privacy}","received_events_url":"https://api.github.com/users/JamesMcIntosh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-22T00:37:27Z","updated_at":"2016-03-21T16:15:42Z","closed_at":null,"body":"When trying to build the project using the following command compilation fails.\r\n```\r\nmake dist all_frameworks\r\n```\r\nThe error message\r\n```\r\nXcode 7.1.1 Build version 7B1005\r\nApple LLVM version 7.0.0 (clang-700.1.76)\r\nTarget: x86_64-apple-darwin15.0.0\r\n...\r\nc++ -MD -c -o /Users/james/repos/3rd-party/j2objc/protobuf/compiler/build_result/google/protobuf/compiler/j2objc/j2objc_enum.o -x c++ -stdlib=libc++ -Isrc -I../google/src src/google/protobuf/compiler/j2objc/j2objc_enum.cc\r\nIn file included from src/google/protobuf/compiler/j2objc/j2objc_enum.cc:35:\r\nsrc/google/protobuf/compiler/j2objc/j2objc_enum.h:41:10: fatal error: 'google/protobuf/stubs/common.h' file not found\r\n#include <google/protobuf/stubs/common.h>\r\n```\r\nI checked that the file common.h does exist ./protobuf/runtime/src/com/google/protobuf/common.h\r\n\r\nI see that there was some discussion by Keith about breaking apart the frameworks and all_frameworks targets because 'it wont work'. I could find no information as to why it wont work or how to get it to work.\r\nhttps://groups.google.com/forum/embed/#!topic/j2objc-discuss/6u7MjcL0n8o\r\n"},"comment":{"url":"https://api.github.com/repos/google/j2objc/issues/comments/199361677","html_url":"https://github.com/google/j2objc/issues/665#issuecomment-199361677","issue_url":"https://api.github.com/repos/google/j2objc/issues/665","id":199361677,"user":{"login":"kstanger","id":6548109,"avatar_url":"https://avatars.githubusercontent.com/u/6548109?v=3","gravatar_id":"","url":"https://api.github.com/users/kstanger","html_url":"https://github.com/kstanger","followers_url":"https://api.github.com/users/kstanger/followers","following_url":"https://api.github.com/users/kstanger/following{/other_user}","gists_url":"https://api.github.com/users/kstanger/gists{/gist_id}","starred_url":"https://api.github.com/users/kstanger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kstanger/subscriptions","organizations_url":"https://api.github.com/users/kstanger/orgs","repos_url":"https://api.github.com/users/kstanger/repos","events_url":"https://api.github.com/users/kstanger/events{/privacy}","received_events_url":"https://api.github.com/users/kstanger/received_events","type":"User","site_admin":false},"created_at":"2016-03-21T16:15:41Z","updated_at":"2016-03-21T16:15:41Z","body":"If you don't need the protobuf compiler or runtime, then just run \"make\ndist frameworks\".\n\nIf you do need protocol buffers, then I recommend installing version 2.6.1\n<https://github.com/google/protobuf/releases/tag/v2.6.1> using these\ninstructions <https://github.com/google/protobuf/blob/master/src/README.md>\nwhich will install it in /usr/local. This is where j2objc will expect to\nfind the libraries and public headers to build against. You will also need\nto define an environment variable \"PROTOBUF_ROOT_DIR\" and set it to the\nlocation where the protobuf distribution was extracted. This is where\nj2objc will find the .java and .proto sources it needs to build the runtime\nlibrary.\n\nOn Sun, 20 Mar 2016 at 09:11 Jasm Sison <notifications@github.com> wrote:\n\n> Use homebrew <http://brew.sh/> to install the protobuf, that contains\n> everything you need to make a succesful build on j2objc.\n>\n> brew install protobuf\n>\n> —\n> You are receiving this because you commented.\n> Reply to this email directly or view it on GitHub\n> <https://github.com/google/j2objc/issues/665#issuecomment-198928960>\n>\n"}}