← Back to team overview

kicad-developers team mailing list archive

Re: Trouble compiling under windows

 

I don't know much about windres, but I just tested on linux with
spaces in the path to the source dir and spaces in the build dir name,
and that built just fine.  Maybe there is still some quotes that is
missing in CMakeModules/MinGWResourceCompiler.cmake.

2016-01-02 16:04 GMT+01:00 Bevan Weiss <bevan.weiss@xxxxxxxxx>:
> Hi all,
>
>
>
> Apologies for the spam on this, however I’m having a slight issue when
> trying to setup and compile a Windows development environment for Kicad.
>
> I’ve used the Winbuilder platform, which has gotten me this far, so that
> I’ve got a properly setup mingw environment.
>
> It also appears to have pulled in all the appropriate dependencies (as far
> as I can tell anyway).
>
>
>
> However I’ve run into this error message…
>
>
>
> [ 48%] Building CXX object
> common/CMakeFiles/common.dir/geometry/shape_file_io.cpp.obj
>
> [ 48%] Linking CXX static library libcommon.a
>
> [ 50%] Built target common
>
> [ 50%] Compiling kicad's resource file
>
> gcc: error: Weiss/MINGW-packages/mingw-w64-kicad-git/src/kicad/kicad: No
> such file or directory
>
> C:\KiCad\KiCad-Winbuilder\msys64\mingw64\bin\windres.exe: preprocessing
> failed.
>
> kicad/CMakeFiles/kicad.dir/build.make:61: recipe for target
> 'kicad/CMakeFiles/kicad.dir/kicad_rc.obj' failed
>
> make[2]: *** [kicad/CMakeFiles/kicad.dir/kicad_rc.obj] Error 1
>
> CMakeFiles/Makefile2:2217: recipe for target
> 'kicad/CMakeFiles/kicad.dir/all' failed
>
> make[1]: *** [kicad/CMakeFiles/kicad.dir/all] Error 2
>
> make[1]: *** Waiting for unfinished jobs....
>
> Scanning dependencies of target bitmap2component
>
>
>
> I’ve found the issue after some further investigation.
>
> It appears that whichever version of windres.exe is in msys2 doesn’t respect
> spaces in paths (even when passed with double quotes).  My googling says
> this should have been fixed way back in 2007, however perhaps it’s a
> regression (or something got lost in the MSYS2 stuff).
>
>
>
> Apart from the obvious of changing the folder location to not have a space,
> are there any other workarounds that people know of?
>
> Is this something that should be raised with the MSYS2 people? (my quick
> googling suggests that perhaps they just don’t care about such ‘Windowisms’
> like folder names with spaces).
>
>
>
>
>
>
>
> Bevan Weiss
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
>


Follow ups

References