]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Provide an example toolchain file for MinGW on Windows64
authorMatthias Maier <tamiko@kyomu.43-1.org>
Wed, 30 Oct 2013 23:21:55 +0000 (23:21 +0000)
committerMatthias Maier <tamiko@kyomu.43-1.org>
Wed, 30 Oct 2013 23:21:55 +0000 (23:21 +0000)
git-svn-id: https://svn.dealii.org/trunk@31492 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/setup_finalize.cmake
deal.II/doc/developers/Toolchain-x86_64-w64-mingw32.sample [new file with mode: 0644]
deal.II/doc/developers/porting.html

index 8a084e5027e50af9ea7ae06164ecfd127e667c50..1b3849d7a466ade46aa6f3069b99e1bde7b0ca6f 100644 (file)
@@ -131,7 +131,6 @@ _detailed(
 IF(CMAKE_CROSSCOMPILING)
   _both(
     "#\n#        CROSSCOMPILING!\n"
-    "#        DEAL_II_NATIVE:         ${DEAL_II_NATIVE}\n"
     )
 ENDIF()
 
diff --git a/deal.II/doc/developers/Toolchain-x86_64-w64-mingw32.sample b/deal.II/doc/developers/Toolchain-x86_64-w64-mingw32.sample
new file mode 100644 (file)
index 0000000..68e826f
--- /dev/null
@@ -0,0 +1,16 @@
+#
+# Example Toolchain file for a MinGW32 cross compiler for Windows64
+#
+
+SET(CMAKE_SYSTEM_NAME Windows)
+SET(CMAKE_SYSTEM_PROCESSOR "x86_64")
+
+SET(CMAKE_RC_COMPILER "x86_64-w64-mingw32-windres")
+SET(CMAKE_CXX_COMPILER "x86_64-w64-mingw32-g++")
+SET(CMAKE_C_COMPILER "x86_64-w64-mingw32-gcc")
+SET(CMAKE_Fortran_COMPILER "x86_64-w64-mingw32-gfortran") # alternatively set to '/bin/false'
+
+SET(CMAKE_FIND_ROOT_PATH "/usr/x86_64-w64-mingw32/")
+SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
+SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
+SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
index 2408227120e0d64f4dd8145aa70f8bc8f2082da3..82b6efea8b2eaeb527b71f894215e3ca74ec0d73 100644 (file)
     </p>
 
     <p>
-      Assuming you have a working cross compilation toolchain, set up a
-      <a href="Toolchain.sample"><i>toolchain file</i></a> next. With that
-      invoke <code>cmake</code> with something like:
+      Assuming you have a working cross compilation toolchain, the next
+      step is to set up a
+      <a href="Toolchain.sample"><i>toolchain file</i></a>
+      (or for for
+      <a href="Toolchain-x86_64-w64-mingw32.sample">Windows64 using MinGW</a>).
+      After that invoke <code>cmake</code> with something like:
       <pre>
+
     cmake -DCMAKE_TOOLCHAIN_FILE=&lt;...&gt;/Toolchain.sample
           -DDEAL_II_FORCE_BUNDLED_BOOST=ON
           -DDEAL_II_ALLOW_AUTODETECTION=OFF

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.