Dear all,
I managed to get the cross compilation working in WSL, with a chrooted debian stable (but I do not think this is necessary) I just needed to install all the dependencies that come with dynare-build.
I do not see the point in building a linux binary under windows (even with matlab). These binaries are only usable in the WSL shell (I did not try to use them on linux).
I think we should remove this section which may be confusing, unless we update its content to explain how to cross compile for octave (I understood that msys2 compilation is not working for octave). I can do it, but I need first to finish what I have to do on the build system.
Best, Stéphane.
Johannes Pfeifer writes:
Dear Sébastien,
the WSL instructions were for building Dynare for use with Octave within the WSL. It was not about cross-compiling for Windows. I cannot comment on compiling mex-files for Matlab, because Matlab for Linux did not work with the WSL.
Best,
Johannes
Von: Dev [mailto:dev-bounces@dynare.org] Im Auftrag von Sébastien Villemot Gesendet: Dienstag, 6. November 2018 17:55 An: dev@dynare.org Betreff: [DynareDev] Building Dynare under Windows
Hi all,
I have added in the README.md file a section explaining how to build Dynare from Windows, using the excellent MSYS2 environment. This tool provides a convenient environment for building native Windows binaries, using a setup very close to the one we use for cross-building the official Dynare package.
The only drawback is that it cannot compile all the docs (MSYS2 does not include Texlive), and so far I haven't succeded in building the MEX for Octave (it may be feasible, but clearly more work and tweaks are needed).
If you are working under Windows, I therefore encourage you to test and possibly use MSYS2.
Johannes: some time ago you contributed instructions for building Dynare in the Windows Subsystem for Linux. These instructions are probably outdated, because the version of Ubuntu mentioned there has no C++14 support. And I am quite surprised that you are able to compile MEX files for MATLAB in this environment, unless you are maybe using a cross-compiler? (in which case it should be documented) So these instructions should probably be updated or, if they're no longer relevant, removed.
Best,