{"action":"created","issue":{"url":"https://api.github.com/repos/facebookexperimental/RocketSpeed/issues/1","labels_url":"https://api.github.com/repos/facebookexperimental/RocketSpeed/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/facebookexperimental/RocketSpeed/issues/1/comments","events_url":"https://api.github.com/repos/facebookexperimental/RocketSpeed/issues/1/events","html_url":"https://github.com/facebookexperimental/RocketSpeed/issues/1","id":117826772,"number":1,"title":"Build Errors in both Linux and Mac OS X Environements","user":{"login":"sviyer","id":5720192,"avatar_url":"https://avatars.githubusercontent.com/u/5720192?v=3","gravatar_id":"","url":"https://api.github.com/users/sviyer","html_url":"https://github.com/sviyer","followers_url":"https://api.github.com/users/sviyer/followers","following_url":"https://api.github.com/users/sviyer/following{/other_user}","gists_url":"https://api.github.com/users/sviyer/gists{/gist_id}","starred_url":"https://api.github.com/users/sviyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sviyer/subscriptions","organizations_url":"https://api.github.com/users/sviyer/orgs","repos_url":"https://api.github.com/users/sviyer/repos","events_url":"https://api.github.com/users/sviyer/events{/privacy}","received_events_url":"https://api.github.com/users/sviyer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-19T14:37:34Z","updated_at":"2015-11-20T15:07:53Z","closed_at":null,"body":"I cloned RocketSpeed in both Mac OS X (10.11.1) and Ubuntu (LTS 14.04) and I get identical errors:\r\n\r\nUnable to find gflags/gflags.h\r\n\r\nI made a quick hack to add the following in Makefile (Line 38)\r\nPLATFORM_CXXFLAGS += -I./external/gflags/include\r\n\r\nThis fixed the build problem. \r\n\r\nHowever, I got errors in server/main.cc that GFLAGS is not defined. Again, I made a simple hack of \r\n#define GFLAGS gflags\r\n\r\n[While grepping I saw GFLAGS = google, and since version 2.x, it should be gflags]\r\n\r\nThis fixed the error in server/main.cc\r\n\r\nI then got an error in server/server.cc \r\n#ifndef GFLAGS\r\n#error \"gflags is required for rocketspeed\"\r\n#endif\r\n\r\nI then added a global compilation flag -DGFLAGS=gflags (Again in makefile, same place as above) and I get tons of errors:\r\nsrc/server/server.o: In function `__static_initialization_and_destruction_0':\r\n/home/sviyer/code/mqtte/RocketSpeed/src/server/server.cc:38: undefined reference to `gflags::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, char const*, void*, void*)'\r\n/home/sviyer/code/mqtte/RocketSpeed/src/server/server.cc:39: undefined reference to `gflags::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, char const*, void*, void*)'\r\n/home/sviyer/code/mqtte/RocketSpeed/src/server/server.cc:42: undefined reference to `gflags::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, char const*, void*, void*)'\r\n/home/sviyer/code/mqtte/RocketSpeed/src/server/server.cc:45: undefined reference to `gflags::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, char const*, void*, void*)'\r\n/home/sviyer/code/mqtte/RocketSpeed/src/server/server.cc:48: undefined reference to `gflags::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, char const*, void*, void*)'\r\nsrc/server/server.o:/home/sviyer/code/mqtte/RocketSpeed/src/server/server.cc:52: more undefined references to `gflags::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, char const*, void*, void*)' follow\r\n\r\n\r\nJust wanted to check if it is building for everyone, or if I am the only one facing issues \r\n\r\nBut the behavior is identical between Mac OS X and Ubuntu (Running using Parallels in the same machine)"},"comment":{"url":"https://api.github.com/repos/facebookexperimental/RocketSpeed/issues/comments/158425968","html_url":"https://github.com/facebookexperimental/RocketSpeed/issues/1#issuecomment-158425968","issue_url":"https://api.github.com/repos/facebookexperimental/RocketSpeed/issues/1","id":158425968,"user":{"login":"dhruba","id":155266,"avatar_url":"https://avatars.githubusercontent.com/u/155266?v=3","gravatar_id":"","url":"https://api.github.com/users/dhruba","html_url":"https://github.com/dhruba","followers_url":"https://api.github.com/users/dhruba/followers","following_url":"https://api.github.com/users/dhruba/following{/other_user}","gists_url":"https://api.github.com/users/dhruba/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruba/subscriptions","organizations_url":"https://api.github.com/users/dhruba/orgs","repos_url":"https://api.github.com/users/dhruba/repos","events_url":"https://api.github.com/users/dhruba/events{/privacy}","received_events_url":"https://api.github.com/users/dhruba/received_events","type":"User","site_admin":false},"created_at":"2015-11-20T15:07:53Z","updated_at":"2015-11-20T15:07:53Z","body":"Are you running \"make release\"?"}}