<div dir="ltr"><div><div><div><div>Following the addition of cmake to Cygwin, I tried running<br><br></div>./dune-common/bin/dunecontrol --use-cmake all<br><br></div>and the result is:<br><br>./dune-common-2.3.1/bin/dunecontrol --use-cmake all<br>WARNING: could not find module dune-alugrid,<br>       module is also unknown to pkg-config.<br>       Maybe you need to adjust PKG_CONFIG_PATH!<br>       dune-alugrid is suggested by dune-fem<br>Skipping dune-alugrid!<br>WARNING: could not find module dune-spgrid,<br>       module is also unknown to pkg-config.<br>       Maybe you need to adjust PKG_CONFIG_PATH!<br>       dune-spgrid is suggested by dune-fem<br>Skipping dune-spgrid!<br>--- going to build dune-common dune-geometry dune-grid dune-istl dune-localfunctions dune-fem dune-fem-howto dune-grid-dev-howto dune-grid-howto  ---<br>No build directory provided. Defaulting to the sub directory build-cmake<br>--- calling all for dune-common ---<br>--- calling vcsetup for dune-common ---<br>--- calling autogen for dune-common ---<br>Skipping dune-autogen because of CMake<br>--- calling configure for dune-common ---<br> cmake -DCMAKE_MODULE_PATH=""  -DCMAKE_DISABLE_FIND_PACKAGE_MPI=TRUE  "/cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1"<br>CMake Warning at /usr/share/cmake-2.8.11.2/Modules/Platform/CYGWIN.cmake:15 (message):<br>  CMake no longer defines WIN32 on Cygwin!<br><br>  (1) If you are just trying to build this project, ignore this warning or<br>  quiet it by setting CMAKE_LEGACY_CYGWIN_WIN32=0 in your environment or in<br>  the CMake cache.  If later configuration or build errors occur then this<br>  project may have been written under the assumption that Cygwin is WIN32.<br>  In that case, set CMAKE_LEGACY_CYGWIN_WIN32=1 instead.<br><br>  (2) If you are developing this project, add the line<br><br>    set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required<br><br>  at the top of your top-level CMakeLists.txt file or set the minimum<br>  required version of CMake to 2.8.4 or higher.  Then teach your project to<br>  build on Cygwin without WIN32.<br>Call Stack (most recent call first):<br>  /usr/share/cmake-2.8.11.2/Modules/CMakeSystemSpecificInformation.cmake:36 (include)<br>  CMakeLists.txt:2 (project)<br><br><br>CMake Error at /usr/share/cmake-2.8.11.2/Modules/FortranCInterface.cmake:288 (message):<br>  The Fortran compiler:<br><br>    /usr/bin/gfortran.exe<br><br>  and the CXX compiler:<br><br>    /usr/bin/c++.exe<br><br>  failed to compile a simple test project using both languages.  The output<br>  was:<br><br>    Change Dir: /cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1/build-cmake/CMakeFiles/FortranCInterface/VerifyCXX<br><br>    Run Build Command:/cygdrive/c/LocalApp/local/MinGW64/mingw64/bin/make.exe<br>    /usr/bin/cmake.exe -H/usr/share/cmake-2.8.11.2/Modules/FortranCInterface/Verify -B/cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1/build-cmake/CMakeFiles/FortranCInterface/VerifyCXX --check-build-system CMakeFiles/Makefile.cmake 0<br>    /usr/bin/cmake.exe -E cmake_progress_start /cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1/build-cmake/CMakeFiles/FortranCInterface/VerifyCXX/CMakeFiles /cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1/build-cmake/CMakeFiles/FortranCInterface/VerifyCXX/CMakeFiles/progress.marks<br>    C:/LocalApp/local/MinGW64/mingw64/bin/make -f CMakeFiles/Makefile2 all<br>    make[1]: Entering directory 'C:/LocalApp/local/dune2.3.1/dune-common-2.3.1/build-cmake/CMakeFiles/FortranCInterface/VerifyCXX'<br>    C:/LocalApp/local/MinGW64/mingw64/bin/make -f CMakeFiles/VerifyFortran.dir/build.make CMakeFiles/VerifyFortran.dir/depend<br>    make[2]: Entering directory 'C:/LocalApp/local/dune2.3.1/dune-common-2.3.1/build-cmake/CMakeFiles/FortranCInterface/VerifyCXX'<br>    cd /cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1/build-cmake/CMakeFiles/FortranCInterface/VerifyCXX && /usr/bin/cmake.exe -E cmake_depends "Unix Makefiles" /usr/share/cmake-2.8.11.2/Modules/FortranCInterface/Verify /usr/share/cmake-2.8.11.2/Modules/FortranCInterface/Verify /cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1/build-cmake/CMakeFiles/FortranCInterface/VerifyCXX /cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1/build-cmake/CMakeFiles/FortranCInterface/VerifyCXX /cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1/build-cmake/CMakeFiles/FortranCInterface/VerifyCXX/CMakeFiles/VerifyFortran.dir/DependInfo.cmake<br>    Scanning dependencies of target VerifyFortran<br>    make[2]: Leaving directory 'C:/LocalApp/local/dune2.3.1/dune-common-2.3.1/build-cmake/CMakeFiles/FortranCInterface/VerifyCXX'<br>    C:/LocalApp/local/MinGW64/mingw64/bin/make -f CMakeFiles/VerifyFortran.dir/build.make CMakeFiles/VerifyFortran.dir/requires<br>    make[2]: Entering directory 'C:/LocalApp/local/dune2.3.1/dune-common-2.3.1/build-cmake/CMakeFiles/FortranCInterface/VerifyCXX'<br>    make[2]: Nothing to be done for 'CMakeFiles/VerifyFortran.dir/requires'.<br>    make[2]: Leaving directory 'C:/LocalApp/local/dune2.3.1/dune-common-2.3.1/build-cmake/CMakeFiles/FortranCInterface/VerifyCXX'<br>    C:/LocalApp/local/MinGW64/mingw64/bin/make -f CMakeFiles/VerifyFortran.dir/build.make CMakeFiles/VerifyFortran.dir/build<br>    make[2]: Entering directory 'C:/LocalApp/local/dune2.3.1/dune-common-2.3.1/build-cmake/CMakeFiles/FortranCInterface/VerifyCXX'<br>    make[2]: Leaving directory 'C:/LocalApp/local/dune2.3.1/dune-common-2.3.1/build-cmake/CMakeFiles/FortranCInterface/VerifyCXX'<br>    make[2]: *** No rule to make target '/usr/share/cmake-2.8.11.2/Modules/FortranCInterface/Verify/VerifyFortran.f', needed by 'CMakeFiles/VerifyFortran.dir/VerifyFortran.f.o'.  Stop.<br>    CMakeFiles/Makefile2:66: recipe for target 'CMakeFiles/VerifyFortran.dir/all' failed<br>    make[1]: Leaving directory 'C:/LocalApp/local/dune2.3.1/dune-common-2.3.1/build-cmake/CMakeFiles/FortranCInterface/VerifyCXX'<br>    make[1]: *** [CMakeFiles/VerifyFortran.dir/all] Error 2<br>    makefile:78: recipe for target 'all' failed<br>    make: *** [all] Error 2<br><br>Call Stack (most recent call first):<br>  cmake/modules/DuneMacros.cmake:612 (FortranCInterface_VERIFY)<br>  CMakeLists.txt:17 (dune_project)<br><br><br>-- Configuring incomplete, errors occurred!<br>--- Failed to build dune-common ---<br>Terminating dunecontrol due to previous errors!<br><br></div>I am not sure why /usr/bin/gfortran.exe and /usr/bin/c++ are not able to compile the programs.<br><br></div>Ganesh<br><div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 5, 2015 at 2:07 PM, Ganesh Diwan <span dir="ltr"><<a href="mailto:gcdiwan83@gmail.com" target="_blank">gcdiwan83@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Thanks<br></div>I just updated my Cygwin installation with Cmake. I see that Cmake is going to be default build system for newer Dune versions.<br></div>I will try this and update you with my progress<br><br></div>Ganesh<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Thu, Feb 5, 2015 at 2:03 PM, Christoph Grüninger <span dir="ltr"><<a href="mailto:christoph.grueninger@iws.uni-stuttgart.de" target="_blank">christoph.grueninger@iws.uni-stuttgart.de</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">Hi Ganesh,<br>
Cygwin provides a own CMake package, maybe you try that, I don't know.<br>
<div><div><br>
Christoph<br>
<br>
--<br>
GDB does hate your application, expresses its contempt through the<br>
design of its command-line interface.   -- Tom Tromey, FOSDEM 2014<br>
<br>
</div></div><br></div></div>_______________________________________________<br>
Dune mailing list<br>
<a href="mailto:Dune@dune-project.org" target="_blank">Dune@dune-project.org</a><br>
<a href="http://lists.dune-project.org/mailman/listinfo/dune" target="_blank">http://lists.dune-project.org/mailman/listinfo/dune</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>