Thanks Johannes for your feedback.

From my point of view, the WSL is just one way among others of running a GNU/Linux container (e.g. an alternative is to use VirtualBox). So building Dynare in the WSL is just like building on any GNU/Linux system, and we do not need specific instructions for it. Having a section titled "Windows Subsystem for Linux" is a bit confusing because it gives the impression that it contains instructions about Windows, while in reality it's much more about GNU/Linux. So I'm going to remove this paragraph.

Stéphane: at some point I'll figure out a way of building the MEX for Octave from Windows, and complete the doc.

Best,

Le lundi 12 novembre 2018 à 15:33 +0100, Johannes Pfeifer a écrit :
Dear Stéphane,

my description was  for people wanting to use the WSL in order to work on a Linux-like system. Having binaries only usable in the WSL shell was the point of the exercise.  It was neither for cross-compilation nor for use in a true Linux.
That being said, when the WSL was new, there were some users experimenting with it. But I haven't seen people using it for quite some time. So removing the description may be the best option.

Best,
Johannes 


-----Ursprüngliche Nachricht-----
Von: Dev <dev-bounces@dynare.org> Im Auftrag von Stéphane Adjemian
Gesendet: Samstag, 10. November 2018 09:55
An: List for Dynare developers <dev@dynare.org>
Betreff: Re: [DynareDev] Building Dynare under Windows


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,
_______________________________________________ Dev mailing list Dev@dynare.org https://eris.dynare.org/cgi-bin/mailman/listinfo/dev
-- 
Sébastien Villemot
Economist at CEPREMAP
Dynare developer
http://sebastien.villemot.name