kicad-developers team mailing list archive
Mailing list archive
Re: Cross-Compiling under Linux for Windows
Sat, 6 Sep 2008 18:25:45 +0200
2008/9/5 Mateusz Skowroński <skowri@xxxxxxxxx>:
> 2008/9/5 Manveru <manveru@xxxxxxxxxx>:
>> 2008/9/5 Mateusz Skowroński <skowri@xxxxxxxxx>:
>>> 13. Edit the MinGWResourceCompiler.cmake in the CMakeModules
>>> directory. Change the windres.exe command to i586-mingw32msvc-windres
>> 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.
> Well. I've written the MinGWResourceCompiler.cmake script because of
> http://www.cmake.org/Bug/view.php?id=4068 ...
I think there is a bug in that script. It assumes that rc compiler is
always windres.exe what does not make sense in case of Visual Studio
and in case of crosscompilation. I made some corrections to this
behaviour putting variable instead of "windres.exe" name.