Discussion:
[Matlab-emacs-discuss] Emacs-Matlab Integration under Windows OS
Thibault Marin
2016-06-11 04:12:12 UTC
Permalink
Hi Qi,
I don't know of a way to make matlab-shell work on Windows. It might be
possible to create something similar to Bob's old script that would work, but
that is not something I'm familiar with. Sorry.
Eric
-----Original Message-----
Sent: Tuesday, May 03, 2016 11:04 PM
Subject: [Matlab-emacs-discuss] Emacs-Matlab Integration under Windows OS
Dear all,
I have to switch to the Windows OS at work place while still thinking on
integrating Matlab to Emacs. However, the Windows version matlab does not
provide matlabshell at all. The -nodesktop option just pops up an isolated
command window.
There was a solution created by Bob Morris from U of Massachusetts Boston. But
it's way out of date right now I can't even recompile with the mex function. Is
there anyone else facing similar situation as I do?
Thank you for any further suggestions or help!
Best,
Qi Sun
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and reduces
your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Matlab-emacs-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
Hi,

This is in response to mailing list messages:
https://sourceforge.net/p/matlab-emacs/mailman/message/35061925/ and
https://sourceforge.net/p/matlab-emacs/mailman/message/35063662/ , which
were posted before I subscribed to the list; I haven't found a way
to properly reply to them.


I got my windows setup working by following the emacswiki instructions:
https://www.emacswiki.org/emacs/MatlabMode#toc3.

More specifically:

- Clone the github repository for matlabShell:
https://github.com/mlt/matlabShell
- Build matlabShell
- I used the intel compiler, but it should also work with the visual
studio compiler or others
- Setup the compilation environment:
- "%ICPP_COMPILER16%"\bin\compilervars.bat intel64 vs2013" (this may differ
depending on your setup)
- For Visual Studio, the setup script is (for me) "c:\Program Files
(x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
- Setup include/library folders
- set INCLUDE=%INCLUDE%;c:\MATLAB\R2007a\extern\include\ (folder containing
engine.h)
- set LIB=%LIB%;c:\MATLAB\R2007a\extern\lib\win64\microsoft\ (folder
containing libeng.lib)
- Build: "icl matlabShell.c /link libeng.lib" (cl for visual studio?)
- This builds matlabShell.exe
- Setup the emacs configuration as described in the github page

Things mostly worked afterwards, I had some issues with tab completion, for which
I had a workaround which I can provide if needed.

Loading...