{"action":"created","issue":{"url":"https://api.github.com/repos/jcmoyer/rust-lua53/issues/21","labels_url":"https://api.github.com/repos/jcmoyer/rust-lua53/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/jcmoyer/rust-lua53/issues/21/comments","events_url":"https://api.github.com/repos/jcmoyer/rust-lua53/issues/21/events","html_url":"https://github.com/jcmoyer/rust-lua53/issues/21","id":112004327,"number":21,"title":"Can't build under Windows","user":{"login":"Revertron","id":105154,"avatar_url":"https://avatars.githubusercontent.com/u/105154?v=3","gravatar_id":"","url":"https://api.github.com/users/Revertron","html_url":"https://github.com/Revertron","followers_url":"https://api.github.com/users/Revertron/followers","following_url":"https://api.github.com/users/Revertron/following{/other_user}","gists_url":"https://api.github.com/users/Revertron/gists{/gist_id}","starred_url":"https://api.github.com/users/Revertron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Revertron/subscriptions","organizations_url":"https://api.github.com/users/Revertron/orgs","repos_url":"https://api.github.com/users/Revertron/repos","events_url":"https://api.github.com/users/Revertron/events{/privacy}","received_events_url":"https://api.github.com/users/Revertron/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-18T06:39:47Z","updated_at":"2015-10-18T20:42:08Z","closed_at":null,"body":"1. It will complain about \"File not found\" until I put the folder \"lua-5.3.0\" in \"(project dir)\\target\\debug\\build\\lua-186a5bc53332bb1e\\out\"\r\n\r\n2. It doesn't build anyway, gives errors like this:\r\n```\r\nD:\\PROJECTS\\Rust\\lua_test>cargo build --verbose\r\n   Compiling lua v0.0.8 (https://github.com/jcmoyer/rust-lua53#f0835d4a)\r\n     Running `rustc C:\\Users\\REVERSE\\.cargo\\git\\checkouts\\rust-lua53-337f374af0243c90\\master\\src\\lib.rs --crate-name lua\r\n --crate-type lib -g -C metadata=186a5bc53332bb1e -C extra-filename=-186a5bc53332bb1e --out-dir D:\\PROJECTS\\Rust\\lua_tes\r\nt\\target\\debug\\deps --emit=dep-info,link -L dependency=D:\\PROJECTS\\Rust\\lua_test\\target\\debug\\deps -L dependency=D:\\PROJ\r\nECTS\\Rust\\lua_test\\target\\debug\\deps --extern libc=D:\\PROJECTS\\Rust\\lua_test\\target\\debug\\deps\\liblibc-144c435538abd757.\r\nrlib --extern bitflags=D:\\PROJECTS\\Rust\\lua_test\\target\\debug\\deps\\libbitflags-dd68b8369bcd8ff0.rlib -Awarnings -L nativ\r\ne=D:\\PROJECTS\\Rust\\lua_test\\target\\debug\\build\\lua-186a5bc53332bb1e\\out\\lua-5.3.0\\src -l static=lua`\r\n       Fresh libc v0.1.10\r\n       Fresh bitflags v0.1.1\r\nC:\\Users\\REVERSE\\.cargo\\git\\checkouts\\rust-lua53-337f374af0243c90\\master\\src\\ffi/mod.rs:295:5: 295:9 error: file not fou\r\nnd for module `glue`\r\nC:\\Users\\REVERSE\\.cargo\\git\\checkouts\\rust-lua53-337f374af0243c90\\master\\src\\ffi/mod.rs:295 mod glue;\r\n                                                                                                ^~~~\r\nC:\\Users\\REVERSE\\.cargo\\git\\checkouts\\rust-lua53-337f374af0243c90\\master\\src\\ffi/mod.rs:295:5: 295:9 help: name the file\r\n either glue.rs or glue/mod.rs inside the directory \"C:\\\\Users\\\\REVERSE\\\\.cargo\\\\git\\\\checkouts\\\\rust-lua53-337f374af024\r\n3c90\\\\master\\\\src\\\\ffi\"\r\nCould not compile `lua`.\r\n\r\nCaused by:\r\n  Process didn't exit successfully: `rustc C:\\Users\\REVERSE\\.cargo\\git\\checkouts\\rust-lua53-337f374af0243c90\\master\\src\\\r\nlib.rs --crate-name lua --crate-type lib -g -C metadata=186a5bc53332bb1e -C extra-filename=-186a5bc53332bb1e --out-dir D\r\n:\\PROJECTS\\Rust\\lua_test\\target\\debug\\deps --emit=dep-info,link -L dependency=D:\\PROJECTS\\Rust\\lua_test\\target\\debug\\dep\r\ns -L dependency=D:\\PROJECTS\\Rust\\lua_test\\target\\debug\\deps --extern libc=D:\\PROJECTS\\Rust\\lua_test\\target\\debug\\deps\\li\r\nblibc-144c435538abd757.rlib --extern bitflags=D:\\PROJECTS\\Rust\\lua_test\\target\\debug\\deps\\libbitflags-dd68b8369bcd8ff0.r\r\nlib -Awarnings -L native=D:\\PROJECTS\\Rust\\lua_test\\target\\debug\\build\\lua-186a5bc53332bb1e\\out\\lua-5.3.0\\src -l static=l\r\nua` (exit code: 101)\r\n```\r\nAs we can see the \"glue\" module isn't there."},"comment":{"url":"https://api.github.com/repos/jcmoyer/rust-lua53/issues/comments/149045334","html_url":"https://github.com/jcmoyer/rust-lua53/issues/21#issuecomment-149045334","issue_url":"https://api.github.com/repos/jcmoyer/rust-lua53/issues/21","id":149045334,"user":{"login":"jcmoyer","id":1007628,"avatar_url":"https://avatars.githubusercontent.com/u/1007628?v=3","gravatar_id":"","url":"https://api.github.com/users/jcmoyer","html_url":"https://github.com/jcmoyer","followers_url":"https://api.github.com/users/jcmoyer/followers","following_url":"https://api.github.com/users/jcmoyer/following{/other_user}","gists_url":"https://api.github.com/users/jcmoyer/gists{/gist_id}","starred_url":"https://api.github.com/users/jcmoyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcmoyer/subscriptions","organizations_url":"https://api.github.com/users/jcmoyer/orgs","repos_url":"https://api.github.com/users/jcmoyer/repos","events_url":"https://api.github.com/users/jcmoyer/events{/privacy}","received_events_url":"https://api.github.com/users/jcmoyer/received_events","type":"User","site_admin":false},"created_at":"2015-10-18T20:42:08Z","updated_at":"2015-10-18T20:42:08Z","body":"You need to use MSYS2 under Windows. I chose this environment originally because it was the preferred way to build Rust on Windows for a long time. I'm not sure if that's changed, but in any case you might have issues with other environments as rust-lua53 doesn't support them (yet). build.rs uses a couple tools to download the Lua source and build it for you: wget, make, tar, and gcc (in addition to building Lua, gcc is needed to generate the glue module because it depends on values obtained from a C preprocessor). I think that as long as all of these are in your path, it should work."}}