[Dune] How to cross compile Dune via cmake?

Jö Fahlke jorrit at jorrit.de
Wed Mar 29 23:56:32 CEST 2017


Am Wed, 29. Mar 2017, 22:58:24 +0200 schrieb Christian Engwer:
> Dear cmake gurus,
> 
> in previous times there was a brief overview written by Markus on how
> to compile Dune in a cross-commpile environment (at that time with a
> focus on the blue-gene).
> 
> Today I again tried to cross compile Dune.
> 
> I failed horribly... I followed some instructions on the kitware page
> and started adding more cmake flags for specific Dune features. I
> quickly ran into a problem I was not able to solve... the threads
> test:
> 
> --- calling configure for dune-common ---
>  cmake   -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_C_COMPILER=i686-w64-mingw32-gcc-win32 -DCMAKE_CXX_COMPILER=i686-w64-mingw32-g++-win32 -DCMAKE_Fortran_COMPILER=i686-w64-mingw32-gfortran-win32 -DCMAKE_RC_COMPILER=i686-w64-mingw32-windres -DSTDTHREAD_WORKS=no "/tmp/common"

Well, you're explicitly setting -DSTDTHREAD_WORKS=no.  What happens if you
don't set it?

Regards,
Jö.

> CMake Warning at cmake/modules/CheckCXXFeatures.cmake:362 (message):
>   Crosscompiling, cannot run test program to see whether std::thread works.
>   Assuming that the found configuration does indeed work.
> Call Stack (most recent call first):
>   cmake/modules/DuneMacros.cmake:686 (include)
>   CMakeLists.txt:17 (dune_project)
> 
> 
> CMake Error at cmake/modules/CheckCXXFeatures.cmake:403 (message):
>   Your system does not seem to have a working implementation of std::thread.
>   If it does, please set the linker flags required to get std::thread working
>   in the cache variable STDTHREAD_LINK_FLAGS.  If you think this test is
>   wrong, set the cache variable STDTHREAD_WORKS.
> Call Stack (most recent call first):
>   cmake/modules/DuneMacros.cmake:686 (include)
>   CMakeLists.txt:17 (dune_project)
> 
> 
> -- Configuring incomplete, errors occurred!
> 
> 
> Any help is highly appreciated...
> 
> Ciao
> Christian
> 
> _______________________________________________
> 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: 811 bytes
Desc: Digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20170329/358856cb/attachment.sig>


More information about the Dune mailing list