[Dune] Dune on cygwin
Oliver Sander
sander at igpm.rwth-aachen.de
Sat Feb 7 17:41:19 CET 2015
Looks like it built correctly. Can you build and run the dune-common tests?
(type 'make test' in dune-common/build-cmake). Can you build the other modules?
Cheers,
Oliver
Am 06.02.2015 um 18:28 schrieb Ganesh Diwan:
> $ ./bin/dunecontrol --only=dune-common --use-cmake configure
> --- going to build dune-common ---
> No build directory provided. Defaulting to the sub directory build-cmake
> --- calling configure for dune-common ---
> cmake -DCMAKE_MODULE_PATH="" -DCMAKE_DISABLE_FIND_PACKAGE_MPI=TRUE
> "/cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1"
> CMake Warning at /usr/share/cmake-2.8.11.2/Modules/Platform/CYGWIN.cmake:15
> (message):
> CMake no longer defines WIN32 on Cygwin!
>
> (1) If you are just trying to build this project, ignore this warning or
> quiet it by setting CMAKE_LEGACY_CYGWIN_WIN32=0 in your environment or in
> the CMake cache. If later configuration or build errors occur then this
> project may have been written under the assumption that Cygwin is WIN32.
> In that case, set CMAKE_LEGACY_CYGWIN_WIN32=1 instead.
>
> (2) If you are developing this project, add the line
>
> set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is
> required
>
> at the top of your top-level CMakeLists.txt file or set the minimum
> required version of CMake to 2.8.4 or higher. Then teach your project to
> build on Cygwin without WIN32.
> Call Stack (most recent call first):
> /usr/share/cmake-2.8.11.2/Modules/CMakeSystemSpecificInformation.cmake:36
> (include)
> CMakeLists.txt:2 (project)
>
>
> CMake Warning at cmake/modules/DuneDoc.cmake:27 (message):
> Need latex to create documentation!
> Call Stack (most recent call first):
> cmake/modules/DuneMacros.cmake:625 (include)
> CMakeLists.txt:17 (dune_project)
>
>
> -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
> -- Performing tests specific to dune-common from file
> /cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1/cmake/modules/DuneCommonMacros.cmake.
> -- Could NOT find GMP (missing: GMP_HEADER_WORKS GMPXX_LIB_WORKS)
> -- Could NOT find Boost
> -- Using scripts from
> /cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1/cmake/scripts for
> creating doxygen stuff.
> -- Not adding custom target for config.h generation
> --
> -- The following OPTIONAL packages have been found:
>
> * PkgConfig
> * Threads
>
> -- The following OPTIONAL packages have not been found:
>
> * LATEX
> * Doxygen
> * GMP
> * Inkscape
> * Boost
>
> -- Configuring done
> -- Generating done
> -- Build files have been written to:
> /cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1/build-cmake
> --- dune-common done ---
> --- done ---
>
> gcd3 at MA-1211 /cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1
> $ ./bin/dunecontrol --only=dune-common --use-cmake make
> --- going to build dune-common ---
> No build directory provided. Defaulting to the sub directory build-cmake
> --- calling make for dune-common ---
> make
> [ 60%] Built target dunecommon
> Scanning dependencies of target indexset
> [ 80%] Building CXX object doc/comm/CMakeFiles/indexset.dir/indexset.cc.o
> Linking CXX executable indexset.exe
> [ 80%] Built target indexset
> Scanning dependencies of target poosc08
> [100%] Building CXX object doc/comm/CMakeFiles/poosc08.dir/poosc08.cc.o
> Linking CXX executable poosc08.exe
> [100%] Built target poosc08
> Scanning dependencies of target poosc08_test
> [100%] Building CXX object
> doc/comm/CMakeFiles/poosc08_test.dir/poosc08_test.cc.o
> Linking CXX executable poosc08_test.exe
> [100%] Built target poosc08_test
> --- dune-common done ---
> --- done ---
>
>
>
> On Fri, Feb 6, 2015 at 5:21 PM, Christoph GrĂ¼ninger <
> christoph.grueninger at iws.uni-stuttgart.de> wrote:
>
>> Hi Ganesh,
>> yeah, first step of CMake: done!
>>
>> Am 06.02.2015 um 17:57 schrieb Ganesh Diwan:
>>> --- calling make for dune-common ---
>>> make
>>> [ 0%] Building CXX object
>>> dune/common/CMakeFiles/dunecommon.dir/debugallocator.cc.o
>>>
>> /cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1/dune/common/debugallocator.cc:4:20:
>>> fatal error:
>>>
>> /cygdrive/c/LocalApp/local/dune2.3.1/dune-common-2.3.1/build-cmake/config.h:
>>> Permission denied
>>> #include "config.h"
>>> ^
>>> compilation terminated.
>>
>> Some internet searching revealed that you are not the first one to have
>> this problem. But I was not able to quickly find a general solution.
>> There was not even a obviously related bug in CMake's bug tracker.
>> I'd suggest to set the permission by yourself.
>> 1. Rund dunecontrol and add --only=dune-common and use "configure"
>> instead of "all"
>> 2. Set the permission for dune-common/build-cmake that you are allowed
>> to read and write inside the folder and all subfolders
>> 3. Re-run dunecontrol, again with --only=dune-common and use "make"
>> instead of "all"
>> 4. If that works for dune-common, you can proceed with dune-geometry,
>> dune-grid and so on.
>>
>> I know, this is sub-optimal, but to get it running, it could be enough.
>>
>> It is related to Cygwin, as I never had file permission issues with
>> Visual C++ and CMake. I only had compiler issues...
>>
>> Bye
>> Christoph
>>
>> --
>> GDB does hate your application, expresses its contempt through the
>> design of its command-line interface. -- Tom Tromey, FOSDEM 2014
>>
>>
>
>
>
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20150207/72bc2844/attachment.sig>
More information about the Dune
mailing list