← Back to team overview

kicad-developers team mailing list archive

Re: Trouble compiling under windows

 

What happens if you use the backslash space notation without the quotes?

2016-01-03 13:15 GMT+01:00 Bevan Weiss <bevan.weiss@xxxxxxxxx>:
> I did reduce it down so that it was just the windres.exe from the MSYS2
> package, and got the following result:
>
> BevanWeiss@BevanWeiss-PC MSYS /C/KiCad/KiCad-Winbuilder/test folder
>
> $ /C/KiCad/KiCad-Winbuilder/msys64/mingw64/bin/windres.exe --version
>
> GNU windres (GNU Binutils) 2.25.1
>
> Copyright (C) 2014 Free Software Foundation, Inc.
>
> This program is free software; you may redistribute it under the terms of
>
> the GNU General Public License version 3 or (at your option) any later
> version.
>
> This program has absolutely no warranty.
>
> BevanWeiss@BevanWeiss-PC MSYS /C/KiCad/KiCad-Winbuilder/test folder
>
> $ /C/KiCad/KiCad-Winbuilder/msys64/mingw64/bin/windres.exe
> -I"/C/Kicad/KiCad-Winbuilder/test folder"
>
> gcc: error: folder: No such file or directory
>
> C:\KiCad\KiCad-Winbuilder\msys64\mingw64\bin\windres.exe: preprocessing
> failed.
>
> BevanWeiss@BevanWeiss-PC MSYS /C/KiCad/KiCad-Winbuilder/test folder
>
> $ /C/KiCad/KiCad-Winbuilder/msys64/mingw64/bin/windres.exe
> -I"/C/Kicad/KiCad-Winbuilder/test\ folder"
>
> gcc: error: folder: No such file or directory
>
> C:\KiCad\KiCad-Winbuilder\msys64\mingw64\bin\windres.exe: preprocessing
> failed.
>
> So I'm pretty sure that it's an issue with this version of windres.  If
> someone knows where I should raise the bug report then I'd be happy to hear
> about it.
>
> I've worked around it by renaming my username and home directory within
> MSYS2.
>
> So I can start to have a look at some code now… anything on the TODO list
> that might be a good introduction to the KiCad sourcecode?
>
> Thanks for the reply,
>
> Regards,
>
> Bevan Weiss
>
> -----Original Message-----
>
> From: Nick Østergaard [mailto:oe.nick@xxxxxxxxx]
>
> Sent: Sunday, 3 January 2016 9:15 PM
>
> To: Bevan Weiss <bevan.weiss@xxxxxxxxx>
>
> Cc: KiCad Developers <kicad-developers@xxxxxxxxxxxxxxxxxxx>
>
> Subject: Re: [Kicad-developers] 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
>
>>
>
>
> _______________________________________________
> 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
>


References