I ended up running everything by hand:

Create png via Inkscpae GUI.

pngcrush refresh.png

cmake -DinputFile=/users/jeff/kicad_dev/kicad/bitmaps_png/png_16/refresh.png \
      -DoutCppFile=/users/jeff/kicad_dev/kicad/bitmaps_png/cpp_16/refresh.cpp \
      -P PNG2cpp.cmake

> On 26 Feb 2018, at 17:21, jp charras <jp.char...@wanadoo.fr> wrote:
> 
> Le 26/02/2018 à 18:04, Nick Østergaard a écrit :
>> On linux it does not open a GUI, it just converts the images when I make.
> 
> Same on Windows.
> I remember some time ago a mail about issues with inkscape on OSX to convert 
> the svg file to a png file.
> 
> And an other tool was mentioned to convert these svg files, but I do not 
> remember what tool.
> 
>> 
>> 2018-02-26 18:01 GMT+01:00 Jeff Young <j...@rokeby.ie 
>> <mailto:j...@rokeby.ie>>:
>> 
>>    When I do a build it opens the GUI inkscape (should it be doing that?) 
>> but then hangs.  (I can
>>    use Inkscape, but my build just sits there.)
>> 
>>> On 26 Feb 2018, at 16:58, jp charras <jp.char...@wanadoo.fr 
>>> <mailto:jp.char...@wanadoo.fr>> wrote:
>>> 
>>> Le 26/02/2018 à 17:17, Nick Østergaard a écrit :
>>>> I am not sure how well it works on macos, but it uses inkscape to export 
>>>> them to png and then
>>>> something else to turn them to xpm which is turned into cpp as far as I 
>>>> remember. I may be wrong.
>>>> 
>>>> 2018-02-26 17:16 GMT+01:00 Nick Østergaard <oe.n...@gmail.com 
>>>> <mailto:oe.n...@gmail.com>
>>    <mailto:oe.n...@gmail.com <mailto:oe.n...@gmail.com>>>:
>>>> 
>>>>     Enable  MAINTAIN_PNGS with cmake.
>>>> 
>>>>     2018-02-26 17:14 GMT+01:00 Jeff Young <j...@rokeby.ie 
>>>> <mailto:j...@rokeby.ie>
>>    <mailto:j...@rokeby.ie <mailto:j...@rokeby.ie>>>:
>>>> 
>>>>         (Don’t worry; not for 5.0stable.)
>>> 
>>> Once the svg file is converted to a png file, our PNG2cpp.cmake "script" 
>>> convert the binary
>>    file to
>>> a equivalent list of unsigned chars.
>>> 
>>> Currently inkscape is used to convert the svg file to a png file containing 
>>> metadata.
>>> This metadata is useless for us, and removed by pngcrush to reduce the size 
>>> of the final .cpp
>>    file.
>>> 
>>> 
>>> --
>>> Jean-Pierre CHARRAS
> 
> 
> -- 
> Jean-Pierre CHARRAS
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp

_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to     : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to