← Back to team overview

kicad-developers team mailing list archive

Re: Incremental build speeds.

 

On 22 October 2014 14:01, Tim Hutt <tdhutt@xxxxxxxxx> wrote:
> Hi,
>
> I'm trying to do some kicad development on windows. I initially downloaded &
> built it with kicad-winbuilder which went without a hitch. Kicad runs fine.
>
> However, if I perform a null-rebuild (i.e. I don't change anything and just
> run `make` again), it takes about 70 seconds to run. That's quite a while
> isn't it? My PC is pretty fast (quad core 3.3 GHz i5, 16GB RAM), so I
> wouldn't have expected it to take so long. Is this just a feature of cmake?
>
> Build output is below. How long does it take for you guys? Am I doing
> something wrong?
>
> Cheers,
>
> Tim
>
> -----
>
> C:\Users\Tim\Local\kicad-winbuilder-3.4\build\Release>mingw32-make
> [  0%] Built target boost
> [ 30%] Built target bitmaps
> [ 30%] Built target lib-dependencies
> [ 38%] Built target common
> [ 38%] Generating headers containing GLSL source code
> Headers are up-to-date
> [ 38%] Built target shader_headers
> [ 39%] Built target gal
> [ 43%] Built target pcbcommon
> [ 44%] Built target 3d-viewer
> [ 44%] Built target polygon
> [ 45%] Built target pcad2kicadpcb
> [ 46%] Built target openssl
> [ 46%] Built target avhttp
> [ 46%] Built target github_plugin
> [ 47%] Built target cvpcb_kiface
> [ 47%] Built target cvpcb
> [ 57%] Built target eeschema_kiface
> [ 58%] Built target eeschema
> [ 61%] Built target gerbview_kiface
> [ 61%] Built target gerbview
> [ 61%] Built target lib_dxf
> [ 62%] Built target idf3
> [ 64%] Built target pnsrouter
> [ 79%] Built target _pcbnew
> [ 79%] Fixing swig_import_helper in Kicad scripting modules
> swig_import_helper fixed for
> C:/Users/Tim/Local/kicad-winbuilder-3.4/build/Relea
> se/pcbnew/pcbnew.py
> [ 79%] Built target FixSwigImportsModuleScripting
> [ 94%] Built target pcbnew_kiface
> [ 94%] Built target pcbnew
> [ 95%] Built target pl_editor_kiface
> [ 95%] Built target pl_editor
> [ 96%] Built target potrace
> [ 96%] Built target bitmap2component
> [ 98%] Built target pcb_calculator_kiface
> [ 98%] Built target pcb_calculator
> [100%] Built target kicad
> [100%] Built target dxf2idf
> [100%] Built target idf2vrml
> [100%] Built target idfcyl
> [100%] Built target idfrect
>

Hi Tim,

You can specify parallel jobs with make using the -j option. That will
speed things up for you.

gcc on Windows is slow however, it really does take much more time to
compile on Windows compared to Linux on the same hardware. You will
certainly get down to perhaps 15s using parallel jobs.

Best Regards,

Brian.


References