Qi Sun <qisuntbs@...> writes:
>
> 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
>
Hi,
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.
|