Don Bright | 15 Jul 2012 15:35
Picon
Gravatar

[Mingw-cross-env-list] CGAL example build fails + fix

On mxe downloaded 7/15/2012 'make cgal' fails with the following error:

[build]    cgal

Failed to build package cgal!
------------------------------------------------------------
make[3]: *** [CMakeFiles/AABB_custom_example.dir/all] Error 2
make[3]: Leaving directory `/home/donb/mxe/tmp-cgal/CGAL-4.0/examples/AABB_tree'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/donb/mxe/tmp-cgal/CGAL-4.0/examples/AABB_tree'
make[1]: *** [build-only-cgal] Error 2
make[1]: Leaving directory `/home/donb/mxe'
real	0m38.712s
user	1m3.408s
sys	0m4.988s
------------------------------------------------------------
[log]      /home/donb/mxe/log/cgal

make: *** [/home/donb/mxe/usr/installed/cgal] Error 1

looking in the log shows this:

make[4]: Entering directory
`/home/donb/mxe/tmp-cgal/CGAL-4.0/examples/AABB_tree'
[ 80%] Building CXX object
CMakeFiles/AABB_polyhedron_edge_example.dir/AABB_polyhedron_edge_example.cpp.obj
Linking CXX executable AABB_custom_triangle_soup_example.exe
Linking CXX executable AABB_polyhedron_facet_distance_example.exe
Linking CXX executable AABB_custom_indexed_triangle_set_array_example.exe
Linking CXX executable AABB_insertion_example.exe
(Continue reading)

William | 18 Jul 2012 00:01
Picon

Re: [Mingw-cross-env-list] CGAL example build fails + fix


Hello,
Here is the methodology to modify a patch :

there are files src/cgal.mk and src/cgal-1-fixes.patch, the second being 
the patch file.

import the patched directory in gits/ :
# tools/patch-tool-mxe import cgal

then edit the files, you can use git add, git commit, ...

then make a patch from that :
# tools/patch-tool-mxe export cgal

now try to compile :
# make cgal

now you can submit the updated patch!

William

On 07/15/2012 03:35 PM, Don Bright wrote:
> On mxe downloaded 7/15/2012 'make cgal' fails with the following error:
>
>
> [build]    cgal
>
> Failed to build package cgal!
> ------------------------------------------------------------
(Continue reading)

Mark Brand | 18 Jul 2012 01:09
Picon

Re: [Mingw-cross-env-list] CGAL example build fails + fix


>
>
> This may be related to mxe using boost 1.50 which on win32 cross
> builds apparently needs 'boost_chrono' linked.
>
>
>
> Solution:
>
>
>
> In
>
> CGAL-4.0/cmake/modules/CGAL_SetupBoost.cmake
>
> change
>
>    find_package( Boost 1.33.1 REQUIRED thread )
>
> to this:
>
>    find_package( Boost 1.33.1 REQUIRED thread system chrono )
>
>
> Unfortunately I don't know how to make a patch for mxe
>
> -DB
>

(Continue reading)


Gmane