Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working on windows #64

Open
lekoala opened this issue Sep 28, 2017 · 9 comments
Open

Not working on windows #64

lekoala opened this issue Sep 28, 2017 · 9 comments
Labels

Comments

@lekoala
Copy link

lekoala commented Sep 28, 2017

Hey,

This looks like a wonderful tool! However I'm on windows and erlexec doesn't work. Would there be a way to make this dependancy optionnal?

@OvermindDL1
Copy link

erlexec runs on windows 10 here (via cygwin, I'm not using the bash shell, so this will work on any windows version).

@kagux
Copy link
Owner

kagux commented Sep 28, 2017

hey @lekoala,

erlexec is required for breakpoints functionality. One solution would be to make breakpoints optional. But I'd rather try to solve the issue with erlexec. Could you copy paste your error log?

@kagux kagux added the bug label Sep 28, 2017
@OvermindDL1
Copy link

To be more specific, erlexec is a native binary and needs to be compiled, thus it requires a supported compiler on your system, and as long as you have that it should work fine. :-)

It 'is' possible for kagux to pre-build a windows binary and distribute it in the releases though for those that don't have C build systems installed.

@kagux
Copy link
Owner

kagux commented Sep 29, 2017

@OvermindDL1, that's an interesting option. Although, if it comes to, erlexec should be doing that.

It's hard to avoid native packages though, and sooner or later you'd face a problem of building one. Unless of course it's a problem specific to erlexec. So maybe the best solution is to provide better build instructions for Windows in such cases.

Either way, @lekoala, seeing your logs would greatly help!

@OvermindDL1
Copy link

It's hard to avoid native packages though, and sooner or later you'd face a problem of building one. Unless of course it's a problem specific to erlexec. So maybe the best solution is to provide better build instructions for Windows in such cases.

Not specific to erlexec at all, you need the same build system set up for bcrypt and such too. :-)

@lekoala
Copy link
Author

lekoala commented Oct 3, 2017

Here is the error. But I think this is to be expected since erlexec is not supported on windows. I have cygwin but I have no idea how to compile my dependencies using it.

===> Compiling erlexec
===> Compiling ../deps/erlexec/c_src/ei++.cpp
===> g++: error: /c: No such file or directory
g++: error: /Fo ../deps/erlexec/c_src/ei++.o: Invalid argument

** (Mix) Could not compile dependency :erlexec, "escript.exe "c:/Users/MyUser/.mix/rebar3" bare compile --paths "../_build/dev/lib/*/ebin"" command failed. You
 can recompile this dependency with "mix deps.compile erlexec", update it with "mix deps.update erlexec" or clean it with "mix deps.clean erlexec"

@sfusato
Copy link

sfusato commented Jul 20, 2018

Having the same issue as @lekoala. Googled a bit before posting this. I remember I had a similar issue compiling Bcrypt for Comeonin, but that worked out eventually with VS++. Tried the same approach here without any success.

Is there a way to use ex_debug_toolbar on Windows 10 ?

===> Compiling erlexec
===> Compiling c:/../deps/erlexec/c_src/ei++.cpp
===> g++: error: /Foc:/.../deps/erlexec/c_src/ei++.o: Invalid argument

** (Mix) Could not compile dependency :erlexec, "escript.exe "c:/.../.mix/rebar3" bare compile --paths "c:/.../_build/dev/lib/*/ebin"" command failed. You can recompile this dependency with "mix deps.compile erlexec", update it with "mix deps.update erlexec" or clean it with "mix deps.clean erlexec"

@sfusato
Copy link

sfusato commented Jul 20, 2018

@OvermindDL1 how to build/compile erlexec under Windows via cygwin ?

@OvermindDL1
Copy link

It just works for me, though I have the full cross-compilation pipeline installed in cygwin (I have to compile ocaml as well).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants