{"action":"created","issue":{"url":"https://api.github.com/repos/byzhang/leveldb/issues/8","labels_url":"https://api.github.com/repos/byzhang/leveldb/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/byzhang/leveldb/issues/8/comments","events_url":"https://api.github.com/repos/byzhang/leveldb/issues/8/events","html_url":"https://github.com/byzhang/leveldb/issues/8","id":59729979,"number":8,"title":"Failure to gyp leveldb.gyp on mac","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/byzhang/leveldb/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/byzhang/leveldb/labels/OpSys-OSX","name":"OpSys-OSX","color":"ededed"},{"url":"https://api.github.com/repos/byzhang/leveldb/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/byzhang/leveldb/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-04T00:15:35Z","updated_at":"2015-03-04T00:15:36Z","closed_at":"2015-03-04T00:15:35Z","body":"```\nI tried to generate XCode project file with gyp (latest svn sources r932) but \nget this error:\n\nkjkmacpro:leveldb kkowalczyk$ gyp\nTraceback (most recent call last):\n  File \"/usr/local/bin/gyp\", line 18, in <module>\n    sys.exit(gyp.main(sys.argv[1:]))\n  File \"/Library/Python/2.6/site-packages/gyp/__init__.py\", line 448, in main\n    options.circular_check)\n  File \"/Library/Python/2.6/site-packages/gyp/__init__.py\", line 87, in Load\n    depth, generator_input_info, check, circular_check)\n  File \"/Library/Python/2.6/site-packages/gyp/input.py\", line 2224, in Load\n    depth, check)\n  File \"/Library/Python/2.6/site-packages/gyp/input.py\", line 379, in LoadTargetBuildFile\n    build_file_path)\n  File \"/Library/Python/2.6/site-packages/gyp/input.py\", line 998, in ProcessVariablesAndConditionsInDict\n    build_file)\n  File \"/Library/Python/2.6/site-packages/gyp/input.py\", line 1013, in ProcessVariablesAndConditionsInList\n    ProcessVariablesAndConditionsInDict(item, is_late, variables, build_file)\n  File \"/Library/Python/2.6/site-packages/gyp/input.py\", line 927, in ProcessVariablesAndConditionsInDict\n    expanded = ExpandVariables(value, is_late, variables, build_file)\n  File \"/Library/Python/2.6/site-packages/gyp/input.py\", line 697, in ExpandVariables\n    ' in ' + build_file\nKeyError: 'Undefined variable library in leveldb.gyp while trying to load \nleveldb.gyp'\n\nI know next to nothing about gyp, but it seems like a problem with lveldb.gyp\n\nI'm on Mac 10.6.7, leveldb is r30, python 2.6.1\n\n```\n\nOriginal issue reported on code.google.com by `kkowalczyk@gmail.com` on 7 Jun 2011 at 4:17"},"comment":{"url":"https://api.github.com/repos/byzhang/leveldb/issues/comments/77070180","html_url":"https://github.com/byzhang/leveldb/issues/8#issuecomment-77070180","issue_url":"https://api.github.com/repos/byzhang/leveldb/issues/8","id":77070180,"user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T00:15:36Z","updated_at":"2015-03-04T00:15:36Z","body":"```\nleveldb.gyp is interdependent with the Chromium build, and not intended to \ncreate a standalone project.\n\nIt would be possible to create a standalone gyp file that emulates the \nMakefile, though you still end up running an external script (either gyp or \nmake) to sync to the latest changes.\n\nI would recommend: pre-build libleveldb.a with make, add it to your project, \nand make sure leveldb/include is in your header search paths.\n```\n\nOriginal comment by `ashoema...@gmail.com` on 2 Jul 2011 at 7:42"}}