kzemek / etls

An alternative NIF-based implementation of Erlang ssl module.
Other
36 stars 2 forks source link

Can't compile under Windows #13

Open ghost opened 7 years ago

ghost commented 7 years ago

I have installed all the dependencies and they are all accessible from the cmd. I tried with different shells (cmd/Git-bash/Git-sh), cygwin, minGW, Visual Studio Tools, nothing seems to work.

Is it possible for someone to try and compile it under Windows 10 and if successful, please report what needs to be done? Thank you!

C:\username\Elixir\test1>mix compile
==> etls (compile)
A subdirectory or file -p already exists.
Error occurred while processing: -p.
A subdirectory or file _build already exists.
Error occurred while processing: _build.
ERROR: Command [compile] failed!
** (Mix) Could not compile dependency :etls, "escript.exe "c:/Users/username/.mix/rebar" compile skip_deps=true deps_dir="c:/username/Elixir/test1/_build/dev/lib"" command failed. You can recompile this dependency
with "mix deps.compile etls", update it with "mix deps.update etls" or clean it with "mix deps.clean etls"
kzemek commented 7 years ago

I've never built Rebar projects on Windows so I unfortunately have no experience with it. The issue here is that mkdir that Rebar calls has no flag -p. You state that you've tried different shells with no effect, so I assume that Rebar sidesteps the local environment uses system shell (cmd?).

ghost commented 7 years ago

Unfortunately I'm just a beginner, so if someone with experience can take a look at this it would be great.

kzemek commented 7 years ago

@onwarion Could you try to reproduce it on master now? I've changed scripts in rebar.config so that they should work on Windows; I'm not sure about other parts of the build, though. What kind of environment are you normally using for Erlang projects compilation under Windows?