{"action":"created","issue":{"url":"https://api.github.com/repos/osrf/homebrew-simulation/issues/47","repository_url":"https://api.github.com/repos/osrf/homebrew-simulation","labels_url":"https://api.github.com/repos/osrf/homebrew-simulation/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/osrf/homebrew-simulation/issues/47/comments","events_url":"https://api.github.com/repos/osrf/homebrew-simulation/issues/47/events","html_url":"https://github.com/osrf/homebrew-simulation/issues/47","id":108473798,"number":47,"title":"Ogre fails to build on 10.11 / Xcode 7","user":{"login":"LorenzMeier","id":1208119,"avatar_url":"https://avatars.githubusercontent.com/u/1208119?v=3","gravatar_id":"","url":"https://api.github.com/users/LorenzMeier","html_url":"https://github.com/LorenzMeier","followers_url":"https://api.github.com/users/LorenzMeier/followers","following_url":"https://api.github.com/users/LorenzMeier/following{/other_user}","gists_url":"https://api.github.com/users/LorenzMeier/gists{/gist_id}","starred_url":"https://api.github.com/users/LorenzMeier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LorenzMeier/subscriptions","organizations_url":"https://api.github.com/users/LorenzMeier/orgs","repos_url":"https://api.github.com/users/LorenzMeier/repos","events_url":"https://api.github.com/users/LorenzMeier/events{/privacy}","received_events_url":"https://api.github.com/users/LorenzMeier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":29,"created_at":"2015-09-26T15:01:18Z","updated_at":"2016-03-11T18:42:25Z","closed_at":null,"body":"It fails to build because it can't find the framework for Xcode 6.x. Would it be possible that one of the maintainers builds a bottle for Ogre and uploads it? That would make the experience more stable.\r\n\r\nOtherwise, could you maybe have a quick look at a CMake level patch to pick the 10.11 deployment target instead of 10.10? I'm not up to speed on CMake.\r\n\r\n```\r\n==> cmake -DCMAKE_OSX_ARCHITECTURES='x86_64' -DOGRE_BUILD_PLUGIN_CG=OFF -DCMAKE_C_FLAGS_RELEASE= -DCMAKE_CXX_FLAGS_RELEASE= -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/ogre/1.7.4 -DCMAKE_BUILD_T\r\n==> make install\r\nLast 15 lines from /Users/lorenzmeier/Library/Logs/Homebrew/ogre/02.make:\r\nIn file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:434:\r\n/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__config:23:10: fatal error: 'unistd.h' file not found\r\n#include <unistd.h>\r\n         ^\r\n1 error generated.\r\n1 error generated.\r\nmake[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreAlignedAllocator.cpp.o] Error 1\r\nmake[2]: *** Waiting for unfinished jobs....\r\n1 error generated.\r\nmake[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreAnimable.cpp.o] Error 1\r\nmake[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreAnimationState.cpp.o] Error 1\r\n1 error generated.\r\nmake[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreAnimation.cpp.o] Error 1\r\nmake[1]: *** [OgreMain/CMakeFiles/OgreMain.dir/all] Error 2\r\nmake: *** [all] Error 2\r\n\r\nREAD THIS: https://git.io/brew-troubleshooting\r\nIf reporting this issue please do so at (not Homebrew/homebrew):\r\n  https://github.com/osrf/homebrew-simulation/issues\r\n```"},"comment":{"url":"https://api.github.com/repos/osrf/homebrew-simulation/issues/comments/195493063","html_url":"https://github.com/osrf/homebrew-simulation/issues/47#issuecomment-195493063","issue_url":"https://api.github.com/repos/osrf/homebrew-simulation/issues/47","id":195493063,"user":{"login":"scpeters","id":3650755,"avatar_url":"https://avatars.githubusercontent.com/u/3650755?v=3","gravatar_id":"","url":"https://api.github.com/users/scpeters","html_url":"https://github.com/scpeters","followers_url":"https://api.github.com/users/scpeters/followers","following_url":"https://api.github.com/users/scpeters/following{/other_user}","gists_url":"https://api.github.com/users/scpeters/gists{/gist_id}","starred_url":"https://api.github.com/users/scpeters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scpeters/subscriptions","organizations_url":"https://api.github.com/users/scpeters/orgs","repos_url":"https://api.github.com/users/scpeters/repos","events_url":"https://api.github.com/users/scpeters/events{/privacy}","received_events_url":"https://api.github.com/users/scpeters/received_events","type":"User","site_admin":false},"created_at":"2016-03-11T18:42:25Z","updated_at":"2016-03-11T18:42:25Z","body":"I'm now seeing the same build errors as @justinthomas on my 10.10 machine that has Xcode installed. It seems to build properly if only the command-line tools are installed (though that required a recent fix #85). Strangely, if I `brew install ogre --build-from-source` with `--debug` and then repeat some of the commands in a debug bash terminal, it is able to finish successfully."}}