Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] reduce compile time

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] reduce compile time


Chronological Thread 
  • From: "Laurent Rineau (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] reduce compile time
  • Date: Tue, 8 Dec 2009 17:56:46 +0100
  • Organization: GeometryFactory

On Tuesday 08 December 2009 17:39:48 Ramin H wrote:
> Hi everyone,
>
> I have GCC 4.4.1, CGAL 3.5, Ubuntu 9.10 running in a VMware virtual
> machine, AMD Turion64-X2 processor and 1GB of RAM assigned to this
> virtual machine.
>
> Compiling classes that contain CGAL code take an incredible amount of
> time. For example, compiling
> CGAL-3.5/examples/Mesh_3/mesh_polyhedral_domain.cpp takes about 10
> minutes to complete on my machine.
>
> This means, each time I change anything in this file, I have to wait
> 10 minutes for the code in this file to get compiled. Now, if I have 2
> or 3 classes with CGAL code, if I change anything in those files, I
> have to wait even longer for the whole code to compile.
>
> Is this normal? Is there any trick to reduce compile time?

With your compiler, that example needs more memory to compile. Probably the
compiler uses swap. You can try to remove -g from the compilation flags, to
reduce the memory need, or increase the memory of the virtual machine so that
the compilation does not use swap.

--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/



Archive powered by MHonArc 2.6.16.

Top of Page