{"action":"created","issue":{"url":"https://api.github.com/repos/neovim/neovim/issues/810","labels_url":"https://api.github.com/repos/neovim/neovim/issues/810/labels{/name}","comments_url":"https://api.github.com/repos/neovim/neovim/issues/810/comments","events_url":"https://api.github.com/repos/neovim/neovim/issues/810/events","html_url":"https://github.com/neovim/neovim/pull/810","id":35003700,"number":810,"title":"[WIP] Compiling under Windows","user":{"login":"equalsraf","id":715238,"avatar_url":"https://avatars.githubusercontent.com/u/715238?v=3","gravatar_id":"","url":"https://api.github.com/users/equalsraf","html_url":"https://github.com/equalsraf","followers_url":"https://api.github.com/users/equalsraf/followers","following_url":"https://api.github.com/users/equalsraf/following{/other_user}","gists_url":"https://api.github.com/users/equalsraf/gists{/gist_id}","starred_url":"https://api.github.com/users/equalsraf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/equalsraf/subscriptions","organizations_url":"https://api.github.com/users/equalsraf/orgs","repos_url":"https://api.github.com/users/equalsraf/repos","events_url":"https://api.github.com/users/equalsraf/events{/privacy}","received_events_url":"https://api.github.com/users/equalsraf/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/neovim/neovim/labels/buildsystem","name":"buildsystem","color":"eb6420"},{"url":"https://api.github.com/repos/neovim/neovim/labels/WIP","name":"WIP","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/neovim/neovim/milestones/5","labels_url":"https://api.github.com/repos/neovim/neovim/milestones/5/labels","id":652241,"number":5,"title":"first release","description":null,"creator":{"login":"justinmk","id":1359421,"avatar_url":"https://avatars.githubusercontent.com/u/1359421?v=3","gravatar_id":"","url":"https://api.github.com/users/justinmk","html_url":"https://github.com/justinmk","followers_url":"https://api.github.com/users/justinmk/followers","following_url":"https://api.github.com/users/justinmk/following{/other_user}","gists_url":"https://api.github.com/users/justinmk/gists{/gist_id}","starred_url":"https://api.github.com/users/justinmk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinmk/subscriptions","organizations_url":"https://api.github.com/users/justinmk/orgs","repos_url":"https://api.github.com/users/justinmk/repos","events_url":"https://api.github.com/users/justinmk/events{/privacy}","received_events_url":"https://api.github.com/users/justinmk/received_events","type":"User","site_admin":false},"open_issues":32,"closed_issues":31,"state":"open","created_at":"2014-05-07T21:37:18Z","updated_at":"2015-01-23T07:15:16Z","due_on":null,"closed_at":null},"comments":92,"created_at":"2014-06-04T21:05:16Z","updated_at":"2015-02-02T20:59:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/neovim/neovim/pulls/810","html_url":"https://github.com/neovim/neovim/pull/810","diff_url":"https://github.com/neovim/neovim/pull/810.diff","patch_url":"https://github.com/neovim/neovim/pull/810.patch"},"body":"I realise there have been a couple of issues on this (#328), but since I've not been very successful with #696 so far, and over the last couple of days I also found that:\r\n\r\n* libuv DOES build with Mingw\r\n* luajit/luarocks also builds with Mingw\r\n* msgpack-c needs some help but it also builds with Mingw (check my personal branch or msgpack-c issue tracker)\r\n\r\nIt sudently seems more plausible to get Neovim to build on Windows with Mingw than with MSVC. So far I've been able to go further than #696, my last error was\r\n\r\n```\r\n[ 12%] Building C object src/nvim/CMakeFiles/nvim.dir/ex_cmds2.c.obj\r\nC:\\Users\\raf\\dev\\neovim\\src\\nvim\\ex_cmds2.c: In function 'get_mess_lang':\r\nC:\\Users\\raf\\dev\\neovim\\src\\nvim\\ex_cmds2.c:3270:3: error: pointer targets in passing argument 1 of 'os_getenv' d\r\niffer in signedness [-Werror=pointer-sign]\r\n   p = os_getenv((char_u *)\"LC_ALL\");\r\n   ^\r\nIn file included from C:/Users/raf/dev/neovim/src/nvim/fileio.h:5:0,\r\n                 from C:\\Users\\raf\\dev\\neovim\\src\\nvim\\ex_cmds2.c:25:\r\nC:/Users/raf/dev/neovim/src/nvim/os/os.h:89:13: note: expected 'const char *' but argument is of type 'char_u *'\r\n const char *os_getenv(const char *name);\r\n             ^\r\nC:\\Users\\raf\\dev\\neovim\\src\\nvim\\ex_cmds2.c:3270:5: error: assignment discards 'const' qualifier from pointer tar\r\nget type [-Werror]\r\n   p = os_getenv((char_u *)\"LC_ALL\");\r\n     ^\r\nC:\\Users\\raf\\dev\\neovim\\src\\nvim\\ex_cmds2.c:3272:5: error: pointer targets in passing argument 1 of 'os_getenv' d\r\niffer in signedness [-Werror=pointer-sign]\r\n     p = os_getenv((char_u *)\"LC_MESSAGES\");\r\n     ^\r\nIn file included from C:/Users/raf/dev/neovim/src/nvim/fileio.h:5:0,\r\n                 from C:\\Users\\raf\\dev\\neovim\\src\\nvim\\ex_cmds2.c:25:\r\nC:/Users/raf/dev/neovim/src/nvim/os/os.h:89:13: note: expected 'const char *' but argument is of type 'char_u *'\r\n const char *os_getenv(const char *name);\r\n             ^\r\nC:\\Users\\raf\\dev\\neovim\\src\\nvim\\ex_cmds2.c:3272:7: error: assignment discards 'const' qualifier from pointer tar\r\nget type [-Werror]\r\n     p = os_getenv((char_u *)\"LC_MESSAGES\");\r\n       ^\r\nC:\\Users\\raf\\dev\\neovim\\src\\nvim\\ex_cmds2.c:3274:7: error: pointer targets in passing argument 1 of 'os_getenv' d\r\niffer in signedness [-Werror=pointer-sign]\r\n       p = os_getenv((char_u *)\"LANG\");\r\n       ^\r\n```\r\n\r\nIf anyone is interested in giving it a shot, some quick details about my setup:\r\n\r\n* I'm using mingw-w64 (i686-4.8.2-posix-sjlj-rt_v3-rev4)\r\n* CMake generator is \"Mingw Makefiles\" just run mingw32-make\r\n* I'm building dependencies by hand - I have a [gist](https://gist.github.com/equalsraf/ca3076a1f67e7a494ba3) with some details\r\n* I am using a build of PDCurses, but if anyone can point me to a prepackaged curses for Mingw I would appreciate it (for some reason I can only find NCurses Wide char variant)\r\n\r\nDon't take the attached code commits too seriously I was just trying to go as far as possible, namely I did some things I will regret later:\r\n\r\n* Not sure how to typedef **uid_t** used uv_uid_t\r\n* Will have to take a closer look at things like VIMINFO_FILE for windows\r\n* I disabled some code for signals(?) with #ifdef WIN32\r\n* I commented out some lines in config.h.in - but these need to be turned into proper checks\r\n"},"comment":{"url":"https://api.github.com/repos/neovim/neovim/issues/comments/72536445","html_url":"https://github.com/neovim/neovim/pull/810#issuecomment-72536445","issue_url":"https://api.github.com/repos/neovim/neovim/issues/810","id":72536445,"user":{"login":"aktau","id":189413,"avatar_url":"https://avatars.githubusercontent.com/u/189413?v=3","gravatar_id":"","url":"https://api.github.com/users/aktau","html_url":"https://github.com/aktau","followers_url":"https://api.github.com/users/aktau/followers","following_url":"https://api.github.com/users/aktau/following{/other_user}","gists_url":"https://api.github.com/users/aktau/gists{/gist_id}","starred_url":"https://api.github.com/users/aktau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aktau/subscriptions","organizations_url":"https://api.github.com/users/aktau/orgs","repos_url":"https://api.github.com/users/aktau/repos","events_url":"https://api.github.com/users/aktau/events{/privacy}","received_events_url":"https://api.github.com/users/aktau/received_events","type":"User","site_admin":false},"created_at":"2015-02-02T20:59:05Z","updated_at":"2015-02-02T20:59:05Z","body":"> this is the commit, which wasn't merged yet(it may still change due to rebasing): tarruda@1faa2ae#diff-5fde39b988792c9bc5f6391c583f5316L201\r\n\r\nGreat, :+1:. Just to make @equalsraf aware of it so commits can be dropped and the review load can be eased (by splitting and dropping)."}}