{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/node-canvas/issues/239","labels_url":"https://api.github.com/repos/Automattic/node-canvas/issues/239/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/node-canvas/issues/239/comments","events_url":"https://api.github.com/repos/Automattic/node-canvas/issues/239/events","html_url":"https://github.com/Automattic/node-canvas/issues/239","id":9417366,"number":239,"title":"Compile Errors on XP with Visual Studio 2005 - Solved","user":{"login":"hobberwickey","id":2702756,"avatar_url":"https://avatars.githubusercontent.com/u/2702756?v=3","gravatar_id":"","url":"https://api.github.com/users/hobberwickey","html_url":"https://github.com/hobberwickey","followers_url":"https://api.github.com/users/hobberwickey/followers","following_url":"https://api.github.com/users/hobberwickey/following{/other_user}","gists_url":"https://api.github.com/users/hobberwickey/gists{/gist_id}","starred_url":"https://api.github.com/users/hobberwickey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hobberwickey/subscriptions","organizations_url":"https://api.github.com/users/hobberwickey/orgs","repos_url":"https://api.github.com/users/hobberwickey/repos","events_url":"https://api.github.com/users/hobberwickey/events{/privacy}","received_events_url":"https://api.github.com/users/hobberwickey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2012-12-19T22:33:37Z","updated_at":"2015-02-25T03:02:17Z","closed_at":null,"body":"I've spent the better part of today trying to get this to compile, and finally did so I thought I share what I did (not sure if this is the right place, they seem like errors in node-gyp). \r\n\r\nThe first error was\r\n\r\n\"missing \";\" before identifier \"srwlock_\" in C:\\Documents and Settings\\<user-name>\\.node-gyp\\0.8.16\\deps\\uv\\include\\uv-private\\uv-win.h on line 187\r\n\r\nTo fix it I just comment out line 187, the problem is that SWRLOCK is not a valid in Windows XP (I think)\r\n\r\nThe next error was\r\n\r\nLINK: fatal error LNK1181: cannot open file 'C:Documents.obj'...\r\n\r\nThe problem here was that the compiler was choking on the spaces in the pathname, so I downloaded the source, and ran\r\n\r\nnode-gyp configure\r\n\r\nThen in I opened the project file in ../node-canvas/build and in \r\n\r\nproject->canvas Properties->Configuration Properties->Linker ->Input->Additional Dependencies\r\n\r\nI put quotes around \"Documents and Settings\" and took out the variable in the pathname (I forget what it was) and replaced it with the actual directory node.lib was in. After that it compiled, and canvas.node was in the Debug directory. \r\n\r\nNot easy but it worked. Hope this helps someone. \r\n"},"comment":{"url":"https://api.github.com/repos/Automattic/node-canvas/issues/comments/75897194","html_url":"https://github.com/Automattic/node-canvas/issues/239#issuecomment-75897194","issue_url":"https://api.github.com/repos/Automattic/node-canvas/issues/239","id":75897194,"user":{"login":"Mugu-FG","id":8457414,"avatar_url":"https://avatars.githubusercontent.com/u/8457414?v=3","gravatar_id":"","url":"https://api.github.com/users/Mugu-FG","html_url":"https://github.com/Mugu-FG","followers_url":"https://api.github.com/users/Mugu-FG/followers","following_url":"https://api.github.com/users/Mugu-FG/following{/other_user}","gists_url":"https://api.github.com/users/Mugu-FG/gists{/gist_id}","starred_url":"https://api.github.com/users/Mugu-FG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mugu-FG/subscriptions","organizations_url":"https://api.github.com/users/Mugu-FG/orgs","repos_url":"https://api.github.com/users/Mugu-FG/repos","events_url":"https://api.github.com/users/Mugu-FG/events{/privacy}","received_events_url":"https://api.github.com/users/Mugu-FG/received_events","type":"User","site_admin":false},"created_at":"2015-02-25T03:02:17Z","updated_at":"2015-02-25T03:02:17Z","body":"@hobberwickey I have the same problem when I try to install the node-oracledb. \r\n\r\nLINK: fatal error LNK1181: cannot open file 'C:Documents.obj'\r\n\r\nSo Can you let me know how to fix the file path issue.\r\n\r\nThanks"}}