Subject: CGAL users discussion list
List archive
- From: xantares 09 <>
- To: "" <>
- Subject: RE: [cgal-discuss] MinGW issues
- Date: Thu, 27 Nov 2014 13:01:13 +0000
- Importance: Normal
> From:
> To:
> Date: Thu, 27 Nov 2014 13:18:36 +0100
> Subject: Re: [cgal-discuss] MinGW issues
>
> Le Wednesday 26 November 2014 14:59:46 xantares 09 a écrit :
> > Hello,
> >
> >
> > I've got issues cross-compiling CGAL 4.5 with MinGW64 (mingw-gcc 4.9.1) from
> >
> > linux (x86_64 host).
>
> Can you post an email explaining how you did that with CMake? What toolchain
> file have you used, and how have you solved all the issue of system
> introspection?
I did not encounter any particular issue with MinGW installation,
as my distro provides it along with zlib, mpfr, boost, and qt4 dependencies.
For the cmake setup I used the toolchains of my distribution too, nothing unusual for cmake cross-compiling:
SET(CMAKE_SYSTEM_NAME Windows)
# specify the cross compiler
SET(CMAKE_C_COMPILER $arch-gcc)
SET(CMAKE_CXX_COMPILER $arch-g++)
# where is the target environment
SET(CMAKE_FIND_ROOT_PATH /usr/$arch)
# search for programs in the build host directories
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# for libraries and headers in the target directories
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
These are used through an $arch-cmake wrapper for mingw
which sets CMAKE_TOOLCHAIN_FILE for the right $arch (i686-mingw or x86_64-mingw), and the right compilation flags:
The most annoying part was to manually provide the result of plaftorm checks as invoking try_run while cross-compiling failed:
$arch-cmake -DCMAKE_BUILD_TYPE=Release \
-DGCC_RUN_RES=0 -DGCC_RUN_RES__TRYRUN_OUTPUT="version=4.9.2" \
-DGMP_RUN_RES=0 -DGMP_RUN_RES__TRYRUN_OUTPUT="version=6.0.0" \
-DMPFR_RUN_RES=0 -DMPFR_RUN_RES__TRYRUN_OUTPUT="version=3.1.2" \
-DZLIB_RUN_RES=0 -DZLIB_RUN_RES__TRYRUN_OUTPUT="version=1.2.8" \
-DQT4_RUN_RES=0 -DQT4_RUN_RES__TRYRUN_OUTPUT="version=4.8.6" \
-DCGAL_CFG_BOOST_VARIANT_SWAP_BUG=0 \
-DCGAL_CFG_DENORMALS_COMPILE_BUG=0 \
-DCGAL_CFG_FPU_ROUNDING_MODE_UNWINDING_VC_BUG=0 \
-DCGAL_CFG_IEEE_754_BUG=0 \
-DCGAL_CFG_ISTREAM_INT_BUG=0 \
-DCGAL_CFG_MATCHING_BUG_5=0 \
[...]
cgal is now packaged as an additional mingw library, see here:
https://aur.archlinux.org/packages/mingw-w64-cgal/
> --
> Laurent Rineau, PhD
> R&D Engineer at GeometryFactory http://www.geometryfactory.com/
> Release Manager of the CGAL Project http://www.cgal.org/
>
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://sympa.inria.fr/sympa/info/cgal-discuss
>
>
> To:
> Date: Thu, 27 Nov 2014 13:18:36 +0100
> Subject: Re: [cgal-discuss] MinGW issues
>
> Le Wednesday 26 November 2014 14:59:46 xantares 09 a écrit :
> > Hello,
> >
> >
> > I've got issues cross-compiling CGAL 4.5 with MinGW64 (mingw-gcc 4.9.1) from
> >
> > linux (x86_64 host).
>
> Can you post an email explaining how you did that with CMake? What toolchain
> file have you used, and how have you solved all the issue of system
> introspection?
I did not encounter any particular issue with MinGW installation,
as my distro provides it along with zlib, mpfr, boost, and qt4 dependencies.
For the cmake setup I used the toolchains of my distribution too, nothing unusual for cmake cross-compiling:
SET(CMAKE_SYSTEM_NAME Windows)
# specify the cross compiler
SET(CMAKE_C_COMPILER $arch-gcc)
SET(CMAKE_CXX_COMPILER $arch-g++)
# where is the target environment
SET(CMAKE_FIND_ROOT_PATH /usr/$arch)
# search for programs in the build host directories
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# for libraries and headers in the target directories
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
These are used through an $arch-cmake wrapper for mingw
which sets CMAKE_TOOLCHAIN_FILE for the right $arch (i686-mingw or x86_64-mingw), and the right compilation flags:
The most annoying part was to manually provide the result of plaftorm checks as invoking try_run while cross-compiling failed:
$arch-cmake -DCMAKE_BUILD_TYPE=Release \
-DGCC_RUN_RES=0 -DGCC_RUN_RES__TRYRUN_OUTPUT="version=4.9.2" \
-DGMP_RUN_RES=0 -DGMP_RUN_RES__TRYRUN_OUTPUT="version=6.0.0" \
-DMPFR_RUN_RES=0 -DMPFR_RUN_RES__TRYRUN_OUTPUT="version=3.1.2" \
-DZLIB_RUN_RES=0 -DZLIB_RUN_RES__TRYRUN_OUTPUT="version=1.2.8" \
-DQT4_RUN_RES=0 -DQT4_RUN_RES__TRYRUN_OUTPUT="version=4.8.6" \
-DCGAL_CFG_BOOST_VARIANT_SWAP_BUG=0 \
-DCGAL_CFG_DENORMALS_COMPILE_BUG=0 \
-DCGAL_CFG_FPU_ROUNDING_MODE_UNWINDING_VC_BUG=0 \
-DCGAL_CFG_IEEE_754_BUG=0 \
-DCGAL_CFG_ISTREAM_INT_BUG=0 \
-DCGAL_CFG_MATCHING_BUG_5=0 \
[...]
cgal is now packaged as an additional mingw library, see here:
https://aur.archlinux.org/packages/mingw-w64-cgal/
> --
> Laurent Rineau, PhD
> R&D Engineer at GeometryFactory http://www.geometryfactory.com/
> Release Manager of the CGAL Project http://www.cgal.org/
>
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://sympa.inria.fr/sympa/info/cgal-discuss
>
>
- [cgal-discuss] MinGW issues, xantares 09, 11/26/2014
- Re: [cgal-discuss] MinGW issues, Laurent Rineau (CGAL/GeometryFactory), 11/26/2014
- RE: [cgal-discuss] MinGW issues, xantares 09, 11/27/2014
- Re: [cgal-discuss] MinGW issues, Laurent Rineau (CGAL/GeometryFactory), 11/27/2014
- RE: [cgal-discuss] MinGW issues, xantares 09, 11/27/2014
- RE: [cgal-discuss] MinGW issues, xantares 09, 11/28/2014
- Re: [cgal-discuss] MinGW issues, Laurent Rineau (CGAL/GeometryFactory), 11/28/2014
- RE: [cgal-discuss] MinGW issues, xantares 09, 11/29/2014
- Re: [cgal-discuss] MinGW issues, Laurent Rineau (CGAL/GeometryFactory), 11/28/2014
- Re: [cgal-discuss] MinGW issues, Laurent Rineau (CGAL/GeometryFactory), 11/26/2014
Archive powered by MHonArc 2.6.18.