[Dune] 回复: How do I configure DUNE core modules for cross-compilation from Linux to Windows?

历(Li) Ye li.petroleum at hotmail.com
Thu Nov 14 10:40:53 CET 2019


Dear Christian,

Thanks so much for your reply and the instructions.  That really helps a lot.

I had compiled the dune-common module successfully just following your instructions.

I didn't find the "windows.rst". Instead I found the "dune-common.rst".

Also thanks Oliver and Dedner's suggestions.   I am working other DUNE modules and will continue to report any progress.

Thanks all for the help, and have a wonderful day!

Richard
________________________________
发件人: Christian Engwer <christian.engwer at uni-muenster.de>
发送时间: 2019年11月13日 15:38
收件人: 历(Li) Ye <li.petroleum at hotmail.com>
抄送: dune at lists.dune-project.org <dune at lists.dune-project.org>
主题: Re: [Dune] How do I configure DUNE core modules for cross-compilation from Linux to Windows?

Dear Richard,

> I plan to cross compile the modules using a Linux host machine.   Is this the good approach to achieve the goal?  Or is there better approach?

you can do this and I already did so. You caneither use a real linux machine or you use the linux subsystem that comes with newer windows versions. In any case, if you have ubuntu running you can simply install the mingw under linux to cross compile. The tricky part is setting up cmake correctly.

I added a very brief description of this to the dune-common docs:
dune-common/doc/buildsystem/windows.rst
and two examples, one for the opts-file and one for a cmake toolchain file. Both can be found in
dune-common/doc/buildsystem/examples/

Hope this helps... let me know if you suggestions on how to improve the documentation.

Best
Christian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20191114/5418dc21/attachment.htm>


More information about the Dune mailing list