-
Notifications
You must be signed in to change notification settings - Fork 141
Is it possible to compile in Windows? #12
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
Comments
Never tried it, but you could try to compile this module with mingw32. |
It's possible to compile it, but it doesn't work as windows lacks an PTY interface. But that changed recently: https://blogs.msdn.microsoft.com/commandline/tag/pty/. We should get emacs to use it, so this can become useful under windows. |
Hi I'd like to reopen this if possible because I've been trying very hard the last couple days or so to build In a nutshell when I followed your default recommended instructions for installing The first thing I had to do was get the
I expected that to be a problem. The "visibility attribute" stuff was introduced long after I stopped being a Unix/Linux hacker. I could use some advice on what to do here. Thinking that the problem might have to do with the msys2 installation I reinstalled my MinGW installation from scratch (that is, separate from the msys2 install) from the Then I tried again with a fresh copy of
I can only think/guess strdup is a/the C string duplication function. I could carry on my merry way this way but at this point I'd really just be fumbling round in the dark. Everything seems to hinge on getting I would be very grateful for any comments/recommendations/suggestions. You would be doing a tremendous number of people a whole lot of good if this could be resolved successfully. BTW, FWIW, I'm opening to open a new issue about how emacs-libvterm works, in particular, the part that integrates the terminal window into an Emacs window/buffer/frame/whatever the Emacs terminology is. Thanks very much in advance Mike |
Hi sorry I seemed to have not got the first log attached. I try again |
Thanks for your efforts. This question should be asked to the developers of |
Is it possible to use termiWin to include |
Just remove everything from the bin directory and you're golden. The lib itself doesn't require termios.h, only |
I thought this was an interesting problem. I don’t know if I have a use-case for vterm, but I was curious and went ahead to try and compile. As @mikereape stated, libvterm won’t compile due to Vterm is very close to functional, there is one problem though, that’s Emacs’s What I tried was create |
I don't know if it helps, but you can change the process being run by
customizing the `vterm-shell` variable.
…On Wed, Aug 10, 2022 at 1:54 PM psisis ***@***.***> wrote:
I thought this was an interesting problem. I don’t know if I have a
use-case for vterm, but I was curious and went ahead to try and compile. As
@mikereape <https://github.com/mikereape> stated, libvterm won’t compile
due to termios.h, I used termiWin as @xuehy <https://github.com/xuehy>
referred to and I successfully built libvterm. When installing vterm from
emacs and building the module, you have to first make changes to
CMakeLists.exe in elpa vterm dir (it also requires termios.h), making it
include termiWin source file and the gcc D-flag stated in termiWin repo.
After that vterm for emacs is compiled successfully.
Vterm is very close to functional, there is one problem though, that’s
Emacs’s term mode doesn’t work on Windows, since it is hard-wired to look
for /bin/sh. I.e. starting vterm will yield “Spawning child process
error” which is pretty infamous for emacs-w32. So I found this
https://github.com/d5884/fakecygpty but I don’t think it worked.
What I tried was create C:\bin\sh.bat with the contents pwsh and I
successfully made vterm open a powershell prompt and run commands. But it
was very buggy; I couldn’t delete characters and movement commands weren’t
accurate.
—
Reply to this email directly, view it on GitHub
<#12 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACF6E7MV2LKWSS2P6QN4TUTVYQJIXANCNFSM4FBT6XXA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
That didn't give any effect. It was set correctly to cmdproxy.exe. I think the problem is in vterm.el line 711: ...
(setq vterm--process
(make-process
:name "vterm"
:buffer (current-buffer)
:command
`("/bin/sh" "-c"
,(format
... It looks to be hardcoded to launch /bin/sh |
Any luck with this? |
Why was this closed? Is it somehow fixed? |
It is pretty straight forward to compile, was able to do it on a fresh MSYS2 install. Open MSYS2 terminal with no environment:
Then just press 'y' when prompted to compile the module. My
|
@vleonbonnet I was able to build in msys2 and it runs fine in emacs in the msys2 terminal but native emacs fails to load the dll. Were you able to make it run outside of msys2? On a fresh msys2:
At this point one can install emacs and test:
and a vterm inside emacs pops up. |
@sprig I had the same issue with native emacs, and ended making a patch to make it work. See https://github.com/vleonbonnet/emacs-libvterm Still need to be cleaned-up to do a pull request in this repo, but I am unable to find the time right now. I should add that this patch requires fakecygpty, which I ended up doing a fork as well. My config:
|
Very interesting, thanks! |
What's the status of this ? Trying to get vterm to work on my work laptop so I can get Julia-snail up and running. I have the same issue as @sprig . Should I build from @vleonbonnet 's fork ? Is the speed slow enough to justify me dropping to terminal emacs in msys when I want to use this? I'm curious, because this feels like it's so close to working, and it's a shame if I can't get it going. |
I haven't had the chance to look more into this, as I rarely use Windows these days. I think this is pending a proper pull request to be submitted so that it can be fixed for everyone. I don't remember how slow it was, but it was still usable. Besides, slow is still better than broken. To answer your question, the issue is actually closed, best next steps would be to convince someone with the permissions to re-open it and submit a pull request. |
Hi,
It is almost impossible to use a terminal inside Emacs with Windows.
Is there any way of use emacs-libvterm in Windows?
The text was updated successfully, but these errors were encountered: