← Back to team overview

kicad-developers team mailing list archive

Re: Cross-Compiling under Linux for Windows


> This step is broken in KiCad's CMAKE files at all. There is a script
> in CMake which is looking for RC compiler, but it is currently broken
> and cannot find windres.exe. There is a patch in their bug repository
> (http://public.kitware.com/Bug/view.php?id=7235) which helps with
> that. I promised myself that I will publish patch for KiCad's CMAKE
> files, but currently I do not trust my own changes - it compiles under
> Windows but I do not know is it stable under Linux.

Another, slightly simpler way, to resolve this is to just create a
little shell script called windres.exe that calls
i586-mingw32msvc-windres, passing it any incoming parameters (I think
I also needed to add an extra include directory (-I ...) so it could
find windows.h - but can't check this as I'm on a different machine