[Dune] Installing DUNE on Windows

Lutz Weimann weimann at zib.de
Wed May 18 17:33:18 CEST 2016


Hi Timor,

If you have installed under Windows a not too old version of Cygwin (2.2.0 or later should be good), you may compile the DUNE 2.4.1 core modules using the
CXXFLAGS="-D_XOPEN_SOURCE=500 -D_GLIBCXX_USE_C99=1“,
after you’ve applied the following patches (using the patch utility for applying diff files):
———————————————————————————————————————————————
diff -ruN dune-grid/cmake/modules/FindAlberta.cmake dune-grid-modified/cmake/modules/FindAlberta.cmake
--- dune-grid/cmake/modules/FindAlberta.cmake	2015-07-01 13:35:15.026686000 +0200
+++ dune-grid-modified/cmake/modules/FindAlberta.cmake	2015-07-30 01:21:22.064419900 +0200
@@ -13,7 +13,7 @@
   PATH_SUFFIXES lib lib32 lib64
 )
 if (ALBERTA_LTDL_LIB)
-  list(APPEND ALBERTA_EXTRA_LIBS "ltdl")
+  list(APPEND ALBERTA_EXTRA_LIBS "ltdl" "xdr")
 endif()

 # look for header alberta/alberta.h

diff -ruN dune-grid/dune/grid/io/file/dgfparser/dgfparser.cc dune-grid-modified/dune/grid/io/file/dgfparser/dgfparser.cc
--- dune-grid/dune/grid/io/file/dgfparser/dgfparser.cc	2015-06-26 12:07:07.151943500 +0200
+++ dune-grid-modified/dune/grid/io/file/dgfparser/dgfparser.cc	2015-07-30 13:10:25.987240300 +0200
@@ -3,6 +3,7 @@
 #include <config.h>

 #include <cstdio>
+#define HAVE_MKSTEMP 0
 #if HAVE_MKSTEMP
 #include <unistd.h>
 #endif
———————————————————————————————————————————————
If you wish to use DUNE together with AlbertaGrid, you will also need to install the xdr-library, which you may download from http://bsd-xdr.googlecode.com/files/bsd-xdr-1.0.0.tar.gz .

Best wishes,
Lutz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20160518/17ec7243/attachment.sig>


More information about the Dune mailing list