{"action":"created","issue":{"url":"https://api.github.com/repos/tvdzwan/hyperion/issues/368","labels_url":"https://api.github.com/repos/tvdzwan/hyperion/issues/368/labels{/name}","comments_url":"https://api.github.com/repos/tvdzwan/hyperion/issues/368/comments","events_url":"https://api.github.com/repos/tvdzwan/hyperion/issues/368/events","html_url":"https://github.com/tvdzwan/hyperion/issues/368","id":99913925,"number":368,"title":"Hyperion fails to build with on RPi2","user":{"login":"mrgreywater","id":2902403,"avatar_url":"https://avatars.githubusercontent.com/u/2902403?v=3","gravatar_id":"","url":"https://api.github.com/users/mrgreywater","html_url":"https://github.com/mrgreywater","followers_url":"https://api.github.com/users/mrgreywater/followers","following_url":"https://api.github.com/users/mrgreywater/following{/other_user}","gists_url":"https://api.github.com/users/mrgreywater/gists{/gist_id}","starred_url":"https://api.github.com/users/mrgreywater/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrgreywater/subscriptions","organizations_url":"https://api.github.com/users/mrgreywater/orgs","repos_url":"https://api.github.com/users/mrgreywater/repos","events_url":"https://api.github.com/users/mrgreywater/events{/privacy}","received_events_url":"https://api.github.com/users/mrgreywater/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-09T17:04:06Z","updated_at":"2015-08-10T10:29:26Z","closed_at":null,"body":"When compiling the source on the latest Raspbian using the [instructions provided](https://github.com/tvdzwan/hyperion/blob/master/CompileHowto.txt), it fails to build here:\r\n\r\n```\r\n[ 46%] Building CXX object libsrc/leddevice/CMakeFiles/leddevice.dir/moc_LedDevicePhilipsHue.cxx.o\r\nIn file included from /home/pi/hyperion/build/libsrc/leddevice/moc_LedDevicePhilipsHue.cxx:10:0:\r\n/home/pi/hyperion/build/libsrc/leddevice/../../../libsrc/leddevice/LedDevicePhilipsHue.h:137:72: error: expected primary-expression before ‘{’ token\r\nlibsrc/leddevice/CMakeFiles/leddevice.dir/build.make:143: recipe for target 'libsrc/leddevice/CMakeFiles/leddevice.dir/moc_LedDevicePhilipsHue.cxx.o' failed\r\nmake[2]: *** [libsrc/leddevice/CMakeFiles/leddevice.dir/moc_LedDevicePhilipsHue.cxx.o] Error 1\r\nCMakeFiles/Makefile2:832: recipe for target 'libsrc/leddevice/CMakeFiles/leddevice.dir/all' failed\r\nmake[1]: *** [libsrc/leddevice/CMakeFiles/leddevice.dir/all] Error 2\r\nMakefile:113: recipe for target 'all' failed\r\nmake: *** [all] Error 2\r\n```\r\n\r\nThe culprit is the following line: [LedDevicePhilipsHue.h:137](https://github.com/tvdzwan/hyperion/blob/e93bd2fb303be6b91e0c241efb30dc0a1bf04b2f/libsrc/leddevice/LedDevicePhilipsHue.h#L137)\r\n\r\nIt could be fixed by replacing it with\r\n```cpp\r\n\t\t\tfalse, int transitiontime = 1, std::vector<unsigned int> lightIds = std::vector<unsigned int>());\r\n```\r\n\r\nMaybe I'll create a pull request later."},"comment":{"url":"https://api.github.com/repos/tvdzwan/hyperion/issues/comments/129399393","html_url":"https://github.com/tvdzwan/hyperion/issues/368#issuecomment-129399393","issue_url":"https://api.github.com/repos/tvdzwan/hyperion/issues/368","id":129399393,"user":{"login":"mrgreywater","id":2902403,"avatar_url":"https://avatars.githubusercontent.com/u/2902403?v=3","gravatar_id":"","url":"https://api.github.com/users/mrgreywater","html_url":"https://github.com/mrgreywater","followers_url":"https://api.github.com/users/mrgreywater/followers","following_url":"https://api.github.com/users/mrgreywater/following{/other_user}","gists_url":"https://api.github.com/users/mrgreywater/gists{/gist_id}","starred_url":"https://api.github.com/users/mrgreywater/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrgreywater/subscriptions","organizations_url":"https://api.github.com/users/mrgreywater/orgs","repos_url":"https://api.github.com/users/mrgreywater/repos","events_url":"https://api.github.com/users/mrgreywater/events{/privacy}","received_events_url":"https://api.github.com/users/mrgreywater/received_events","type":"User","site_admin":false},"created_at":"2015-08-10T10:29:26Z","updated_at":"2015-08-10T10:29:26Z","body":"@ntim I was using the latest Raspbian, I downloaded it yesterday. It still uses a relatively outdated GCC4.6 though, and [doesn't fully support c++11](https://gcc.gnu.org/gcc-4.6/cxx0x_status.html).\r\nEither the instructions should be fixed to include updating to some newer gcc version, or (which would be simpler) keep gcc4.6 compatibility."}}